POST
|
Were you able to resolve this issue? I am having problems with the Fill tool not changing values, but only when I set a z-limit value. Your issue may be related to this. Charles
... View more
02-04-2012
08:38 PM
|
0
|
0
|
647
|
POST
|
Is there any way to modify the values of one of the bands in a composite raster (and leave it in the composite raster), without having to calculate/export each of the bands and then re-compositing them? Thanks, Charles
... View more
08-18-2011
01:16 PM
|
0
|
0
|
649
|
POST
|
In a python script using arcpy, to select a single band from a multi-band raster, just append "\\Layer_X" onto the path name. For example, my multi-band raster is "D:\\temp\\test.img" (or r"D:\temp\test.img" or 'D:/temp/test.img'). The second band would be "D:\\temp\\test.img\\Layer_2". Actually it could be called something other than Layer_X, you just have to look at how it is named when you load the raster into ArcMap (in ArcGIS 9 I think they were all named band_X). To get the part of a raster with a specific value in a python script, you can use simple conditionals. I'm not totally sure this is what you want, but maybe it will help: import arcpy
arcpy.CheckOutExtension("Spatial")
input_raster = "D:\\temp\\test.img"
band1_obj = arcpy.sa.Raster(input_raster+"\\Layer_1")
band2_obj = arcpy.sa.Raster(input_raster+"\\Layer_2")
band3_obj = arcpy.sa.Raster(input_raster+"\\Layer_3")
output_obj = (band1_obj == 112) & (band2_obj == 115) & (band3_obj == 5)
output_obj.save(r"D:\\temp\\output.img") I'm not sure how to do this in raster calculator. I was actually trying to figure that out when I found your post, but it is probably very similar though.
... View more
08-18-2011
01:02 PM
|
0
|
0
|
372
|
POST
|
Did you ever resolve this issue? I just started having this happen on a computer that previously worked fine. Charles
... View more
01-24-2011
03:35 PM
|
0
|
0
|
553
|
POST
|
I was having the same problem with using SciPy functions. It seems the problem is that SciPy 0.8 needs NumPy 1.4.1 or newer (look at the INSTALL.txt in Python\Lib\site-packages\scipy). I installed NumPy 1.5 on top of the NumPy 1.3 install that comes with Arc10 and everything seems to be working. You could probably also try installing an older version of SciPy. I'm sure there is some reason not to do this, but for now it works.
... View more
11-04-2010
07:26 AM
|
0
|
0
|
406
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|