-
Notifications
You must be signed in to change notification settings - Fork 120
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
Easy-to-use data download tools #681
Comments
Hi @Rlamboll - this seems like a great addition to pyam. Could you perhaps first outline what kind of functionality would be enabled on top of the current |
It would mimic/generalise these two functions, extracting emissions data from the IIASA database unless it had already been downloaded previously: `def download_or_load_sr15(filename, valid_model_ids="*"):
def get_sr15_scenarios(output_file, valid_model_ids):
` |
Perhaps I'm wrong (and please tell me if so!), but wouldn't the second function be simply:
If so, I think this functionality is already supported, and One thing we could think about adding are local on-disk caches of previously queried data. I've done that in prior projects, but it gets a bit tricky having to embed version information in the cache so you know when it needs to be redownloaded, etc. But I'm open to suggestions! |
FWIW, the |
I think the download or load idea is helpful. It's just never been clear to me where it best fits. Options I see:
I'm happy with whatever (and I don't think this is really a blocker for anyone as writing your own workaround is so simple) but I think a solution to these sort of utility bits and pieces could be a great community sharing/cooperation thing. |
Given its close proximity to the Based on the discussion here, I'd propose the following. We implement
The method then would check if either the file does not exist or if the Would that be something you could take a crack at @Rlamboll? |
it can go somewhere on my to-do list! |
Chris asked if we can add an easy-use tool to download emissions data (possibly checking if the data is already downloaded) from the AR6 database to Silicone, since I put in such a tool for SR1.5. GranthamImperial/silicone#148. It avoids the need to look up what connections are used for this.
It would be more logical for these tools to be part of the main pyam repository because 1) they will get better upkeep if you change the database behaviour 2) they are out-of-scope for Silicone and were just added for my convenience.
Proposed resolutions:
Are there any objections to doing this?
The text was updated successfully, but these errors were encountered: