thinkingmachines / geowrangler

🌏 A python package for wrangling geospatial datasets
https://geowrangler.thinkingmachin.es/
MIT License
49 stars 14 forks source link

Implement raster cropping as in raster_process module #179

Closed tm-jc-nacpil closed 1 year ago

tm-jc-nacpil commented 1 year ago

Closes #167

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.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB