New answers tagged

0 votes

Determine if a camera is observing a particular polygon

Use your latitudes, longitudes, and azimuths to plot the location and angle of one of your images in something like Google Earth. For Example, this image of St Catherine of Siena Church (your image ...
  • 7,587
0 votes
Accepted

Convert Luojia1-01 DN values to radiance

After applying the same formula using QGIS the resulting raster is a continuous raster which has a range of pixel values 0-0.08. I'm not sure if ArcMap creates a binary raster because it can't capture ...
  • 367
2 votes

Combinatorial And

As per the documentation: CombinatorialAnd(in_raster_or_constant1, in_raster_or_constant2)
  • 54.3k
2 votes
Accepted

"NameError: name 'SetNull' is not defined" error in ArcPy script?

As commented by Vince, you either need to include the arcpy.sa before your SetNull, or do a wildcard import. Explicit reference: import arcpy ... output_raster = arcpy.sa.SetNull(raster < 0.1, ...
  • 29.3k
0 votes

Loop through raster names in two folders, perform Con (Spatial Analyst tool) if the dates match

I have managed to gather the code with some additional help.Here is the code. import arcpy, os from arcpy.sa import * from arcpy import env # Set the current workspace location_a = "D:/datasets/...
0 votes

Loop through raster names in two folders, perform Con (Spatial Analyst tool) if the dates match

Looping through both folders is pretty inefficient. I would propose the following logic (which only uses a single loop): For each image in folder A, extract the date into a variable Construct the ...
  • 8,158
0 votes

Loop through raster names in two folders, perform Con (Spatial Analyst tool) if the dates match

After you spit your file names and extract the dates you have your list indices mixed up. snow_values = snow_name[2] for location_A should be snow_values = snow_name[0] and snow_values = snow_name[0] ...
  • 7,587

Top 50 recent answers are included