Multiple Files and segmentation error

Ernest Afiesimama ernafies at YAHOO.COM
Mon Apr 25 08:06:56 EDT 2005


Hi,
     I am running GrADS using a script on both Linux and Win32e. A
wrote a script as shown below.
'sdfopen c:/pcgrads/Data/Review/ATM1979-90AVG.CDF'
'set gxout contour'
'set lat 4 20'
'set lon -18 15'
'set x 1'
'set y 1'
'set z 1'
'set cthick 7'
'set ccolor 1'
'set cmark 0'
'set yaxis -4 4 1'
'set cstyle 2'
'set vrange -4 4'
'set xlopts 1 6 0.18'
'set ylopts 1 6 0.18'
'set ylint 1'
'set cint 1'
'set t 30 144 12'
'define sun=ave(aave(rt,lon=-18,lon=15,lat=4,lat=20),t=30,t=144,12)'
'set t 30 144 12'
'define moon=aave(rt,lon=-18,lon=15,lat=4,lat=20)'
'd moon-sun'
'define zero=(moon-sun)*0'
'set ccolor 1'
'd zero'
'sdfopen c:/pcgrads/Data/Review/CRUPREAFR1.CDF'
'set cthick 7'
'set ccolor 1'
'set cstyle 1'
'set cmark 0'
'set vrange –4 4'
'set t 25 144 12'
'define
sea=ave(aave(pre.2,lon=-18,lon=15,lat=4,lat=20),t=30,t=144,12)'
'set t 25 144 12'
'define land=aave(pre.2,lon=-18,lon=15,lat=4,lat=20)'
'd land-sea'

It comes out with something like this repeatedly
gxstart=0, gxstop=43, gystart=0, gystop=22
gzstart=0, gzstop=1, gtstart=0, gtstop=1

and it suddenly says “segmentation fault” for Linux platform
and “error” for Windows platform

However, if the individual files are run separately as separate
scripts, this same output (gxstart=0, gxstop=43, gystart=0,
gystop=22; gzstart=0, gzstop=1, gtstart=0, gtstop=1) comes out but I
get plot for each. But I want the two graphs to be on the same map.

Please what can I do?



************************************************
Ernest A. Afiesimama Ph.D; JP
Head, Numerical Weather and Climate Predictions
Nigerian Meteorological Agency
P.M.B. 1215,
Oshodi
Lagos State
Nigeria
Tel: +234 8023052057 (Mobile)
     +234 1 4800381 (Home)
************************************************

__________________________________________________
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