coastwatch-training / CoastWatch-Tutorials

This repository includes CoastWatch training materials and code samples to demonstrate access and usage of environmental and oceanographic satellite data
MIT License
15 stars 2 forks source link

calculate-seaice-extent #46

Closed ronygolderku closed 1 month ago

ronygolderku commented 5 months ago

Hi there, I am Rony. Thanks for making this awesome repository. While exploring the contents of the repository [working-with-sea-ice-conc-data/working-with-sea-ice-conc-data.ipynb], I noticed that the dataset dimensions ygridandxgridare represented in metres/kilometers.

I am particularly interested in learning how to crop/slice the sea ice dataset based on latitude and longitude coordinates. Given that the dataset utilizes ygridand xgrid dimensions, I would like to understand the process of clipping (cropping) the dataset using latitude and longitude coordinates. Alternatively, if possible, I would also like to explore the option of using a shapefile for cropping purposes.

Thank you for your time and assistance.

Rony

shospital commented 3 months ago

@ronygolderku

Hello Rony, I have uploaded few utility functions to process the sea ice data. here you can crop using a shapefile with geometries from different projection than that of the sea ice data. please take a look at it and see if you can manipulate the python code for your needs.

https://github.com/polarwatch/data-proc-utilities/blob/main/python/clip_data_to_shapefile.ipynb