[Thread Prev][Thread Next][Index]

Re: ASCII data plot



Hi Yogesh,

1.  Read the data in
more info in user's guide Ch2 Sec5. ASCII DATA


!create a dummy grid
define axis/x=1:"number of records":1 xax
define grid/x=xax goon

!read data
!if heading not included
file/column=3/var="year,mon,val"/grid=goon filename.txt

!if the heading "YEAR MONTH CO2" is included
file/skip=1/column=3/var="year,mon,co2"/grid=goon filename.txt



!def time axis
! DAYS1900() returns the number of days since 1900-01-01.
let tstep = DAYS1900(year,month,15)
define axis/T/T0=1-jan-1900/UNIT=days ttaxis=tstep[L=1:(number of
records)]
let dummy=t[GT=ttaxis]

!reshape the variable val from abstract I axis to the new T axis
let co2 = RESHAPE(val,dummy)





http://ferret.wrc.noaa.gov/Ferret/FAQ/axes_and_data/time_axis_from_variables.html

has further explanation.


Joe
------------------------------------------
Yogesh Kumar Tiwari wrote:

> Dear Ferret users,
>
> I have ACSII data like
>
> YEAR MONTH CO2
>
>   1979   1 340.0
>   1979   1 340.0
>   1979   1 340.0
>   1979   1 340.0
>   1979   1 340.0
>   1979   2 341.0
>   1979   2 341.0
>   1979   2 341.0
>   1979   3 341.7
>   1979   3 341.7
>   1979   3 341.7
>   1979   3 341.7
>   1979   4 342.1
>   1979   4 342.1
>
>   ..............
> ................
> .................
>
> Can I plot this data in ferret, I don't want to include latitute,
> longitude with this data.
>
> Thanks for help,
>
> Cheers,
> Yogesh
> --
> ===========================================
> YOGESH KUMAR TIWARI
> Max-Planck Institute for Biogeochemistry,
> Postfach 10 01 64, D-07701 Jena, GERMANY
>
> Office: +49 3641 576376 (direct)
> Fax   : +49 3641 577300
> Home  : +49 3641 235748
> Mobile: +49 1736988789
> e-mail: yogesh.tiwari@bgc-jena.mpg.de
>                    __0
>                   -\<,
>                  (_)/(_)
> ===========================================



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement