Thursday 2 May 2019

Adjusting extent of raster using ArcGIS Desktop?


background: raster extent (cols/rows) - foreground: files desired to have the same cols/rows numbers



The coloured file contains landuse information and it needs to have the same number of columns and rows as the DEM in the background for further processing. I can't get it to work - "clip" and "extract by mask" haven't generated the results I need.


It's supposed to keep its values within the coloured areas - but outside of that to the borders of the DEM (the whole black and white area) I need it to have NoData values.



Answer



Use the raster calculator, set output extent and snap raster to the DEM in the tool environment, then use the land use raster layer as the expression. Easiest way to do that is to double click the land use raster layer in the layer list.


The output will be a raster with the extent of the DEM with NoData where there are no the land use values.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...