Python ERROR 000539

5448
11
01-09-2012 12:07 PM
ABDALLAMOHAMED
Occasional Contributor
Hello.I was running the following in ARCMap version 10: gp.CalculateField_management(nn_output_file, "patch_area", "[F_AREA]/1000000", "VB", ""), and keep getting the following error:
ERROR 000539:Error running expression: [F_AREA]/1000000. Name 'F_AREA' is not defined. Any hint. Appreciated. Thanks!
Tags (2)
0 Kudos
11 Replies
aaronboci1
New Contributor II
Well I got it to run by reclassifying both of the two layers into long form. so i have the new transmissivity layer. my next step is to run Darcy's flow. I found a way to side step the problem. but I may have a new problem. Darcys flow needs 4 raster layers, all of which have to be the same cell size and alignment, that is fine, im good there, but they all need to be in float, says the directions. also it says if the residual is too high, my data means nothing and that I should put it through a proper porous medium flow program. I think the effective porosity layer is that layer. I'm going to run this tool once I write down what I've done, if it does not run, I will try your advice on how to change all 4 of my layers to float numbers.
0 Kudos
aaronboci1
New Contributor II
I actually have all 4 of my layer created and I ran Darcy's flow tool. Good news is over 99% of my cells had a residual of 0, almost all the other cells were within 1 STD. The bad news is only 75% of my area actually has a result. The areas with high porosity did not calculate and I have a rectangle at the top of my ROI that did not calculate either. I am not sure why this occurred. I will keep my results and continue looking for reasons as to why. and hopefully find a solution. oddly enough, Darcy direction did not work either but magnitude did.
0 Kudos