sedos-project / data_adapter_oemof

This respository holds the data adapters to connect oemof with the OEDatamodel-concrete.
GNU Affero General Public License v3.0
0 stars 1 forks source link

Add Timeseries to datapackage #13

Closed FelixMau closed 1 year ago

FelixMau commented 1 year ago

For Timesensitive facades a column is required in tabular that is reffering to a column in another Dataset that contains the necessary Timeseries for that facade. This column is usually called profile. Example:

Projekt-Verzeichnis
├── datapackage.json
├── scalars
│ ├── wind.csv
│ └── ...
└── sequences
├── wind_profile.csv
└── ...
wind.csv: name type carrier tech capacity bus marginal_cost profile
wind-onshore volatile wind onshore 50 electricity 0 onshore-profile

wind_profile.csv:

timeindex onshore-profile
2011-01-01T00:00:00Z 0.147532
2011-01-01T01:00:00Z 0.184181
2011-01-01T02:00:00Z 0.223937

In order to achieve the desired result, the following steps should be implemented:

nailend commented 1 year ago

@FelixMau I didn't get that far, as I was working with the wrong example.

I added a first draft for the time series refactoring. This still needs to be put into a separate function. Matching of scalar rows and time series does not happen yet. But they can be matched via region and year parameter. Therefore, these parameters can be used as identifier in the profile column. Timer series for each period/year are saved separately into the dictionary parametrized_sequences for now. But I guess it's better to append them in one data frame.

FelixMau commented 1 year ago

Thank you very much. I'll just put your input into a little checklist that will help me selforganising:

FelixMau commented 1 year ago

To map the time series to scalars, I suggest the following pattern:

To use this approach, it is important to name time series columns using descriptive and singular names.