-
Notifications
You must be signed in to change notification settings - Fork 248
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
Atlite availability #224
Atlite availability #224
Conversation
- revise imports - add logging for long calculation - revise explaining comment - revise distance calculation
* rename potmatrix -> capacity_potential * rename available to availibility
build_renewable_potentials: major refactoring and simplification hydro_profiles: update code
Snakefile fixup
build_cutout: automatic detetection of geographical boundaries
build_cutout: fixup for region bound
Anything left to do? |
I will just double check the non-tutorial workflow and I think then we're fine :) |
I'll briefly check the tutorial workflow. |
Tutorial:
But if one follows the documentation and does |
yep, the jittering progressbar appears when having parallel processes that result in parallel progressbars which all want to be displayed at the same spot. |
I prefer jiggly feedback on whether the process is alive or not over no feedback. (In favour of the current situation) |
I see the positive aspects of both :) no preference. Re config: I see, so the option |
Yes. That's intentional behaviour: Use |
Short update. Everything works fine, but (!) the memory consumption is not stable for solar profiles when executing with the latest dask version (2021.4.1). I try to find the latest version that works smoothly and then add a requirement to the envs. Unfortunately, I have no clue where the memory issue comes from (my guess it has to do with xarray clip functions). But i'm pretty sure this will be solved in the future. |
Yes, exactly! That costed me some hours... |
restarting tests, got stuck on build_cutout csdapi request. |
right, which reminds me that we can/should set the test config to |
Alright, I think we are there. Thumbs up if I should merge. |
🥳 🎈 🎉 |
Yes, finally :) |
Indeed. Finally! (= 😄 |
Hi together, |
Hi, yes, PyPSA-Eur-Sec is not yet updated for the new atlite version. We are working on this. Please use PyPSA-Eur release v0.3.0 or a commit pre #224 in combination with PyPSA-Eur-Sec for now. |
closes #162
closes #156
closes #132
closes #169
closes #147
closes #230
Changes proposed in this Pull Request
Switch to new
atlite
versionv0.2.1
. The version upgrade comes along with significant speed up for the rulebuild_renewable_profiles.py
(~factor 2). A lot of the code which calculated the landuse availability is now outsourced and does not rely onglaes
,geokit
anymore. This facilitates the environment building and version compatibility ofgdal
,libgdal
with other packages.It requires an update of the cutout files at zenodo.
The new implementation is not able to exactly reproduce the old profiles, but very close. Reasons:
scipy.ndimage
, glaes made a conversion of the raster to geometries -> calculating a buffer -> backconverting to a raster. Non of the approach is objectively better, their results diverge just a very little.gdal
resampling methodaverage
, is not purely consistent as their might be a small subpixel shift (Pixels shift when resampling using "average" or "Lanczos" OSGeo/gdal#2235).Open question
build_country_flh.py
)? I did not update it. If wanted please shout out. Otherwise we could delete the rule.Checklist
envs/environment.yaml
andenvs/environment.docs.yaml
.config.default.yaml
,config.tutorial.yaml
, andtest/config.test1.yaml
.doc/configtables/*.csv
and line references are adjusted indoc/configuration.rst
anddoc/tutorial.rst
.doc/release_notes.rst
is amended in the format of previous release notes.