This PR adds a new module raster_process.py with functions query_raster_by_polygon and query_raster_by_gdf. Both functions allow for cropping a large raster by specified geometries. Ideally the module will also contain more raster processing utilities down the line.
This should work for both local files and cloud-optimized geotiffs, but I was not able to test the latter as I was not able to find an available COG url to use.
Closes #167
This PR adds a new module
raster_process.py
with functionsquery_raster_by_polygon
andquery_raster_by_gdf
. Both functions allow for cropping a large raster by specified geometries. Ideally the module will also contain more raster processing utilities down the line.This should work for both local files and cloud-optimized geotiffs, but I was not able to test the latter as I was not able to find an available COG url to use.