-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CMS Global Mangrove Canopy dataset #391
Conversation
The easiest way to do this would be to always load all countries and allow the user to select a region by passing an ROI to the GeoSampler. It'll be a bit harder to let them select the countries. |
Okay, I just thought that having a list of country names as an argument would be the most user friendly thing to do. With respect to selecting one of three measurements, should I then overwrite the getitem method that filters for the selected measurement? |
If you do want to support a country name argument, you should filter by filename during |
After second thought, supporting only a single country at a time might actually be very reasonable, since individual country tiles can be very large and a user could still use the Union to combine several countries. However, I have come across an inconsistency for three country names in the dataset file naming:
Do you have a suggestion on how to deal with this? Write a warning in the documentation? |
What do you mean by inconsistency? Inconsistency between what and what? |
Inconsistency in naming. For case 1 and 3, you could lowercase them via |
Sorry, inconsistency of naming a country for one of the three measurements (agb, hba95 or hmax95):
|
Yeah, that's a bit harder. It's easy to do if you override all of |
Yes that's what I thought as well. Maybe then just add a warning for those three cases and wait for them to correct the dataset? I have emailed the data center there. |
It looks like you have |
(just cleaned up a little bit) |
@adamjstewart, are your comments resolved here? |
* CMS dataset * dynamically set filename * add warning in documentation * requested changes and data.py * single zip file and camel case * md5 check added * correct error messages * compression smaller test file Co-authored-by: Caleb Robinson <[email protected]>
This PR adds the CMS Global Mangrove Canopy dataset. It's a dataset of mangrove areas around the world at 30m resolution, where the raster displays pixel-wise measurements of either aboveground biomass, basal area weighted height, or maximum canopy height. An example for agb can be found below.
Since there are 116 different countries, I think it is desirable to let the user choose for which countries data should be retrieved. Likewise this should be possible for choosing one of the three measurements. However, I am not sure how to best do this with inheriting the Raster dataset class, where I need to only select possible filenames matching country and measurement to populate the index.
Example AGB: