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

hub uses cache to download RGI #1551

Open
fmaussion opened this issue Mar 22, 2023 · 2 comments
Open

hub uses cache to download RGI #1551

fmaussion opened this issue Mar 22, 2023 · 2 comments

Comments

@fmaussion
Copy link
Member

When building an image with https://github.com/OGGM/r2d, the default paths are used by each user:

oggm.cfg.PATHS

PathOrderedDict([('dl_cache_dir', '/home/data/download'),
                 ('tmp_dir', '/home/jovyan/.oggm_cache/tmp'),
                 ('cru_dir', '/home/jovyan/.oggm_cache/cru'),
                 ('rgi_dir', '/home/jovyan/.oggm_cache/rgi'),
                 ('test_dir', '/home/jovyan/.oggm_cache/OGGM_tests'),
                 ('working_dir', 'WaterResources-Proj-Astore'),
                 ('dem_file', ''),
                 ('climate_file', '')])

/home/jovyan/.oggm_cache/rgi becomes > 1GB large if people download RGI version 60 and 62 and the intersects.

So this takes quite a bit of their 10Gb just like that. I think rgi_dir could be shared accross users.

@TimoRoth
Copy link
Member

TimoRoth commented Mar 22, 2023 via email

@fmaussion
Copy link
Member Author

It's a bit more complicated than that - OGGM downloads and extracts the RGI files in a folder (quite old design decisions). The compressed, global files are in /home/data/download yes.

On hub and classroom there is a shared folder, I think it should rather be prepared there

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

No branches or pull requests

2 participants