message_ix_models.model.material.data_util.read_timeseries
- message_ix_models.model.material.data_util.read_timeseries(scenario: Scenario, material: str, ssp: str | None, filename: str) DataFrame[source]
Read ‘time-series’ data from a material-specific filename.
Read “timeseries” type data from a sector-specific input file to data frame and format as MESSAGE parameter data.
- Parameters:
scenario – Scenario used to get structural information like model regions and years.
material – Name of material folder (‘sector’) where filename is located.
ssp – If timeseries is available for different SSPs, the respective file is selected.
filename – Name of data file including
.csvor.xlsxsuffix.
- Returns:
DataFrame containing the timeseries data for MESSAGEix parameters
- Return type:
pd.DataFrame