Open jnnr opened 3 months ago
This might be useful: The commit contains functions that map from EUROSTAT statistical data to NUTS units. https://github.com/calliope-project/euro-calliope/commit/e995c25318f7d20e31345b925cfc15638fbb473b#diff-94359c59da328aa237ab2d75320a84c6343fe4954a4169910fd9e0d376dc42eb
The goal is this: The workflow preprocesses all raw spatial data that is to be used later at sub-national resolution into clean raster data. This preprocessed data can then be aggregated in the next step to any custom resolution (e.g. regional, E-highways, some custom resolution that is high-res for one country and more coarse for another).
rasterize_polygon_based_data(data, spatial_units, resolution_raster, proxy)
First, understand how spatial units and data are currently processed
How does EC process spatial units and data?
Where does preparation of units happen? NUTS and GADM are downloaded and prepared.
units
collects NUTS and GADM data, "Remixes NUTS, LAU, and GADM data to form the units of the analysis.", and provides input ("build/data/{resolution}/units.geojson") to many rules, namelyunits_without_shape
(producing units.csv at a given resolution), used inaggregate_timeseries
(electrified road transport). Sums timeseries for continental and national resolution, disaggregates to regions according to population for regional resolution.aggregate_timeseries_historic_electrified
: Copy of above rule, but with historic electrification.biofuels
Disaggregates biofuel potential to regions using proxies, if elsearea_to_capacity_limits
use unit names to reindex capacity data.nuclear_regional_capacity
: geopandas.overlay operationelectricity_load
: uses national demand and scales it to regions using predefined scaling factors in https://zenodo.org/record/5112963/files/possibility-for-electricity-autarky.ziplocations_template
: Takes the regions id and adds the centroids as coordinates to the templatecapacity_factors_onshore_wind_and_solar
: uses units to calculate area weighted timeserieshydro_capacities
geopandas.sjoincapacity_factors_hydro
geopandas.sjoinHow does SCEC process spatial units and data?
annual_subnational_demand
regional_dwelling_ratio
data-sources.statistical_units_to_custom_regions
custom_units
, which only exists on Bryn's fork. This rule creates "build/data/ehighways/units.geojson"copy_euro_calliope
copy_resolution_specific_euro_calliope
annual_waste_supply
annual_subnational_demand
regions
weather_and_population
update_electricity_with_other_sectors
gas_storage
copy_biofuel_techs
coal_supply_yaml
Tentative plan:
Set a NUTS year convention After data cleaning, in every instance, disaggregate timeseries or scalars to NUTS3 Later, aggregate. Mapping from NUTS3 to Ehighways is easy (up to differences caused by different NUTS years)