You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FVCOM model data has a quirk where the siglay and siglev coordinate names match the siglay and siglev dimensions (See pydata/xarray#2233). XArray can now handle this but kerchunk wrongly assumes that if a variable matches the name of a dimension then it must have a single dimension matching its name.
We can also note that the zarr chunk sizes are accurate if we calculate the number of datapoints from the number of bytes, so its simply kerchunk assuming the coordinate matches the dimension.
PR to follow
The text was updated successfully, but these errors were encountered:
FVCOM model data has a quirk where the
siglay
andsiglev
coordinate names match thesiglay
andsiglev
dimensions (See pydata/xarray#2233). XArray can now handle this but kerchunk wrongly assumes that if a variable matches the name of a dimension then it must have a single dimension matching its name.Here is an example FVCOM dataset: https://noaa-ofs-pds.s3.amazonaws.com/ngofs2.20231003/nos.ngofs2.fields.f042.20231003.t09z.nc
Loading this in gives us the following for
siglay
andsiglev
:Note that the
siglay
dimension is40
,siglev
is41
, but thesiglay
variable has a shape of(40, 303714)
andsiglev
has a shape of(41, 303714)
.When we process this dataset with kerchunk the result is that the dimensions match but the shapes have become
(40)
and(41)
respectively:We can also note that the zarr chunk sizes are accurate if we calculate the number of datapoints from the number of bytes, so its simply kerchunk assuming the coordinate matches the dimension.
PR to follow
The text was updated successfully, but these errors were encountered: