Questions tagged [error-000539]

Use this tag for Questions which are related to the "000539" error returned by ArcGIS Desktop and ArcGIS Pro.

Filter by
Sorted by
Tagged with
1
vote
1answer
28 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 ...
0
votes
0answers
17 views

ArcMap shows error 000539 for NDSI calculation

I want to run Raster Calculator to calculate NDSI from atmospherically corrected Landsat images, but it shows error 000539 and some other errors. I downloaded bulk data (Landsat collection 2 level-2) ...
0
votes
0answers
50 views

Raster Calculator - ERROR 000539 - Fail to complete “weighted overlay” calculation

I have been constantly getting this "ERROR 000539" message when trying to run raster calculator using two rasters. I was having issues running raster calculator initially and made sure that ...
0
votes
1answer
58 views

Raster calculator ERROR 000539 when converting values to be from 0-1 using ArcGIS Pro

I am getting this error when trying to make values of GHI from 0-1 I only add a layer then I run the raster calculator as attached. This is my code : ("Global horizontal irradiation" - &...
1
vote
1answer
56 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/...
2
votes
1answer
48 views

Using RasterCalculator in ArcGIS Pro ModelBuilder gives ERROR 000539

As part of a larger model for iterating lake bathymetry interpolations, I'm essentially trying to establish the lake altitude as a new base level (Z=0) for the DEM surrounding the lake. (picture below ...
-1
votes
1answer
59 views

ArcPy - iteration to calculate the mean of specific fields to use it as input for further calculations in the same feature/table

I am working with ArcPy under Python 2.7. I have a bunch of shapefiles that have the same structure. I want to iterate through all of them to add a field (A1_norm) and filling it with the ...
0
votes
0answers
77 views

Polsby-Popper measure in field calculator of ArcGIS Pro

I'm trying to assess the compactness of Virginia's congressional districts using the Polsby-Popper measure (4π (Area/Perimeter^2)), with this being my input into the code block: import math def ...
1
vote
1answer
130 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
1answer
214 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 ...
0
votes
1answer
117 views

Using Raster calculator gives ERROR 000539

I'm new with ArcGIS. I would like to do a calculate of NDWI. So I'm using Arctoolbox => Spatial analyst tools => Map Algebra => Raster calculator. But when I'm trying to perform it, I get this error :...
1
vote
1answer
42 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
1answer
292 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 ...
0
votes
0answers
49 views

Getting ERROR 000539 running Raster Calculator in ModelBuilder?

I am trying to run Raster Calculator in ModelBuilder, however I am getting what looks like two errors after my model reaches a certain step: ERROR 000539: Error running I'm not sure if it is a ...
0
votes
2answers
46 views

Getting error 000539 when calculating TWI?

I'm trying to calculate the twi from my area using LN((flowaccu+1)*900/Tan(sloperadian). My first result was wrong because my area is an endhoreic basin. So I made a flow accumulation raster based on ...
0
votes
2answers
117 views

Concatenate fields (double and string) to create address using arcpy

fields: STNUM = double STRDIR = string STRNAME = string STRTYPE = string Tuple and s.format I have tried: arcpy.CalculateField_management (newparcelsUTM, "SiteAddress","{0} {1} {2} {3} ".format('!...
0
votes
2answers
241 views

Error 000539 running multiple con expressions in raster calculator in ModelBuilder?

I am using Raster Calcuator in ModelBuilder with ArcMap 10.5. I used Get Raster Properties to extract Standard Deviation and Mean from a previously calculated raster. I would like to use Raster ...
0
votes
1answer
70 views

Getting Python Script Error 000539?

I'm attempting to create a tool that gives me the next available manhole number in a particular system. The manhole numbering structure looks like 1124-060E and therefore is a string field. Since ...
1
vote
1answer
926 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
2answers
228 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: ...
0
votes
0answers
294 views

Raster Calculator - Error 000539: Error running expression

I'm trying to simply combine 5 different rasters in raster calculator to do a site suitability analysis using this map algebra expression: "bo_reclasstemph3" + "bo_reclassph" + "bo_raster_precip" + "...
0
votes
1answer
69 views

Converting Angles in a File Geodatabase Table - via Field Calculator's Python

In a file geodatabase table, I have an attribute called 'NEAR_ANGLE' created via the "Generate Near Table" tool that I'd like to convert to a 0-360 degrees format. I've created an attribute called '...
0
votes
1answer
258 views

If-then-else Statements and string errors?

I'm defining a string field based on contents of another string field. Simply put, if the contents of field A contain this value, then fill field B with this text. It throws a string related error ...
1
vote
1answer
86 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
1answer
82 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 ...
5
votes
1answer
424 views

Calculating Polsby-Popper Score Using ArcGIS Pro Field Calculator gives ERROR 000539?

This operation is using the Field Calculator in ArcGIS Pro 2.1. I am trying to calculate the Polsby-Popper Score for Congressional Districts. I have calculated the Geodesic Area and Geodesic ...
-1
votes
1answer
278 views

Python Script error in function ERROR 000539: SyntaxError

I am receiving the following error; is it a simple syntax issue with the Calculate field because I'm not seeing anything missing. ExecuteError: ERROR 000539: SyntaxError: unexpected EOF while parsing ...
1
vote
1answer
630 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
0answers
132 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
1answer
692 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\...
3
votes
0answers
247 views

ERROR 000539 from ModelBuilder with Raster Calculator? [closed]

I'm trying to do a math operation in raster calculator using the rasters from other two raster calculators. My calculation is a simple NDVI formula: (rastcalc4 - rastcalc3)/(rastcalc4 + rastcalc3) ...
1
vote
0answers
308 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 ...
2
votes
1answer
145 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 ...
3
votes
3answers
3k views

Concatenating strings from two fields using Python in ArcMap Field Calculator?

I'm new to Python scripting and I don't understand what is wrong with this code. I want to concatenate the string values from GRID1MIL and GRID100K. I've created a text column MGRS to begin with. I ...
0
votes
1answer
370 views

Reclassifying slope using ArcGIS raster calculator?

I have a slope raster in degrees and would like to reclassify it the layer with the raster calculator. my criteria: slope between 15 & 20 receive a 1 slope greater than 20 receive a value of 2 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
152 views

Calculating Field Chosen by arcpy.GetParameterAsText(1) gives ERROR 000539?

I add a parameter CampoConfere = arcpy.GetParameterAsText(1) which get a field from Tabela_Base to calculate in the next steps from the code. The Scripts works well until the Calculate Field Step when ...
3
votes
1answer
992 views

Replacing multiple characters at once

I have a problem with replacing in field calculator. For some reason my Python parser is not working. So I'm going to use VB and having tonns of this Replace([field],"x","y") Replace([field],"z","a")...
1
vote
1answer
570 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
1answer
504 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
0answers
271 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 ...
1
vote
0answers
477 views

ArcGIS Raster Calculator Error 000539

I am getting the error-000539: Error running expression: rcexec(). I've seen that other people have this same issue but I am not sure how to fix mine. I just want to average the values of 10 rasters, ...
3
votes
1answer
554 views

Get multiple values from summary tables in Model builder

I working with ModelBuilder and I have two summary statistics tools, with 'case fields' that have multiple sum values, I want to use these sum values from one table and divide the sum values from ...
1
vote
1answer
253 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
0answers
834 views

Dividing the values of one rasters on a cell-by-cell basis

I have been trying to divide an ArcGIS (ver 10.5) generated raster layer by a constant and continue to receive errors (Error - 000539). My first attempt was to simply divide the raster by my ...
0
votes
1answer
184 views

Using ouput data variables in subsequent calculation within ArcGIS ModelBuilder?

Using ArcGIS Desktop 10.3.1, I have two simple polygon shapefiles, each with just a single feature. I'm new at ModelBuilder, and have 2 tasks: calculate the acreage within each of the two shapefiles,...
2
votes
1answer
2k 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....
1
vote
1answer
152 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 ...
4
votes
2answers
424 views

Python script in ArcMap Field Calculator giving Error 000539: SyntaxError: Invalid Syntax?

I've been trying to calculate this expression for a field in an attribute table in ArcMap 10.4.1, and keep getting the following error: Error 000539: SyntaxError: invalid syntax (expression, line ...
1
vote
1answer
105 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 ...