GitHub - xarray-contrib/xncml: Tools for manipulating NcML (NetCDF Markup Language) files with/for xarray

Tools for opening and manipulating NcML (NetCDF Markup Language) files with/for xarray.

These tools allow you to modify NcML by:

  • Adding or removing global attributes
  • Adding or removing variable attributes
  • Removing variables and dimensions

and read NcML files into xarray.Dataset objects:

import xncml
ds = xncml.open_ncml("large_ensemble.ncml")

See doc for more information.

Installation

Stable release

To install xncml, run this command in your terminal:

python -m pip install xncml

This is the preferred method to install xncml, as it will always install the most recent stable release.

If you don't have pip installed, this Python installation guide can guide you through the process.

From sources

The sources for xncml can be downloaded from the Github repo.

You can either clone the public repository:

git clone git@github.com:xarray-contrib/xncml/

Or download the tarball:

curl -OJL https://github.com/xarray-contrib/xncml/tarball/main

Once you have a copy of the source, you can install it with: