Skip to content

Conversation

willu47
Copy link
Member

@willu47 willu47 commented Jun 21, 2023

An inelegant/experimental implementation on the ReadStrategy class which returns an xarray.DataSet object of OSeMOSYS model data

Description

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))

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant