Questions tagged [error-000539]
Use this tag for Questions which are related to the "000539" error returned by ArcGIS Desktop and ArcGIS Pro.
136
questions
2
votes
1
answer
205
views
Calculating ratio between "rows" in ArcGIS field calculator
I have a problem similar to Dividing two or more rows in single attribute table? but that is for QGIS whereas I have to perform it in ArcGIS.
I have to calculate the Ratio between rows (sequentially, ...
2
votes
1
answer
240
views
Exporting attachments from FGDB and populating field with picture path
I am trying to export attachments from fGDB and populate fields with the picture link path. I created a script following these instructions http://support.esri.com/en/technical-article/000014520
...
2
votes
1
answer
4k
views
Calculating centroids of polygon using ArcPy?
I am trying to calculate the centroids of a polygon and add the x- and y-coordinate to their respective fields:
arcpy.env.workspace = r"C:/..."
input_fc = "shapefiles/precincts_v.shp"
arcpy....
2
votes
1
answer
646
views
ArcGIS raster calculator: ERROR 000539: Error running expression: rcexec() <type 'exceptions.ImportError'>: No module named collections
My raster is in the GRID format, source type is continuous and pixel type is floating point (32bit).
If i use the raster calculator ("dem" *1000 or "dem >= 2m" (to highlight certain heights) it ...
2
votes
1
answer
5k
views
ArcMap raster calculator error 000539
Using ArcMap 10.3, I am trying to perform map algebra on a raster with 2013 annual PRISM precipitation for the U.S. (http://prism.oregonstate.edu/recent/). The raster has 1 band an is floating point.
...
2
votes
1
answer
482
views
Select Data won't work... Parameters are not valid in ArcGIS ModelBuilder?
I'm creating a model in the ArcGIS 10.3 ModelBuilder and have problems to get the select data tool to work.
At first the complete model: IHS-Klassifizierung
With the Select Data tool (Input Data ...
2
votes
0
answers
1k
views
Cause of Field Calculator UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 5: ordinal not in range(128)? [closed]
def Befahrung(value1,value2):
if value1 is ' ':
return ' '
else:
return "G:\\Example\\" + str(value1) + "\\File_" + str(value2) + ".pdf"
I try to create a field with a hyperlink. It works ...
1
vote
1
answer
191
views
If/Then python script in Field Calculator not working
I'm working in Modelbuilder. I have a polygon in which I calculate the shape centroid in decimal coordinates (field called LONG_CENTR). Then I add a field (called FAJA) and I want to use a Field ...
1
vote
2
answers
788
views
Avoiding error 000539 from code block in Calculate Value tool?
I do not have a very good understanding of python and have attempted to write a code block so that my model will skip rasters that do not contain any information and continue the process with rasters ...
1
vote
1
answer
215
views
Changing all entries in field to be entirely lower case using ArcGIS Field Calculator?
I have a field with a bunch of species names, but for a single species there a bunch of case combinations (e.g. Cat, CAT,cat). I want to make a new field which has all the entries in all lower case. I ...
1
vote
1
answer
2k
views
ArcPy Raster Calculator error " 'str' object has no attribute 'save' "
I converted a model into python script and tried to run it. It gave me an error when it gets to the raster calculator process.The message says "str" object has no attribute "save". See picture below.
...
1
vote
1
answer
184
views
CalculateField_management, python Toolbox
I am trying to fill a field and I am using arcpy's CalculateField_management function.
I want to fill the new field with the name of the shapefile, so I am using arcpy.Describe. But when I run the ...
1
vote
1
answer
826
views
Embedded quotes in arcpy.CalculateField_management expression
I'm using arcpy.CalculateField_management to populate a field. The expression:
"'https://anystate.gov/someportal/DisplayQueryResults.aspx?Prompts=Spill%20Number="!ID!"&Database=OfficeDocs&...
1
vote
2
answers
295
views
Printing name of field with highest value?
I am trying to find the field with highest area value in each row of the 5 fields. Now I have found the highest value. But it doesn't really do me any good if I couldn't find which field is that max.
...
1
vote
1
answer
1k
views
trouble with code block execution in python script
I am trying to calculate values for a field in a python script, but keep getting an error that I don't understand:
ExecuteError: ERROR 000539: Error running expression: Fron000000F1
Traceback (most ...
1
vote
4
answers
372
views
Calculations in if statement
I want to perform a simple calculation with the Field Calculator using this piece of script (note that all the elif statements are attempts for another syntax and non of the worked):
def change(...
1
vote
1
answer
238
views
Raster Calculator Python Error 00539 for friction surface
I am trying to convert a slope raster to a friction surface with values based on Tobler's Hiking Function in ArcGIS Pro, but I get an error message I am not sure is about the formula syntax or file/...
1
vote
1
answer
683
views
ERROR 000539: NameError: name 'prevX' is not defined
I'm trying to use the field calculator to input data into a field that I previously created, but it keeps saying that prevX is not defined in line 9. I'm very new to python and I don't really ...
1
vote
1
answer
941
views
NameError: name '**' not defined in ModelBuilder Calculate Value
This question follows up on Crianopa's answer https://gis.stackexchange.com/a/107687/126329 - I am attempting to do just this, but my model fails at the Calculate value stage. Using the expression ...
1
vote
2
answers
1k
views
Entering date with arcpy.GetParameterAsText()?
I want to allow users to enter a date as a parameter through a dialog window in a toolbox script.
I have obviously defined the field with a "Date" data type but something is wrong with the formatting....
1
vote
2
answers
302
views
Setting field equal to raster Name ID for batch process in ArcPy
I am wanting to set an existing field called RasterID to the name of the raster for which the attribute table belongs to, but for a batch of rasters. Is there a way to do this with my current code ...
1
vote
1
answer
386
views
How to tranform a column field into a list using Field Calculator
I'm trying to make a simple field calculation with ArcGIS 9.3:
New field = Old field - Old field(first value)
which in Calculate Field with python code should be
Expression:
!Old field! - first
...
1
vote
1
answer
419
views
Calculating field when iterating file geodatabase using "if field exists" statement in ArcMap 10.3
I need to calculate certain field in every feature class within a file geodatabase in case this field exists. If it doesn't, I want iterator to skip appropriate feature class. I'm building a model, ...
1
vote
1
answer
417
views
Failed to create a Python Toolbox to automate operation in ArcGIS Pro
I wrote my code in Jupyter notebook and it works through the Jupyter environment and as well as on Python terminal inside of the ArcGIS Pro. I am trying to convert it into a toolbox to use it for ...
1
vote
1
answer
316
views
ArcMap 10.6; ERROR 000539: Error running expression: rcexec()
While running a tool box (connectivity index) I am receiving an error at the end; ERROR 000539: Error running expression: rcexec()!.
Can anyone help me with it?
1
vote
1
answer
288
views
Using field calculator to find fields in row that have same value as reference field then return string gives ERROR 000539
I am trying to create a field "conflict", and the condition is when other fields in that row have the same maximum number the function returns "Yes". I am having trouble making ...
1
vote
1
answer
1k
views
Error - Not defined - Arcpy
I'm trying to add a part of my filename into a field that i'd created, but it comes with the following error:
Traceback (most recent call last):
File "Z:\04 - Temp\Charles\NDVI_tempo\...
1
vote
1
answer
2k
views
Raster calculation with multiple rasters using ArcGIS Desktop?
I have three rasters:
Raster1: resolution 25x25, floating point. Value of "1" when it is true, value of -9999 when it is false (only this two values)
Raster2: resolution 25x25, floating point. Only ...
1
vote
1
answer
117
views
Radiance to reflectance error ArcMap
I have been trying and failing for some time to convert the radiance to refectance by following step 4 in this tutorial
I have tried everything I can think of but my knowledge is limited. Would ...
1
vote
1
answer
878
views
Meaning of ERROR 000539: Error running expression: rcexec() <type 'exceptions.ImportError'>: No module named os?
In Raster Calculator using:
(FocalSt_meanDEMtif5-FocalSt_minDEMtif1) / (FocalSt_maxDEMtif2-FocalSt_minDEMtif1)
What is the meaning of
ERROR 000539: Error running expression: rcexec() : No module ...
1
vote
4
answers
4k
views
Using Raster calculator in Modelbuilder ArcGis 10
I am using Modelbuilder to calculate several rasters with different parameters for each grid cell. One of the final steps is to calculate the log of one of the rasters using Raster calculator. ...
1
vote
1
answer
374
views
Calculating centroid latitude in ArcMap throws error 000539 in Arcpy?
I can create a centroid latitude field in ArcMap10.1 using "Calculate Geometry..." in the attribute table, but when I try the same thing using:
arcpy.CalculateField_management(bins_WGS84, "cent_lat", ...
1
vote
1
answer
3k
views
Calculate field in model builder using file name
I have browsed answers to similar questions but I still can't figure it out. I have created a new field called "namemonyr" in all of 646 shapefiles. I now want to populate that field using (...
1
vote
1
answer
968
views
Raster Calculator error
I'm trying to use the Raster Calculator inside ModelBuilder to get rid of null values, but I'm hitting a snag. I'm using the expression:
Con(IsNull("%temp_ras%"),FocalStatistics("%temp_ras%",...
1
vote
1
answer
191
views
Concatenate string variable and field in ArcPy "CalculateField" expression
I am trying to add a file path field to a feature layer in an ArcPy notebook in ArcGIS Pro. I have a variable with the beginning of the path (the path to the folder) and an existing field with the ...
1
vote
1
answer
92
views
ArcMap field calculator expression failing with ERROR 000539 [closed]
I am using ArcMap 10.7.
I have an attribute table with 6 different columns of short integer data. These columns store the birth day, birth month, and birth year, as well as the death day, death month,...
1
vote
1
answer
1k
views
Raster calculator giving error 000539
I'm trying to do Subtraction between two rasters.
and I'm getting this error
000539 : Error message from Python.
Description
The calculation used by the Calculate Field or Calculate Value tool is ...
1
vote
1
answer
174
views
Errors when filling/replacing NoData values with Raster Calculator FocalStatistics
I have the following raster, which has many NoData values. Only the NoData values that are in the ocean need to be filled.
I made a seperate raster with all the NoData cells that are in the ocean. I ...
1
vote
1
answer
151
views
Using ModelBuilder with Field Calculator gives SyntaxError?
I am brand new to coding, have no background at all. Basically I have about 200 tables with the same info listed under slightly different attribute table headings and I am trying to rename them to ...
1
vote
1
answer
1k
views
Calculate field Error 000539
I am brand new to the world of GIS and I have never used Python.
I tried running a calculate field command within the geoprocessing toolbox (not python) and I got an error. I did a bunch of split ...
1
vote
1
answer
562
views
ERROR 00539: Error running expression:rcexec()
I'm trying to run a batch operation on raster calculator. The expression I use is this:
(Float("92011033_B2.tif") - Float("92011033_B5.tif")) / (Float("92011033_B2.tif") + Float("92011033_B5.tif"))
...
1
vote
2
answers
306
views
ERROR 000539: Error running expression:rcexec ()
I have got this error when tried to make slope less than 20 degree through Raster Calculator. One day before I installed Python 2.7.13 and after, this error appeared. When I delete the downloaded ...
1
vote
2
answers
1k
views
ArcGIS Raster Calculator won't work in main model
I've created a sub-model in ArcGIS, which stretches my raster data to new values.
The strange thing is, that the model works, if I run it itself - as soon as I implement it in the main model, I get ...
1
vote
1
answer
2k
views
ArcGIS Raster Calculator error 000539 ImportError: No module named numpy?
I am running ArcGIS 10.2.1 on Win7 64bit.
I have finished doing an NDVI, and after defining a vegetation presence threshold at 0.05, opened the Raster Calculator (via Map Algebra in the Arc Toolbox) ...
1
vote
1
answer
2k
views
Getting Error 000539 from Raster Calculator?
I am new to Arc and 10.2 but can not seem to figure out why this won't work.
Executing: RasterCalculator Con(("SLOPE_SLO.tif" >= .015) & ("SLOPE_SLO.tif" <= .15,1,0)) D:\GEOG_480\Final2\...
1
vote
1
answer
475
views
Field Calculator Runs In IDLE (2.6.5) but not ArcGIS 10 SP3
just wondering if anyone else is having issues with the field calculator in ArcGIS 10 SP3. In the following code I do a pretty simple field calculation with a variable (an array) as one of the ...
1
vote
2
answers
1k
views
ExecuteError: ERROR 000539 while running expression rcexec()
from arcpy import *
arcpy.CheckOutExtension('Spatial')
arcpy.env.workspace=r'D:\work\USA'
#pathway to all rasters in workspace directory
rasters = arcpy.ListRasters('*.tif')
# Local variables:
...
1
vote
0
answers
166
views
Map algebra raster calculator
I am attempting a GIS tutorial on land change analysis between two rasters. I have set the extent and raster analysis to what I have been given and used the expression below. However, it is not ...
1
vote
0
answers
386
views
Using Calculate Field to get acreage in ArcGIS ModelBuilder? [closed]
Update: Problem Solved
I fixed it.
In the Calculate Field Tool within Model Builder, I entered "!shape.area@acres!" . That resolved the issue and the model now produces the same results as the python ...
1
vote
1
answer
305
views
Error 000539 in ArcGIS Desktop?
I am using Raster Calculator in ArcGIS 10.4.1 in order to substract two raster surfaces. However, when I substracted the two surfaces an error 000539 was appeared! I tried to adjust the two surfaces ...