parse_cf
does not work when multiple grid mappings are present
#965
Labels
parse_cf
does not work when multiple grid mappings are present
#965
This bug was mentioned on gitter when talking to @dopplershift. I am beginning more in-depth designing of the geoxarray library which will likely borrow a lot from metpy's work with CF Dataset/DataArray objects. One concern I had was handling NetCDF files with multiple
grid_mapping
variables. It turns out this is not possible whenparse_cf
is used without arguments in one of these cases. See also geoxarray/geoxarray#2Here is an example:
This produces:
This is happening because each DataArray inside the Dataset is being parsed separately and each one gets a
crs
coordinate added. When xarray gets to the point that it merges the DataArray objects together in a Dataset it can't handle merging thecrs
coordinates with different values.The text was updated successfully, but these errors were encountered: