Load Data

Load Data

Load Timeseries Data

load_timeseries_data() loads the data for a given application and region. Possible applications are

Possible regions are:

The optional input parameters to load_timeseries_data() are the number of periods K and the number of time steps per period T. By default, they are chosen such that they result in daily time slices.

load_timeseriesdata(application::String, region::String, K-#Periods, T-#Segments)

Loading from .csv files in a the folder ../ClustForOpt/data/{application}/{region}/TS Timestamp-column has to be called Timestamp Other columns have to be called with the location/node name for application:

  • DAM: Day Ahead Market
  • CEP: Capacity Expansion Problem

and regions:

  • "GER_1": Germany 1 node
  • "GER_18": Germany 18 nodes
  • "CA_1": California 1 node
  • "CA_14": California 14 nodes
  • "TX_1": Texas 1 node
source

Example loading timeseries data

using ClustForOpt
state="GER_1"
# laod ts-input-data
ts_input_data, = load_timeseries_data("CEP", state; K=365, T=24)
using Plots
plot(ts_input_data.data["solar-germany"], legend=false, linestyle=:dot, xlabel="Time [h]", ylabel="Solar availability factor [%]")
savefig("load_timeseries_data.svg")
/home/travis/.julia/packages/GR/IVBgs/src/../deps/gr/bin/gksqt: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
connect: Connection refused
GKS: can't connect to GKS socket application
Did you start 'gksqt'?

GKS: Open failed in routine OPEN_WS
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS

Plot

Load CEP Data

load_cep_data() lodes the extra data for the CEP and can take the following regions:

load_cep_data(region::String)

Loading from .csv files in a the folder ../ClustForOpt/data/CEP/{region}/ Follow instructions for the CSV-Files:

  • nodes: nodes x region, infrastruct, capacity-of-different-tech... in MW_el
  • var_costs: tech x [USD for fossils: in USD/MWh_el, CO2 in kg-CO₂-eq./MWh_el] # Variable costs per year
  • fix_costs: tech x [USD in USD/MW_el, CO2 in kg-CO₂-eq./MW_el] # Fixed costs per year
  • cap_costs: tech x [USD in USD/MW_el, CO2 in kg-CO₂-eq./MW_el] # Entire (NOT annulized) Costs per Investment in technology
  • techs: tech x [categ,sector,lifetime in years,effic in %,fuel]
  • lines: lines x [node_start,node_end,reactance,resistance,power,voltage,circuits,length]

for regions:

  • "GER_1": Germany 1 node
  • "GER_18": Germany 18 nodes
  • "CA_1": California 1 node
  • "CA_14": California 14 nodes
  • "TX_1": Texas 1 node
source

Example loading CEP Data

using ClustForOpt
state="GER_1"
# laod ts-input-data
cep_data = load_cep_data(state)
cep_data.fix_costs

8 rows × 5 columns

techregionyearEURCO2
StringStringInt64Float64Int64
1pvGER201524500.00
2windGER201542500.00
3coalGER201552500.00
4oilGER201513100.00
5gasGER20157700.00
6bat_eGER20155810.00
7bat_pGER20150.00
8transGER20150.00