Help with code to grid and dispaly data

Ben-Jei Tsuang btsuang at YAHOO.COM
Wed Oct 31 20:38:19 EDT 2007


Please check my web site:
http://140.120.30.2/~bjtsuang/grads/

There is a utility xy2grads, which should be able to solve your problem

Ben



------------------------
5.           xy2grads: (http://140.120.30.2/~bjtsuang/grads/xy2grads)

-----------------------------------

xy2grads ver. 0.3

convert 'x y var1 var2 .. varns' data from ascii to grads binary format
(REAL*4) (FLOAT).

copyright by Ben-Jei Tsuang, C.L. Chen, 2001, 2003, 2005

Usage: xy2grads -i ifile <-o ofile -m method -n nvar -h headers -s -u xw xe
dx ys yn dy -x missing>

Note:  Input data must be number. Each data should be seperated by

          either space, comma, tab, carrage return, + or -

Options 1) -i ifile

        2) -o ofile (default: out.bin)

        3) -h headers: number of headerlines to skip (default=1)

        4) -m 0: last one win

              1: mean (default)

              2: sum (e.g. for adding emission sources)

        5) -n nvar (default=1)

        6) -s: swap x,y order from (x y var1 var2 .. ) to (y x var1 var2
...)

        7) -u xw: leftmost coord. (default=0)

              xe: rightmost coord. (default=360)

              dx: x incr. (default=1)

              ys: southmost coord. (default=-90)

              yn: northmost coord. (default=90)

              dy: y incr. (default=1)

        8) -x missing: missing value (default=-9.99e33) [bjtsuang at bs1
grads]$





----- Original Message -----
From: "Joseph Mutemi" <jnmutemi at YAHOO.CO.UK>
To: <GRADSUSR at LIST.CINECA.IT>
Sent: Thursday, November 01, 2007 3:33 AM
Subject: Re: Help with code to grid and dispaly data


> Dears,
> Help needed: I need a fortran (f77) code to grid data
> and dispaly in with grads.
>
> My text file looks like:
>
> Station 1: LON LAT pcpValue
> Station 2: LON LAT pcpvalue
> ...
> Station 80: LON LAT pcpvalue
>
> I will use which ever-griding/interpolation method the
> your code uses.I wish to interpolate the data to 50km
> grids.
>
> Include the how I will make the necessary ctl file.
>
> My Fortran is old f77 in a windows PC!, so I will have
> to compile andf execute the code/s one by one!.
>
> Thanks in advance.
>
> Joseph
>
>
>
>
>      ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
> it
> now.
> http://uk.answers.yahoo.com/



More information about the gradsusr mailing list