POST
|
1. My Mask was a polygon shapefile. Specifying its name in the dataframe instead of the path didn't cause any problems. 2. Originally the default workspace was '..\ArcGIS\Default.gdb' Setting the workspaces to a folder solved my problem! Thanks a lot!! Do you know why using the geodatabase as the workspace didn't work out? Should map algebra always be done outside a file geodatabase? thanks again!
... View more
12-12-2014
07:31 AM
|
0
|
1
|
539
|
POST
|
Hi, i try to execute the following commands in the python window (the spatial analyst extension is checked out) import arcpy
from arcpy.sa import *
# Set Mask environment
arcpy.env.mask = r'mask'
#calculate
temp = Raster("rasterA") - Raster("rasterB")
temp.save("Result") RasterA and rasterB are in my dataframe. After executing temp = Raster("rasterA") - Raster("rasterB") a raster 'temp' appears in my dataframe (source = temporary raster 'minus_ras' in my default geodatabase. if a then execute temp.save("Result") I get the following Arcmap drawing error: "One or more layers failed to draw: temp: The table was not found. [fras_blk_minus_ras] temp: The table was not found." In the geodatabase an entry "Result" can be found, but it's a File Geodatabase Table instead of a File Geodatabase Raster, and I can't add it to my dataframe.. Anybody knows what's going wrong? Thanks!
... View more
12-11-2014
07:27 AM
|
0
|
3
|
5246
|
POST
|
Hi, thanks for the reply. I also worked around it by programming the batch conversion in python and converting all the ASCII files to esri grids using ASCIIToRaster_conversion()
... View more
10-11-2013
02:09 AM
|
0
|
0
|
615
|
POST
|
Hi, I have a lot of rasters in ESRI ASCII raster format (text files). These can be added to ArcMap by simply dragging them from ArcCatalog. I use ArcGIS desktop 9.3.1 SP2. The problem is: These rasters contain FLOAT data, but when directly opened in ArcMap they are displayed as INTEGER grids. Here is an example of a header + first line w/ nodata values: ncols 2410 nrows 1220 xllcorner 21000 yllcorner 128000 cellsize 100 NODATA_value -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 etc. I've noticed that the rasters will only display data with real values, instead of integer, if: 1) the decimal separator is a point (instead of a comma) 2) the first value in the raster after the header includes a decimal point e.g. -9999.0 instead of -9999 Almost all of my rasters start with a nodata value of -9999, so I'd have to put '.0' behind every first value in the ASCII files or I'd have to import all the ASCII files to rasters using e.g. RasterToASCII_conversion. Is there another way to visualise these rasters directly and correctly without the need to change all my ascii files as described above? Is there another text file format for rasters that could perform better than the ESRI ASCII format? thanks!
... View more
02-01-2013
03:56 AM
|
0
|
3
|
4185
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|