[Thread Prev][Thread Next][Index]

Re: netCDF reversed axis order

On Feb 12,  9:44am, Toni Caradona wrote:
> Subject: netCDF reversed axis order
> Hi Ferreters,
> what do you suggest to get the data from a netCDF
> file whith permuted axis ordering (e.g. X Z Y order
> into a standart oder (XYZ) in Ferret ?
> Many thanks for your answer.

Steve Hankin or one of the PMEL types probably have a much more elegant method,
but if you are in a rush there is always the brute force method. First dump the
file to ASCII using ncdump, then use an editor (or program) to order the data
nicely for easy input into ferret. Then, using ferret, create axes and grid,
read in data, then save the data in a NetCDF file. This will have the standard

Alternatively, if you know NetCDF, you could create a new NetCDF file with the
proper ordering and then write a C or ForTran program to read in the data from
the original NetCDF file, and then rewrite the data into the new NetCDF file.

Good Luck, Mark

 Mark Verschell                     NASA/Goddard Space Flight Center
 verschell@neptune.gsfc.nasa.gov    Code 970/Lab. for Hydrospheric Proc.
 301-286-2027  Fax: 301-286-1761    Greenbelt, MD 20771

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement