Error In Creating A Raster From A Geodataset
without it enabled. Please turn JavaScript back on and reload this page.All Places > GIS > Analysis > Geoprocessing > DiscussionsLog in to create and rate content, and to follow, bookmark, and share content with other members.AnsweredAssumed AnsweredRaste Calculator Error PLEASE HELP!!Question asked by esava on Jun 5, 2012Latest reply on Jun 6, 2012 by esava Like • Show 0 Likes0 Comment • 4Hello,I'm trying to calculate the following expression Con(IsNull(("%roadpct%")), 0,("%roadpct%" / 100)) / Float(Lookup("%roadpct%", "Count")) but for some reason I get the error below. I have tried everything I just cannot seem to figure it out. PLEASE SOMEONE HELP!!! I'm sure its simple but I can't seem to find it.ERROR 000539: Error running expression: rcexec()
Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Geographic Information Systems Questions Tags Users Badges Unanswered Ask Question _ Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a https://geonet.esri.com/thread/52746 question Anybody can answer The best answers are voted up and rise to the top Cost Path tool in script randomly throws error up vote 2 down vote favorite I have a script tool that is creating a least cost path for sets of points using a Cursor. When applied, the script runs great, except every so often the tool is stopped because there is an error http://gis.stackexchange.com/questions/63448/cost-path-tool-in-script-randomly-throws-error in the Cost Path tool. If I close out of the tool and run the last few steps manually on the points everything works fine and I can start the tool on the next row. Here is the cursor in the script: rows = arcpy.SearchCursor(setExtract) for row in rows: if row.setX == row.upX and row.setY == row.upY: arcpy.AddMessage("Points for trawl " + str(uniqueID) + " have identical coordinates, the trawl cannot be drawn.") else: avgDepth = row.avg_depth uniqueID = row.uniqueID arcpy.MakeFeatureLayer_management(setExtract, "setpoint", "uniqueID = " + str(uniqueID)) arcpy.MakeFeatureLayer_management(upExtract, "uppoint", "uniqueID = " + str(uniqueID)) outRas = Abs(Raster(clipBathy) - avgDepth) outRas.save(tempRasters + "\\cost" + str(uniqueID) + ".img") costRas = tempRasters + "\\cost" + str(uniqueID) + ".img" outCostDistance = CostDistance("uppoint", outRas, 500, tempRasters + "\\backlink" + str(uniqueID) + ".img") outCostDistance.save(tempRasters + "\\dist" + str(uniqueID) + ".img") distRas = tempRasters + "\\dist" + str(uniqueID) + ".img" backlinkRas = tempRasters + "\\backlink" + str(uniqueID) + ".img" outCostPath = CostPath("setpoint", distRas, backlinkRas) outCostPath.save(tempRasters + "\\path" + str(uniqueID) + ".img") pathRas = tempRasters + "\\path" + str(uniqueID) + ".img" And here is the error: Traceback (most recent call last): File "S:\Scripts\June6.py", line 138, in
»reddit.comaskgiscommentsWant to join? Log in or sign up in seconds.|Englishlimit my search to /r/askgisuse the following search parameters to narrow your results:subreddit:subredditfind https://www.reddit.com/r/askgis/comments/1kg4no/watershed_delineation_problems/ submissions in "subreddit"author:usernamefind submissions by https://kb.iu.edu/d/axan "username"site:example.comfind submissions from "example.com"url:textsearch for "text" in urlselftext:textsearch for "text" in self post contentsself:yes (or self:no)include (or exclude) self postsnsfw:yes error in (or nsfw:no)include (or exclude) results marked as NSFWe.g. subreddit:aww site:imgur.com dogsee the search faq for details.advanced search: by author, subreddit...this post was submitted on 15 error in creating Aug 20131 point (100% upvoted)shortlink: remember mereset passwordloginSubmissions restrictedOnly approved users may post in this community.askgissubscribeunsubscribe1,714 readers~4 users here nowAsk for help with Geographic Information Systems issues like geodesy or spatial analysis. Check out: GIS Stack Exchange! Related Subreddits: GIS Geospatial Basins GIS Jobs Maps Map Projects Map Porn National Geographic GIS Scripts created by am4zona community for 4 yearsmessage the moderatorsMODERATORSam4zonbnb2011travis-about moderation team »discussions in /r/askgis<>X4 points /r/ASKGIS is now going to start shutting down. Please direct all GIS question
can I correct the error message "Failed to execute"? In ArcGIS, you may see this error message in red text in the tool dialog box while you're using a geoprocessing tool in ArcToolbox or running a script in ModelBuilder. The most common reason for a tool process to fail is that you have spaces in the path to the folder where the output file will be written, particularly when working with raster datasets or using the Spatial Analyst Extension. For example, if you are using the "Mosaic to New Raster" tool, the path c:\temp is acceptable, but c:\Documents and Settings\username\My Documents is not. If you are using a tool that temporarily writes files to a location during processing, you may also need to make sure the temporary folder location does not have spaces in the path. To change the scratch workspace for ArcGIS geoprocessing: Open ArcMap. From the Tools menu, select Geoprocessing/Environments. Expand the Workspace menu. Next to "Scratch Workspace", click the Open Folder icon. Navigate to a directory location without spaces in the pathway, and then click Add. In the "Environment Settings" window, click OK. You might also encounter problems with the filename length. When using some ArcGIS scripts, the output raster will have the same name as the associated dbf file but without the .dbf extension. This means you will need to limit your dbf name to 13 characters. This is document axan in the Knowledge Base. Last modified on 2015-06-04 00:00:00. I need help with a computing problem Fill out this form to submit your issue to the UITS Support Center. Please note that you must be affiliated with Indiana University to receive support. All fields are required. Full name Email address Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address. Relationship to Indiana University --Select One-- Student Faculty member Staff member Affiliate Alumnus/Alumna Applicant Emeritus faculty member Parent Retired staf