Questions tagged [error-010240]
010240: Could not save raster dataset to <value> with output format <value>, is an ESRI software code
20
questions
0
votes
1
answer
67
views
Distance Accumulation script execution in ArcGIS Pro [closed]
I am currently working on a project that involves the generation of multiple distance accumulation rasters for a large set of features (volcano buffers) in ArcGIS Pro, using Python. Specifically, I ...
0
votes
0
answers
82
views
EucDistance fails on last iteration of loop using ArcPy with ArcGIS Pro
I am building a tool for ArcGIS Pro 2.8.0 with Python using the template that ESRI provides. The first part of the tool defined in the execute function takes a point feature and loops through a search ...
1
vote
1
answer
195
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
votes
1
answer
127
views
How to write Con expression in Raster Calculator
I want to calculate S factor for USLE model when I tried to run my expression, I met a problem.
Con("Slope_Fill_sl" <=5 ,10.8*Sin("Slope_Fill_sl" +0.03 )
Can anyone tell me which part I did wrong?...
0
votes
0
answers
1k
views
Arcpy - Error 010240 - Con statement - can`t save raster dataset with output format GRID
I am trying to set an "output path" in my Arcpy script in order to not have to repeat the path everitime I want to save a dataset after applying a tool.
So I set the output path like:
output_path =...
1
vote
0
answers
120
views
Esri Terrain-Tools v1.1 Sky Tool Cannot Save File
I am trying to use Esri Terrain-Tools v1.1 with ArcMap 10.5 to create a hillshade from either a 90 m SRTM DEM or 30 m DEM. I have tried saving this to a file geodatabase (FGDB) and .tif. In both cases ...
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 ...
2
votes
0
answers
427
views
Breaking single large raster into NumPyArrays using arcpy memory error
I'm trying to run raster calculator on a large raster file using the following approach : http://pro.arcgis.com/en/pro-app/arcpy/functions/rastertonumpyarray-function.htm, but I seem to run into ...
0
votes
1
answer
130
views
Error 010240 while running cell statistics operations
Can somebody figure out whats going on here?
I had absolutely no problems running these commands before.
I am trying to add 1046 raster layers. I created a list of rasters using arcpy.ListRasters()
...
0
votes
1
answer
609
views
Error 010240: Can't save my con statement as a tiff?
I want to write a conditional statement and save it as a .tif file. I have looked through the documentation from ArcGIS and as far as I can tell, my code should work, but I keep getting an error that ...
1
vote
1
answer
283
views
Arcpy batch raster reclassify script unable to save
I have a folder with multiple rasters that need to be reclassified. Using spatial analyst reclassify tool, I have the following script:
import arcpy
import pandas as pd
arcpy.CheckOutExtension("...
3
votes
1
answer
1k
views
RuntimeError: ERROR 010240 in Con operation in arcpy
I am dabbling with the resolution of the error says:
RuntimeError: ERROR 010240: Could not save raster dataset to
as attached as a screen shot. I am working with a DEM file and trying to generate ...
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
233
views
Iterating through point layer to create & sum distance rasters
I'm writing an Arcpy program to process data in a layer of several hundred points ('ptsLyr', from file 'ptsFile'), each of which has its own ID ('RecordID') and an associated value, 'radius', that I ...
0
votes
3
answers
5k
views
Multiple conditional statements within a Con Tool
Well I want to apply multiple conditional statements within a Conditional tool. My aim is to loop through a list of rasters and on the basis of a specified range assign each range with a constant 1, 2,...
1
vote
1
answer
2k
views
Why does CON statement give ERROR 010240: Could not save raster dataset to (value) with output format GRID?
I am receiving the following error when trying to run the following code:
import arcpy
from arcpy import env
from arcpy.sa import *
arcpy.CheckOutExtension = "Spatial"
env.workspace = r"C:\...
1
vote
1
answer
3k
views
While looping with arcpy: ERROR 010240: Could not save raster dataset?
I am very new to python coding and have been struggling with this for a while I cannot see the reason for this error!
Here is the code that is causing this error:
import arcpy
import numpy as np
...
6
votes
3
answers
7k
views
What causes RuntimeError: ERROR 010240 saving after CellStatistics?
I am having trouble saving outputs from CellStatistics but only when I run it on a list of rasters. This was working on python 26 but not 27.
I know this example is nonsense, but:
env.workspace = ...
3
votes
1
answer
393
views
Error 010240 with ZonalStatistics
I have a code that calculates the sum of water recharge for a pixel for a 9 year period (This piece of code works fine, just thought I would show how it is made just in case. The values range from 0 ...
3
votes
1
answer
719
views
Unable to create temporary GeoDatasets in g_g_g folders
I am converting a VBA macro that was written for ArcGIS 9.3 to a VB.NET project using the ArcGIS 10.0 .NET SDK. I am getting the following error whenever the code tries to create a temporary ...