Dear All,<br><br>I want to draw a station map, firstly, I created a binary file, and wrote a "ctl" file as following:<br>###<br>dset st_data.dat<br>title station data<br>dtype station<br>stnmap station_data.map<br>
undef -999.9<br>tdef 1 linear 24May2008 7dy<br>vars 1<br>rain 0 99 rain data<br>endvars<br>###<br clear="all">but the picture's background is the whole world( there is a picture in attachment), and stations values displayed in a small area, when I added "xdef,yedf,zdef" like this:<br>
<br>###<br>...<br>undef -999.9<br>xdef 100 linear 100.0 0.05<br>ydef 100 linear 20.0 0.01<br>zdef 1 linear 1000.0<br>tdef 1 linear 24May2008 7dy<br>...<br>###<br>however, the background didn't change, Does "xdef" and "ydef"'s range set by default as following?<br>
###<br>ga-> open station.ctl <br>Scanning description file: station.ctl<br>Data file st_data.dat is open as file 1<br>LON set to 0 360 <br>LAT set to -90 90 <br>LEV set to 500 500 <br>Time values set: 2008:5:24:0 2008:5:24:0 <br>
ga-> q file<br>###<br><br>Secondly, I created a background grid file, and I used it to display station values, but I got a error when used command " oacres", the following steps is what I did.<br><br>###<br>ga-> open grid.ctl <br>
Scanning description file: grid.ctl<br>Data file grid.dat is open as file 1<br>LON set to 99 106.45 <br>LAT set to 19 20.49 <br>LEV set to 1000 1000 <br>Time values set: 2008:5:24:0 2008:5:24:0 <br>ga-> open station.ctl <br>
Scanning description file: station.ctl<br>Data file st_data.dat is open as file 2<br>ga-> define qq=oacres(r,rain.2)<br>Warning from OACRES: Less than two stations<br> Grid will be all missing values<br>Define memory allocation size = 90000 bytes<br>
ga-> d qq<br>Cannot contour grid - all undefined values <br>###<br>according to the error message:"<span style="color: rgb(255, 0, 0);">Warning from OACRES: Less than two stations</span>" , and it occupied so much memory , it seems there are some mistakes in the first step, am I right? if yes, could you tell me what should I do ? and is there any problem in my steps?<br>
<br>Thank you.<br><br>Sincerely.<br><br>-- <br><br>Shenghui Student<br><br>HuNan University . China<br>