|
POST
|
Thanks Dan... Was looking at my elevation data after RasterToNumPy, was wondering how to filter out the areas of NoData and how to "cut" it into above and below at a certain elevation. Then of course counts of valid "cells" and summing.
... View more
03-01-2017
11:06 PM
|
0
|
1
|
4847
|
|
POST
|
Thanks Curtis, One of the speculations was that there is a lock on something somewhere, but it is hard to imagine how this comes about. If so then this is a bug surely. Just don't know how to re-create it so that someone at esri Redlands would believe me.
... View more
03-01-2017
10:30 AM
|
0
|
0
|
4847
|
|
POST
|
I did try everything to write to the scratch workspace. And moved it to a new shorter location. And also tried your first suggestion using scratchFolder instead and writing a tif. All ended the same. However, I got together with a colleague this morn, and we managed to re-do the workflow in model builder (he knows a lot more than me about this). Same stuff, scratchGDBs or "in_memory" but it worked. But it is bugging me that this error made my python script fail, and I don't understand why.
... View more
03-01-2017
10:24 AM
|
0
|
0
|
4847
|
|
POST
|
Yes Dan, was perusing your numpy pages to see how I would do this using np.array
... View more
03-01-2017
10:19 AM
|
0
|
0
|
15664
|
|
POST
|
Yes, tried doing a zonal geometry of the sliced raster. Same result. I was imagining that the whole workflow would remain as "Raster Objects", rather than anything on disk (or where ever they go), but it appears that it has to save, before doing the next function. Which sort of negates the use of raster objects in the first place... rasAboveArea = ZonalGeometry(rasAbove, "Value", "AREA")
File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\sa\Functions.py", line 6240, in ZonalGeometry
cell_size)
File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\sa\Utils.py", line 53, in swapper
result = wrapper(*args, **kwargs)
File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\sa\Functions.py", line 6234, in Wrapper
cell_size)
File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\geoprocessing\_base.py", line 506, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
RuntimeError: ERROR 010240: Could not save raster dataset to C:\Data\ESRI-SA\scratch\Default.gdb\ifthe_ras with output format FGDBR.
... View more
03-01-2017
06:00 AM
|
0
|
6
|
15664
|
|
POST
|
Changed my worflow slightly, but still hitting the same brick wall. I slice the elevation raster at a certain level, into above / below. Then try and save each raster object to a polygon so i can get the area of each. The tool fails at the RasterToPolygon step. This message seems to indicate that the temporary raster object is trying to be saved into the default fgdb. But no go, same as before. RuntimeError: ERROR 010240: Could not save raster dataset to C:\Users\nayre\OneDrive\Documents\ArcGIS\Default.gdb\ifthe_ras with output format FGDBR. Is this a bug or something?
... View more
02-28-2017
05:38 AM
|
0
|
8
|
15664
|
|
POST
|
Pyscripter is up to date. Does everything I need it to do. PyScripter download | SourceForge.net
... View more
02-27-2017
11:05 AM
|
1
|
1
|
782
|
|
POST
|
Thanks Curtis, I'll do some more faffing the morning.... This tool has become a bit of a headache. One thing after another. Phew. Thanks again for your advice. Neil
... View more
02-27-2017
10:55 AM
|
0
|
9
|
15664
|
|
POST
|
I am trying to do some raster processing in python. As this will become a geoprocessing service eventually, I am using env.scratchGDB for storage. There are several links to this error in Geonet & GIS SE, but I am still stumped. I have also followed advice from Curtis Curtis Price to also set env.workspace = env.scratchGDB to save on copying time. This bit works : rasBase = "rasBase" + DateTimeStamp
rasBaseTmp = arcpy.sa.CreateConstantRaster(benchElev, "FLOAT", rasCellSize)
rasBaseTmp.save(rasBase) But a few lines on I try to do a con on a difference raster... rasAboveTmp = Con(arcpy.Raster(rasDiff) > 0, 1)
rasAbove = "rasAbove" + DateTimeStamp
rasAboveTmp.save(rasAbove) Which gets me this mysterious error: Traceback (most recent call last):
File "C:\Data\Dev\Sprint4\Scripts\Tool_270217.py", line 222, in <module>
rasAboveTmp.save(rasAbove)
RuntimeError: ERROR 010240: Could not save raster dataset to C:\Users\nayre\OneDrive\Documents\ArcGIS\scratch.gdb\rasAbove_270217_1524 with output format FGDBR. Most of the posts refer to trying to save a grid format raster with a filename > 10(?) characters. But this is a raster going into the scratch fgdb? Anybody got an idea? ArcGIS 10.4.1, Win10 64bit
... View more
02-27-2017
05:47 AM
|
1
|
20
|
32522
|
|
POST
|
And while it was still in raster form you could have done some cleaning with the SA/Generalisation toolbox. An overview of the Generalization toolset—Help | ArcGIS Desktop
... View more
02-25-2017
02:05 AM
|
1
|
0
|
1714
|
|
POST
|
I believe you can set up the topology and then validate small pieces of it in an edit session. An overview of topology in ArcGIS—Help | ArcGIS Desktop Validating a topology—Help | ArcGIS Desktop
... View more
02-24-2017
01:02 AM
|
2
|
1
|
1276
|
|
POST
|
Sorry, can't help you with your query but definitely agree with this : "which has the potential to go pair shaped if you ask me"
... View more
02-24-2017
12:44 AM
|
0
|
0
|
3444
|
|
POST
|
Sorry, but I do not see anything in the methods or parameters of a raster object that would allow you to do this.
... View more
02-22-2017
11:41 PM
|
0
|
0
|
557
|
|
POST
|
I believe that you should re-project Project—Help | ArcGIS Desktop this data to GCS_WGS84 before uploading to AGOL. "Projected Coordinate System: CH1903_LV03", is based on GCS_CH1903 and will require a datum transformation as well. There are several available in the system.
... View more
02-17-2017
01:59 AM
|
0
|
0
|
2160
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-08-2015 11:28 PM | |
| 1 | 12-20-2013 08:59 PM | |
| 1 | 05-14-2014 10:38 PM | |
| 1 | 12-16-2013 09:05 PM | |
| 1 | 05-31-2019 02:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|