Open willu47 opened 1 year ago
An inelegant/experimental implementation on the ReadStrategy class which returns an xarray.DataSet object of OSeMOSYS model data
xarray.DataSet
xarray.DataSet provides a number of advantages for dealing with OSeMOSYS data, including advanced filtering.
Read in the data to an xarray.DataSet::
>>> reader = ReadCsv('config.yaml') >>> ds = reader.to_xarray('my_folder_csvs')
Then drop years::
>>> ds = ds.drop_sel(YEAR=range(2025, 2071))
Some of the issues around indexing that aren't satisfactory in pandas were mentioned in #98 (categorical indexes) and #165 (duplicate indexes).
None yet.
An inelegant/experimental implementation on the ReadStrategy class which returns an
xarray.DataSet
object of OSeMOSYS model dataDescription
xarray.DataSet provides a number of advantages for dealing with OSeMOSYS data, including advanced filtering.
Read in the data to an xarray.DataSet::
Then drop years::
Issue Ticket Number
Some of the issues around indexing that aren't satisfactory in pandas were mentioned in #98 (categorical indexes) and #165 (duplicate indexes).
Documentation
None yet.