- add merge functions in .pr accessors for Dataset and DataArray
- Re-release of version 0.9.0 due to error in the release procedure.
- Drop python 3.7 support and add python 3.10 support following NEP 29.
- Change behaviour of gas basket aggregation functions to be the same as other aggregation functions. Now, ds.pr.gas_basket_contents_sum() and ds.pr.fill_na_gas_basket_from_contents() work like ds.pr.sum(). Both now have a skipna argument, and operate as if skipna=True by default. Note that this is a breaking change, by default NaNs are now treated as zero values when aggregating gas baskets!
- The latest (not-yet-released) version of xarray contains a rework of indexing and some small changes to our I/O functions are necessary to support both old and new xarray.
- make dropna in nir_convert_df_to_long explicit
- make nir_add_unit_information more flexible
- Make input format more flexible for convert_ipcc_code_primap_to_primap2
- several bug fixes in data reading
- in data reading we now work on a copy of the input data frame to leave it unchanged
- Require openscm-units >= 0.3 to ensure that refrigerants and AR5GWPCCF are available.
- Make primap2 compatible with pint-xarray v0.2.1.
- Add the publication_date property for datasets to record the date of publication, which is especially useful to record the publication date for datasets which are published continuously.
- change to stable sphinx-autosummary-accessors version.
- pin sphinx version to repair RTD latex builds until the upstream bug is fixed.
- Add stringly typed data variables to the PRIMAP specification.
- Update ensure_valid for the updated specification.
- Enhance interchange format documentation.
- Improve
venv
handling in the Makefile. - Split wide csv reading function into a conversion function and a wrapper
- Add function to convert long format dataframe to interchange format
- Add functions to help reading of different national GHG inventories
- Add functionality to fill columns using information from other columns to csv reading and dataframe conversion functions
- Add additional coordinates to interchange format and data reading functions
- Pin ruamel.yaml to version 0.17.4 until crdoconnor/strictyaml#145 is solved.
- use sum() instead of np.sum() with generator to avoid deprecation warning
- Write changelog entries for unreleased changes into individual files in the
changelog_unreleased
directory to avoid merge conflicts. - Bump dependency on
pint-xarray
to 0.2 and fix test regressions introduced by release 0.2 of pint-xarray.
- Add read and write functionality for interchange format
- Add csv reading capabilities in pm2io module for wide and long (tidy) CSV files.
- Add
da.pr.coverage()
andds.pr.coverage()
functions to summarize data coverage. - Add aggregation functions
set
andcount
which use aliasing and can reduce to a given set of dimensions, including the entity. - Update python packaging to use declarative style and modern setuptools.
- Support and test python 3.9 and windows.
- Add dataset attr for storing the terminology used for entities (and thus variable names).
- Add the
da.pr.set()
andds.pr.set()
functions for overwriting / infilling / extending data. - Allow for more than one source in a single Dataset / DataArray.
- Support xarray 0.17, and therefore drop support for Python 3.6.
- Re-release 0.3.0 to trigger zenodo.
- Add functions for downscaling and aggregation of gas baskets and categorical baskets.
- Add functions, docs, and tests for basic GWP handling.
- Add Makefile target to generate patched stub files for xarray containing the primap2 API.
- Add development documentation detailing the structure of the repository and the tools used to development of PRIMAP2.
- Add selection and indexing which understands dimension names like
area
in addition to the full dimension key including the category set likearea (ISO3)
. Works withds.pr[key]
andds.pr.loc[selection]
as well asda.pr.loc[selection]
. - Add usage documentation for all currently included functionality.
- Access metadata easily via properties like
ds.pr.references
.
- Add documentation.
- Add tests.
- Add continuous integration using github actions.
- Add functions for storing to and loading from netcdf.
- Add description of the data format.
- Add function which ensures that a dataset is in this data format.
- Provide all functions using a pint extension accessor.
- First development release.