[Thread Prev][Thread Next][Index]
Re: Conversion to ASCII
Hi Everyone,
Here's a reply to Rolando, which didn't get posted to the
whole group.
Hi Rolando,
Here is an example that should help
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=myregion.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=myregion.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
"Rolando S. Balotro" wrote:
> Hello guys
>
> How do you convert your netcdf data into ascii
> format say J, I, H(I,J)?
>
> Thanks in advance
>
> roland
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement