ASCII Data

msaavedra msaavedra at IMARPE.GOB.PE
Fri Dec 16 09:44:11 EST 2005


Dear all:

For ascii data, but the advisable thing it is to use the program GNUPLOT
here a example of script in GNUPLOT:

#Gnuplot script file for plotting data in file "data.plot"

  set terminal postscript color solid
  set output "out.ps"
  set size 1.0,1.0
  set grid
  set xdata time
  set timefmt "%Y:%m"
  set format x "%Y"
#  set format x "%Y/%m"
  set title "TSM estacion de Callao "
  set xlabel "callao (-12, -78)"
  set ylabel "Tmperatura ºC"
#  set key 0.01,100
#  set label "Yield Point" at 0.003,260
#  set arrow from 0.0028,250 to 0.003,280
#  set xr [0.0:0.022]
#  set yr [0:325]
#plot  "callao-00-05.txt" using 1:2  with lines
plot  "inputfile.txt" using 1:2   title "TSM"  "inputfile.txt" using 1:3 title "VAR2"
with lines
!display output.ps


bye


On Fri, 16 Dec 2005 05:48:05 -0800, Viviane Silva wrote
> Scott, you have to convert this data to binary format.
> Use fortran to do that. Just read the formated file,
> and write it as access="direct", form="unformatted",
> and rec="4" (if is only on point).
>
> Basically the program is going to read and write the
> data.
>
> I hope this helps.
>
> Viviane
>
> --- Scott Weaver <sweaver at ATMOS.UMD.EDU> wrote:
>
> > Grads Users,
> >
> > I have an ASCII file with 20 years worth of monthly
> > values of one
> > variable.  How would I deal with this in GrADS so
> > that I may plot, compare
> > with other time series data etc.
> >
> > Thak You,
> > Scott
> >
> >
> > ______________________________________________
> > Scott J. Weaver
> > PhD Candidate
> > Graduate Research Assistant
> > Department of Atmospheric and Oceanic Science
> > University of Maryland
> > College Park, MD 20742
> > 301-785-7201
> > sweaver at atmos.umd.edu
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> Mensaje no contiene virus y
> otros contenidos peligrosos.
> MailScanner agradece su apoyo.


INSTITUTO DEL MAR DEL PERU
Esquina General Gamarra y General Valle S/N Chucuito Callao.
Telf: (051)4202000.


Mensaje no contiene virus y
otros contenidos peligrosos.
MailScanner agradece su apoyo.



More information about the gradsusr mailing list