We will use two objects to illustrate raster cropping: In this case, raster cropping and masking are useful for unifying the spatial extent of input data.īoth operations reduce object memory use and associated computational resources for subsequent analysis steps, and may be a necessary preprocessing step before creating attractive maps involving raster data. Often the extent of input raster datasets is larger than the area of interest.
Many geographic data projects involve integrating data from many different sources, such as remote sensing images (rasters) and administrative boundaries (vectors).