xarray doesn't like MET output files #1246
Labels
MET: Library Code
priority: high
High Priority
requestor: Community
General Community
type: task
An actionable item of work
Milestone
I'm working through the MET tutorial and I just wanted to point out that Python's xarray package (used to read NetCDF files) does not liking MET's NetCDF output.
For instance, when loading an output file with xarray in Python
results in this error...
The issue arises from
lat
andlon
being both dimension names and variable names.This is related to pydata/xarray#2233. It sounds like the xarray developers are addressing this.
A simple workaround is to drop the
lat
andlon
variable when loading the data, but that sacrifices the grid data.I'm not sure if this issue has been brought up to the MET developers before, but given xarray's widespread use in the python community, I wanted to suggest MET change the output variable names to be
latitude
andlongitude
instead oflat
andlon
, or change thelat
andlon
dimension name tox
andy
.The text was updated successfully, but these errors were encountered: