[Thread Prev][Thread Next][Index]

Re: Conversion to ASCII



On Mon, 28 Apr 2003, Rolando S. Balotro wrote:

> How do you convert your netcdf data into ascii
> format say J, I, H(I,J)?

Hi Rolando,
        Try this demo

use etopo20                                  ! this file comes with ferret
                                             ! it contains a 2-d variable
                                             ! Relief Of Surface of Earth
region/x=345:365/y=45:60                     ! identify a subregion
shade/lev=(-5000,5000,200)/pal=centered rose ! take a look at it

! then list latitude, longitude, depth
list/nohead/file=yxz.ascii/form=(2f8.3,f8.0)/ord=yx y[g=rose],x[g=rose],rose

! or if you really want the j,i indices
list/nohead/file=jiz.ascii/form=(3f8.0)/ord=yx j[g=rose],i[g=rose],rose

Notes:
        1) the argument /order=yx says to make y (latitude) vary fastest
        2) if listing j,i indices you still need a floating point format
           - ferret does not write out values in integer format
Good luck,
Mick




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement