-
Notifications
You must be signed in to change notification settings - Fork 219
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
Retrieve databundle downloads bundles without checking file sizes #866
Comments
Hello @Emre-Yorat89! As we have discussed, the current settings do not allow to download cutouts focused on the specific regions. A databundle is currently selected cover as much countries as possible from the provided countries list: pypsa-earth/scripts/retrieve_databundle_light.py Lines 459 to 464 in 4f2ee93
You suggest a selected data bundle should be as small as possible which sounds like a nice further development of the existing approach. |
I think the issue can be solved by reordering cutout bundles according to their sizes in ascending manner in the config file. Since @yerbol-akhmetov has mentioned in the weekly developer meeting that the script downloads the first bundle that matches countries or areas of interest. |
Hey @Emre-Yorat89, agree that it may be a quite elegant and straightforward solution. @davide-f what is you feeling about that? |
Hello!
Currently, when multiple cutouts contain all countries, a random one is picked. Then, with pandas, we can sort the dataframe by the first column first and then the second column, and pick as many bundles as needed till matching the whole countries. |
This issue is now solved thanks to #911 |
Checklist
main
branch or the latest release. Please indicate.pypsa-earth
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
Please provide a description of what the bug is and add a minimal example/command for reproducing the bug.
Error Message
If applicable, paste any terminal output to help illustrating your problem.
In some cases it may also be useful to share your list of installed packages:
conda list
.Hello,
When running retrieve databundle script it downloads a cutout bundle that matches first. However, there could be also another bundle which has smaller size that satisfies the country requirement too. Therefore a size check of matched bundles would prevent burden on computer memory.
The text was updated successfully, but these errors were encountered: