AnsweredAssumed Answered

Based on what rule does Raster Calculator produce output when the input rasters are misaligned?

Question asked by _konTinos2018_ on May 1, 2018
Latest reply on May 11, 2018 by curtvprice

Hello everyone,

 

 

I'm using ArcMap 10.2.2. Taking into account the following assumptions:

we have 2 rasters (satellite images from different satellite platforms) of the same pixel size, same coordinate system, little bit misaligned, Snap to Raster environment variable is not defined

I apply a map algebra operation on them. Let's say I add them (arcpy.sa.Plus(raster1, raster2)).

The question is: based on what rule does the Raster Calculator algorithms choose which of the two input rasters the output raster will be aligned to.

Example:

Inputs: Raster1, Raster2

Map Algebra Operation: Raster1 + Raster2

Output: Result (aligned to Raster1)

Question: Why Result is aligned to Raster1 instead of Raster2, since I have not defined Snap to Raster environment variable?

The search I did in order to try to find an answer to that is based on ArcGIS online documentation, help tools inside ArcGIS desktop environment, gis.stackexchange, esri forum, as well as python files. In the latter case, I ended up dealing with built-in functions that are included in arcgisscripting.pyd where I don't have access.

I hope I stated the question clearly. Thank you

Outcomes