hypertidy / ncmeta

Tidy NetCDF metadata
https://hypertidy.github.io/ncmeta/
11 stars 5 forks source link

order of vars as seen via grid is wrong #10

Closed mdsumner closed 5 years ago

mdsumner commented 5 years ago

Should be sst, ice, err, anom as per meta$variable

 meta$grid
# A tibble: 8 x 2
  variable grid       
  <chr>    <chr>      
1 anom     D3,D2,D1,D0
2 err      D3,D2,D1,D0
3 ice      D3,D2,D1,D0
4 sst      D3,D2,D1,D0
5 time     D0         
6 zlev     D1         
7 lat      D2         
8 lon      D3         

time, zlev, lat, lon is correct

Strictly, it should be using variable rather than grid to get this native order, but might as well fix it

mdsumner commented 5 years ago

Fixed in https://github.com/hypertidy/ncmeta/commit/da810855ec8baa4c68e7eb2cca5c23da9afc85b9