When creating a dummy NetCDF file with the following python code:
import numpy as np import xarray as xr xr.DataArray(np.zeros((700, 500))).to_netcdf('A.nc')
…the resulting image in
A.nc is displayed in portrait orientation in SNAP, as expected.
However, when adding named dimensions
'columns' without changing the shape :
xr.DataArray(np.zeros((700, 500)), dims=['rows', 'columns']).to_netcdf('B.nc')
…the image in
B.nc now appears in landscape orientation, which shows the dimension named ‘rows’ as columns and vice-versa.
So, it seems that SNAP is interpreting - incorrectly - the names of the dimensions.
It also seems that SNAP is interpreting the names ‘lat’ and ‘lon’ as well, but correctly.
Could there be a bug, or am I doing something wrong ?
I’m using SNAP 7.0 on windows.
Thanks for your help !