I am working on precipitation data. I need to rearrange dimensions in a NetCDF file. The dimensions in my file are in (time, lat, lon)
order. I need them in (lat, lon, time)
order.
I tried the following:
ncpdq -a lat,lon,time infile.nc outfile.nc
now, I got order of dimension I wanted which is (lat, lon, time)
.
However, the lat
dimension becomes UNLIMITED
which is wrong. The time dimension should be the UNLIMITED
dimension. This is what I got:
dimensions:
lon = 720 ;
lat = UNLIMITED ; // (360 currently)
time = 1404 ;
What should I do to reorder the dimensions from (time, lat, lon)
to (lat, lon, time)
?