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
This is because julia is column major, and the storage order is row major. To be able to deal with this difference efficiently, the order of the dimensions is flipped. See also:
Dimension ordering
====================
The data is stored in the NetCDF file in the same order as they are stored in memory. As julia uses the Column-major ordering
(https://en.wikipedia.org/wiki/Row-_and_column-major_order) for arrays, the order of dimensions will appear reversed when the data is loaded in languages or
programs using Row-major ordering (https://en.wikipedia.org/wiki/Row-_and_column-major_order) such as C/C++, Python/NumPy or the tools ncdump/ncgen (NetCDF CDL
(https://web.archive.org/web/20220513091844/https://docs.unidata.ucar.edu/nug/current/_c_d_l.html)). NumPy can also use Column-major ordering but Row-major order
is the default. For the column-major interpretation of the dimensions (as in Julia), the CF Convention recommends
(https://web.archive.org/web/20220328110810/http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html#dimensions) the order "longitude"
(X), "latitude" (Y), "height or depth" (Z) and "date or time" (T) (if applicable). All other dimensions should, whenever possible, be placed to the right of the
spatiotemporal dimensions.
Hello, I have the following code:
and I obtain this:
Can anyone explain to me why the 2D variables are stored transposed wrt the shape defined in input?
Thx.
The text was updated successfully, but these errors were encountered: