Closed irm-codebase closed 1 month ago
Resulting structure when running in euro-calliope-modular
units
is the name of the resolution used by euro calliope, so it's the name used for the folders.
If instead someone passed files for national.geojson
, ehighways.geojson
, etc; they'd have separate folders for each.
Please note that 2016
is just a wildcard. This makes it possible to request data for different resolutions for different years.
module_hydropower
āāā resources
ā āāā basins
ā ā āāā raw_eu.geojson
ā āāā Geth_2015_PHS_capacity.csv
ā āāā IRENA_hydro_generation.csv
ā āāā jrc_hydropower_plants.csv
ā āāā user_input
ā āāā units.geojson
āāā results
āāā basins
ā āāā preprocessed_eu.gpkg
āāā jrc_hydropower_plant_database_preprocessed.csv
āāā plots
ā āāā basins
ā ā āāā basin_eu.png
ā āāā units
ā āāā 2016
ā āāā plot_cutout.png
āāā shapes
āāā units
āāā 2016
ā āāā capacity_factors_reservoir.csv
ā āāā capacity_factors_ror.csv
ā āāā cutout.nc
ā āāā hydropower_inflow_energy.nc
ā āāā hydropower_inflow_m3.nc
āāā hydropower_storage_capacity.csv
āāā hydropower_supply_capacity.csv
13 directories, 17 files
@jnnr Thanks for the feedback!
Couple of clarifications, based on our discussion:
resources/
, by user inputted data I meant resources/user_input
. I updated the original comment to make this less confusing.I think renaming user_input
makes sense for the points you raised. However:
customizable_resources
repeats the naming of the top level (resources/customizable_resources
), and will lead to long paths in the code...How about resources/customisable/
| resources/custom
?
And if we have non-customisable resources that users must give, we just tell them to drop it in resources/
with a specific name.
@jnnr I've updated the module to the agreed convention. Please let me know if I can merge this so the templates are updated.
Fixes #30 and #14
IO concept
IO standard to make modules easier to use on the user/model side, which meets
snakemake
's recommended structure.The preexisting
hydropower
module and the module template were updated to showcase it.Inputs
module/resources
is where all 'raw' data needed for the module to work is deposited. This is downloaded data or user inputted data.module/resources/user_input
is were all user inputted files should land.ehighways.geojson
,DEU.geojson
,MEX.geojson
...).Configuration
use_default_user_input
is a module-level configurationbool
that, whenTrue
, will:resources/user_input
rule all
, which triggers the module's processing for the default input.Outputs
Check the hydropower
README
for detailed info. A brief summary:module/results
is were all the 'processed' files land.