POST
|
I am trying to extract historic NAIP imagery from a server. The clip function only gives me the current year. By right clicking on the layer and choosing Data - Download Rasters it says to check if rasters are accessible and downloadable. I know they are. What am I missing? Obviously the time slider is only visual. How do I specify what year NAIP I want to extract/clip?
... View more
02-07-2017
12:57 PM
|
1
|
4
|
1958
|
POST
|
If they are multiple bands what are your no data values you are looking for? 0,0,0? yes. and would it have to be done from within a GDB? Thanks!
... View more
04-23-2014
09:16 AM
|
0
|
0
|
572
|
POST
|
Check if the ANYNODATA or ALLNODATA properties of GetRasterPorperties_management will do what you want: http://resources.arcgis.com/en/help/main/10.1/index.html#//0017000000m7000000 Here is an exmple of running thru the Default.gdb on my system and reporting the raster name and ANYNODATA value
ws = r'H:\Documents\ArcGIS\Default.gdb'
arcpy.env.workspace = ws
rasters = arcpy.ListRasters()
for raster in rasters:
nodatval = arcpy.GetRasterProperties_management(raster, "ANYNODATA")
print str(raster) + " NoData = " + str(nodatval)
sys.exit()
This seems to give me a "nodata = 1" no matter whether the nodata values are 0 or 1. is there a way to query for pixel value? If i could query for pixel values of 0 then that would solve my problems competely. Thanks for the input!
... View more
04-23-2014
09:03 AM
|
0
|
0
|
572
|
POST
|
They are multiple bands. Neither of the above seemed to work. Is there a way to query rasters for pixel values of 0 instead of going the nodata route?
... View more
04-23-2014
08:58 AM
|
0
|
0
|
572
|
POST
|
I am wondering if it is possible to query a directory, returning results of any raster that has no data values of 0. I have been building mosaics, making the nodata values = 1. However, some have been built with nodata values= 0. Is there a way to find these 0 values without checking each one individually? Thanks for any and all input.
... View more
04-23-2014
07:33 AM
|
0
|
7
|
1104
|
Title | Kudos | Posted |
---|---|---|
1 | 02-07-2017 12:57 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|