the script

Daniel Fritz prodicalboxer at YAHOO.COM
Mon Oct 22 14:22:50 EDT 2007


Hello all,
   I wrote this script to run as a code.....
and I keep getting a syntax error.....could someone
tell me what should be in my filnam...
here is what I wrote
filnam='/home2/fritz/script/floyd.dat'

'draw map'

while (1)
res = read(filnam)
rc = sublin(res,1)

if (rc > 0)
* Check if there is a problem reading
if (rc = 2)
say 'EOF - Finished reading 'filnam
res = close(filnam)
break
else
say rc ' Error while reading 'filnam
res = close(filnam)
break
endif
endif

* No problems
* Step 1 - read in the position

datum = sublin(res,2)
dateline = subwrd(datum,1)
longitude = subwrd(datum,2)
latitude = subwrd(datum,3)

* Step 2 - convert lat/lon to page position
'd ugrd10m.1;vgrd10m.1;mag(ugrd10m.1,vgrd10m.1)'
x0 = subwrd(result,3)
y0 = subwrd(result,6)

* Step 3 - plot the position on the page
'draw mark 2 'x0' 'y0' 0.1'
endwhile
I tried to open this and run it in grads
ga-> open_Ydata.gs
ga-> set lon 250 280
LON set to 250 280
ga-> set lat 0 30
LAT set to 0 30
ga-> d ugrd10m.1;vgrd10m.1;mag(ugrd10m.1,vgrd10m.1)
ga-> run hurricanetrack_code
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
DRAW error: Syntax is DRAW MARK marktype x y size
EOF - Finished reading /home2/fritz/script/floyd.dat
ga->
this what I got...can anyone help me?
open_Ydata.gs is a script of ctl files
here is part of the filename floyd.dat
eosci5.ncat.edu{fritz}1007: cat floyd.dat
11A  19.10  -58.90 09/10/12Z   70   989 HURRICANE-1
 12  19.30  -59.20 09/10/15Z   70   989 HURRICANE-1
12A  19.90  -59.70 09/10/18Z   70   989 HURRICANE-1
 13  20.50  -60.00 09/10/21Z   70   975 HURRICANE-1
13A  20.80  -60.40 09/11/00Z   75   971 HURRICANE-1
 14  21.10  -60.80 09/11/03Z   80   971 HURRICANE-1
 15  21.70  -61.60 09/11/09Z   90   963 HURRICANE-2
 16  22.20  -62.40 09/11/15Z   95   962 HURRICANE-2
 17  22.70  -63.50 09/11/21Z   95   966 HURRICANE-2
 18  22.70  -64.50 09/12/03Z   95   967 HURRICANE-2
 19  22.80  -65.90 09/12/09Z   95   960 HURRICANE-2
 20  23.00  -66.60 09/12/15Z  105   955 HURRICANE-3
20A  23.20  -67.50 09/12/18Z  105   955 HURRICANE-3
 21  23.40  -68.20 09/12/21Z  110   940 HURRICANE-3
21A  23.50  -68.70 09/13/00Z  125   932 HURRICANE-4
 22  23.60  -69.30 09/13/03Z  125   931 HURRICANE-4
22A  23.60  -70.00 09/13/06Z  130   923 HURRICANE-4
 23  23.70  -70.60 09/13/09Z  135   922 HURRICANE-4
23A  23.90  -71.40 09/13/12Z  135   921 HURRICANE-4
 24  24.10  -72.10 09/13/15Z  135   921 HURRICANE-4
24A  24.20  -73.00 09/13/18Z  135   926 HURRICANE-4
 25  24.20  -73.70 09/13/21Z  135   923 HURRICANE-4
25A  24.40  -74.10 09/14/00Z  135   924 HURRICANE-4
 26  24.50  -74.70 09/14/03Z  135   924 HURRICANE-4
26A  24.90  -75.30 09/14/06Z  135   928 HURRICANE-4
 27  25.10  -75.90 09/14/09Z  135   927 HURRICANE-4
27A  25.40  -76.20 09/14/12Z  130   929 HURRICANE-4
 28  25.70  -76.80 09/14/15Z  125   932 HURRICANE-4
28A  26.00  -77.00 09/14/18Z  120   933 HURRICANE-4
 29  26.50  -77.40 09/14/21Z  120   929 HURRICANE-4
29A  27.10  -77.60 09/15/00Z  120   934 HURRICANE-4
 30  27.70  -77.90 09/15/03Z  120   933 HURRICANE-4
30A  28.20  -78.50 09/15/06Z  120   935 HURRICANE-4
 31  28.80  -78.80 09/15/09Z  120   938 HURRICANE-4
31A  29.30  -78.80 09/15/12Z  115   941 HURRICANE-4
 32  29.90  -79.00 09/15/15Z  110   943 HURRICANE-3
32A  30.30  -79.10 09/15/17Z  110   946 HURRICANE-3
32B  30.80  -79.10 09/15/19Z  105   947 HURRICANE-3
 33  31.30  -79.00 09/15/21Z  100   949 HURRICANE-3
33A  32.10  -78.70 09/15/23Z  100   949 HURRICANE-3
33B  32.40  -78.60 09/16/01Z  100   950 HURRICANE-3
 34  32.90  -78.30 09/16/03Z  100   952 HURRICANE-3
34A  33.30  -78.10 09/16/05Z   95   952 HURRICANE-2
34B  34.00  -77.90 09/16/07Z   95   955 HURRICANE-2
 35  34.50  -77.60 09/16/09Z   90   956 HURRICANE-2
35A  35.20  -77.10 09/16/11Z   85   960 HURRICANE-2
35B  36.00  -76.60 09/16/13Z   80   962 HURRICANE-1
 36  36.80  -76.00 09/16/15Z   70   967 HURRICANE-1
36A  37.80  -75.20 09/16/18Z   65   974
HURRICANE-1geosci5.ncat.edu{fritz}1008:
anyone with any suggestions???????







--- Kees van Vliet <kees at AEOLIS.NL> wrote:

> Hi,
>
> I had this problem with GRIB data a few years ago. I
> got a small
> program to perform a byteswap and this worked very
> good.
> attached is the program and a makefile to compile it
> with GCC.
> Good luck,
>
> Kees van Vliet
>
> On Oct 19, 2007, at 4:40 PM, Ioannis A. Vamvakas
> wrote:
>
> > Dear all,
> >
> > Has anybody confronted in the past the so-called
> NUXI problem? That
> > is,
> > working in a little_endian machine to generate
> big_endian GRIB files?
> >
> > I'd appreciate any help on how you dealt with the
> problem!
> >
> > Thanks,
> >
> > --
> > Ioannis A. Vamvakas
> > Hellenic Center for Marine Research
> > Institute of Oceanography
> > 46.7 Km. Athens-Sounio Ave.
> > GR-193 13,ANAVYSSOS,Greece
> > Tel.+30-22910-7-6399, Fax: +30-22910-7-6323
> > Cell Phone: +30-697-580-1696
> >
>
>
>
>
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



More information about the gradsusr mailing list