Skip to content
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 COPDEM30 #1364

Merged
merged 9 commits into from
Feb 2, 2022
Merged

Add COPDEM30 #1364

merged 9 commits into from
Feb 2, 2022

Conversation

matthiasdusch
Copy link
Member

@matthiasdusch matthiasdusch commented Jan 20, 2022

Closes #1362

  • Tests added/passed
  • Fully documented
  • Entry in whats-new.rst

Work in progress. I hope to get a lookup shapefile from Copernicus in the next days. Otherwise this has to be made more or less manually.

Open to discussion: Copernicus offers different releases of both COP30 and 90. Some info can be found here under "Releases": https://spacedata.copernicus.eu/web/cscda/dataset-details?articleId=394198
I guess it makes sense to use the latest version, but it could cause some inconsistencies for people.

note to myself: #961 was the previous PR

@pep8speaks
Copy link

pep8speaks commented Jan 20, 2022

Hello @matthiasdusch! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-02-01 21:00:46 UTC

@fmaussion
Copy link
Member

Thanks so much!!!

I guess it makes sense to use the latest version, but it could cause some inconsistencies for people.

Yes, we don't really care about backwards compatibility here (for both the 90 and 30 m products). Cheers!

@matthiasdusch
Copy link
Member Author

fyi: Copernicus EO support responded today, but instead of providing a lookup shapefile like last time they pointed me to a mapping.csv file on their ftp server. This will work as well.

oggm/utils/_downloads.py Outdated Show resolved Hide resolved
@matthiasdusch
Copy link
Member Author

matthiasdusch commented Feb 1, 2022

needs OGGM/oggm-sample-data#12 first and than the hash updated

Seems to pull the correct files. No differences on larger glaciers. Visible differences on smaller glaciers.

HEF:
RGI60-11 00897_dem_topo_color

RGI60-16.02207 (Peru):
RGI60-16 02207_dem_topo_color

RGI60-16.01640 (Mt Kenya):
RGI60-16 01640_dem_topo_color

RGI60-15.00060 (South Asia East):
RGI60-15 00060_dem_topo_color

RGI60-01.08063 (Alaska):
RGI60-01 08063_dem_topo_color

@fmaussion
Copy link
Member

Looking good, thanks!!!!!

You should be able to change the commit hash now and there seems to be a few pep8 to fix

@@ -2190,6 +2202,9 @@ def default_dem_source(rgi_id):
sel = cfg.DEM_SOURCE_TABLE[rgi_reg].loc[rgi_id]
for s in ['NASADEM', 'COPDEM', 'GIMP', 'REMA', 'TANDEM', 'MAPZEN']:
if sel.loc[s] > 0.75:
# this can go as soon as 'rgi62_dem_frac.h5' is updated:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmaussion what do you think about this? Not sure when/how/where this 'rgi62_dem_frac.h5' gets updated. Or if this might break somewhere else.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think this is irrelevant for this PR - I really need to rethink this logic (related: #1269)

oggm/utils/_downloads.py Outdated Show resolved Hide resolved
Copy link
Member

@fmaussion fmaussion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thank you! If you are not tired of it a note in whats new would be welcome! If you have no time no worries I'll merge and do this later

oggm/utils/_downloads.py Outdated Show resolved Hide resolved
@matthiasdusch
Copy link
Member Author

sure, will do. I am just wondering at the moment why these tests take so long or probably timeout? I can't really see at which point they are stuck... can you?

@fmaussion
Copy link
Member

why these tests take so long or probably timeout

Not your fault. @TimoRoth and I are investigating, it's probably on the github side

@fmaussion
Copy link
Member

Thanks a lot! This is awesome. I have hired a student to work on applying this for RGI7, work will start end of February we'll keep you in touch.

@fmaussion fmaussion merged commit 447a49d into OGGM:master Feb 2, 2022
@matthiasdusch matthiasdusch deleted the copdem30 branch February 2, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

COPDEM90 and COPDEM30
3 participants