[ncl-talk] Re-arranging .nc file Dimension
Dave Allured - NOAA Affiliate
dave.allured at noaa.gov
Tue Apr 16 12:53:14 MDT 2019
The easiest way is to use ncpdq, not NCL. Ncpdq is an external utility
program, part of NCO utilities.
http://nco.sourceforge.net/nco.html#ncpdq-netCDF-Permute-Dimensions-Quickly
For example:
ncpdq -a time,len,rlat,rlon infile.nc outfile.nc
--Dave
On Tue, Apr 16, 2019 at 10:45 AM Oluwaseun Ilori <wilseun at gmail.com> wrote:
> Hello:
> I have a .nc file with dimensions of a float type "float SPI (len,
> time, rlat, rlon)" and I want to change it to be of type "float SPI
> (time, len, rlat, rlon)". I mean
> float SPI (len, *time*, rlat, rlon) to float SPI (*time*, len, rlat,
> rlon).
> How will I do this and attached is the output of the "ncdump" of my nc
> file.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190416/e6bc722d/attachment.html>
More information about the ncl-talk
mailing list