Open clairemerker opened 2 years ago
One solution would be to add the coordinates manually to the data array... Not very elegant...
da = da.assign_coords(clon_bnds=(["ncells", "vertices"],ds.clon_bnds.values))
Should we try to add this into https://github.com/C2SM/iconarray/pull/19 ?
Coordinates
clon_bnds
andclat_bnds
get lost in the xarray.DataArray stored in the dictionary output of select_data(). Those coordinates are needed if the xarray.DataArray should be converted to an xarray.Dataset and then used with psyplot. -> find a way to keep those coordinates.