Closed FelixMau closed 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.
Thank you very much. I'll just put your input into a little checklist that will help me selforganising:
To map the time series to scalars, I suggest the following pattern:
refactor_timeseries
function.facade adapters
that include a time series will have an additional variable called profiles
, which is a list of column names for profiles.original name of the time series column
+ _
+ region
from the scalar.To use this approach, it is important to name time series columns using descriptive and singular names.
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:wind_profile.csv:
In order to achieve the desired result, the following steps should be implemented:
profile
column to facade Adapter (profile
might have a different name in some facades).profile
column. Usetimeindex_start
timeindex_end
andtimeindex_resolution
to create the correct timeindexdataadapter
class for a call ofinfer_metadata