|
1 | 1 | # Data generation |
2 | 2 |
|
| 3 | +## Setup and data generation in GlobalEnergyGIS |
| 4 | + |
| 5 | +If the user wants to generate completely new instances, they first need to set up GlobalEnergyGIS: https://github.com/niclasmattsson/GlobalEnergyGIS . Especially important is the first part "Setup and data generation". This allows the user to create datasets of renewable energy independant of EnergySystemModeling. After the user set up their Copernicus account and downloaded the auxiliary datasets, rasterized them and downloaded ERA5 data, they can start generating their own instances in EnergySystemModeling. |
| 6 | + |
| 7 | + |
3 | 8 | ## Run_data_generation.jl |
4 | 9 |
|
5 | | -Users set the framework for their desired regionsets and generate the regionset. |
6 | | -The instance is then created using the previously defined framework and dataset by: |
7 | | -```@example create_data_sets |
8 | | -create_data_sets(inputdata, regionset, sspscenario_input, sspyear_input, era_year_input, Dataset, folder, subfolder, instance_name) |
| 10 | +After the setup of GlobalEnergyGIS, the user can create a new instance by running the run_data_generation.jl file. |
| 11 | + |
| 12 | +The first thing the user has to do is to define the input values for the function |
| 13 | + |
| 14 | +``` |
| 15 | +julia> create_data_sets(inputdata, sspscenario_input, sspyear_input, era_year_input, Dataset, folder, subfolder, instance, T, t, Fmin) |
9 | 16 | ``` |
10 | 17 |
|
11 | | -## Data_generation.jl |
| 18 | +These input values are: |
| 19 | +* inputdata: Path to the output folder of GlobalEnergyGIS |
| 20 | +* sspscenario_input: One of three scenarios: ssp1, ssp2 or ssp3. All are scenarios of projected socioeconomic global changes up to 2100. They are used to derive greenhouse gas emissions scenarios with different climate policies. |
| 21 | +* sspyear_input: Target year of the model. |
| 22 | +* era_year_input: Year of the ERA5 time series to be used in the model. |
| 23 | +* Dataset: Matrix of countries with their corresponding GADM name. |
| 24 | +* folder: Upper most folder where the instance is being generated. |
| 25 | +* subfolder: Lower level folder where the instance is being generated. |
| 26 | +* instance: Name of the instance. |
| 27 | +* T: Time period in hours. |
| 28 | +* t: Number of technologies considered in the instance. |
| 29 | +* Fmin: Minimum water flow for node $n$. |
| 30 | + |
| 31 | +The country dataset gets generated by |
12 | 32 |
|
13 | | -### Get country list |
14 | 33 | ```@example get_countries |
15 | | -get_countries(Regions) |
| 34 | +julia> get_countries(Regions) |
16 | 35 | ``` |
17 | | -Takes the countries or regions specified by the user and turns them into a structure which GlobalEnergyGIS can recognize and on base of which it creates datasets of renewable energies. |
| 36 | +Where |
| 37 | +* Regions: Vector with the country or region names that the user wants. Regions available are Nordics, Eastern, Western, Central, Mediterranian. |
| 38 | + |
| 39 | +This takes the countries or regions specified by the user and turns them into a structure which GlobalEnergyGIS can recognize and on base of which it creates datasets of renewable energies. |
| 40 | + |
| 41 | +The regions contain following countries: |
| 42 | + |
| 43 | +``` |
| 44 | +Nordics: Finland, Sweden, Norway, Denmark |
| 45 | +``` |
| 46 | +``` |
| 47 | +Eastern: Poland, Slovakia, Hungary, Lithuania, Latvia, Estonia |
| 48 | +``` |
| 49 | +``` |
| 50 | +Western: France, United Kingdom, Ireland, Netherlands, Belgium, Luxembourg |
| 51 | +``` |
| 52 | +``` |
| 53 | +Central: Germany, Austria, Switzerland, Czech Republic |
| 54 | +``` |
| 55 | +``` |
| 56 | +Mediterranian: Spain, Portugal, Italy, Greece, Croatia, Malta, Albania, Bosnia and Herzegovina |
| 57 | +``` |
| 58 | + |
| 59 | + |
| 60 | +If the user does not specify any set of countries or regions, he will get an instance for whole Europe: |
18 | 61 |
|
19 | 62 | ```@example get_countries |
20 | | -get_countries() |
| 63 | +julia> get_countries() |
| 64 | +``` |
| 65 | + |
| 66 | +This includes all of the following countries: |
| 67 | +``` |
| 68 | +Albania, Armenia, Austria, Azerbaijan, Belarus, Belgium, Bosnia and Herzegovina, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Kosovo, Latvia, Lithuania, Luxembourg, Malta, Moldova, Montenegro, Netherlands, North Macedonia, Norway, Poland, Portugal, Romania, Russia, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey, Ukraine, United Kingdom |
21 | 69 | ``` |
22 | | -If the user does not specify any set of countries or regions, he will get an instance for whole Europe. |
23 | 70 |
|
24 | | -### Generate datasets and CSV files |
| 71 | +The instance itself is then created by: |
25 | 72 | ```@example create_data_sets |
26 | | -create_data_sets(inputdata, sspscenario_input, sspyear_input, era_year_input, Dataset, folder, subfolder, instance, T, t) |
| 73 | +julia> create_data_sets(inputdata, sspscenario_input, sspyear_input, era_year_input, Dataset, folder, subfolder, instance, T, t, Fmin) |
27 | 74 | ``` |
28 | 75 |
|
29 | | -Uses GlobalEnergyGIS to generate renewable energy input data based on the sspscenario, sspyear and base year defined by the user. It then reads the generated data, converts it and generates different CSV files with data that can be used by EnergySystemModeling.jl. |
| 76 | + |
| 77 | + |
0 commit comments