Replies: 1 comment
-
That sounds reasonably to me! Just wanted to quickly mention cf-xarray here, which is an accessor to xarray that understands CF conventions reasonably well. That might come in very useful for such a tool! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Continuing a discussion from #685 (comment), I wanted to discuss the idea of creating a new PrePARE written entirely in Python using xarray.
The idea is to create a validation tool that is similar to PrePARE but relies more on the information provided in CMIP tables rather than hard-coded into the program. Rather than using the CMIP6-centric CV library built into CMOR, the new PrePARE should use Python-based tools that perform similar functions to CMOR. Python provides built-in tools for reading JSON files making ingestion of the CMIP tables easy. The list and dictionary structures of Python provide a much easier way of searching through these tables than what we have in our C code.
The xarray package provides the capability to open NetCDF files as labeled, multidimensional arrays similar to pandas DataFrames. xarray is also being used by the xCDAT team to create the successor to CDAT so the new PrePARE could be part of a software ecosystem centered around xarray within the LLNL climate program.
This tool should be flexible enough to perform validation of datasets for CMIP6, obs4MIPs, input4MIPS, CORDEX, and any other tables derived from cmip6-cmor-tables. It should also be able to handle the structure of the future mip-cmor-tables being prototyped.
These are my current thoughts on this. Other thoughts and suggestions are welcomed.
Beta Was this translation helpful? Give feedback.
All reactions