From 4577ef66dc32de5d9ed1552e14e69c4711dd57a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=2E=20Cofi=C3=B1o?= Date: Mon, 4 May 2026 18:10:02 +0200 Subject: [PATCH] Add Pandera xarray validation details to software.md Added section on Pandera xarray for schema validation in xarray datasets. --- software.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/software.md b/software.md index 42bdca5b..dfa619b4 100644 --- a/software.md +++ b/software.md @@ -111,6 +111,12 @@ The service returns subsets as CF compliant netCDF-3/4 files, in addition to oth [Xarray](http://xarray.pydata.org/) is a python package designed for working with labelled, multi-dimensional array data, built around the netCDF data model. It uses CF Conventions in several ways, such as encoding / decoding variables and interpreting metadata for visualization. +#### Pandera xarray - schema validation for xarray datasets + +[Pandera xarray](https://pandera.readthedocs.io/en/latest/xarray_guide/index.html) extends Pandera with support for validating xarray `Dataset`, `DataArray`, and `DataTree` objects. It can validate dimensions, variable names, data types, and selected metadata conventions, including some checks related to CF metadata such as `standard_name` and `units`. + +This makes it a useful schema validation tool for xarray-based workflows that want to enforce some CF-related expectations, even though it is not a full CF compliance checker. + ### `gridded` - A Python API for accessing / working with gridded model results on multiple grid types [gridded](https://github.com/NOAA-ORR-ERD/gridded) is a python package designed for working with @@ -145,4 +151,4 @@ Analysis results based on netCDF data can be shared and viewed across the web as ### Nansen Legacy template generator -This [template generator](https://www.nordatanet.no/aen/template-generator/config%3DCF-NetCDF) can be used to create spreadsheet templates that include column headers from the CF standard names. The templates include separate sheets for recording variable and global attributes, based on the CF and the Attribute Convention for Data Discovery (ACDD). \ No newline at end of file +This [template generator](https://www.nordatanet.no/aen/template-generator/config%3DCF-NetCDF) can be used to create spreadsheet templates that include column headers from the CF standard names. The templates include separate sheets for recording variable and global attributes, based on the CF and the Attribute Convention for Data Discovery (ACDD).