<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div></div><div>The example Fortran code should be stream type, so the 'options sequential' in ctl file could be the problem.</div><div>If it doesn't work, here is an example to write station data in my site.</div><div><a href="http://www.wishingwork.com/grads/control-file/write-station-data.html">http://www.wishingwork.com/grads/control-file/write-station-data.html</a></div><div><a href="http://www.wishingwork.com/grads/control-file/write-station-data.html"></a>I think the most common mistake could be:</div><div> 1. the time should keep the same value, which means the report time. </div><div> 2. the nlev should keep 1 as one layer surface data</div><div><br></div><div>John<br> </div><hr><a rel="nofollow" target="_blank"
href="http://www.facebook.com/pages/GrADS-Tutorial/195072930513663">GrADS Tutorial on Facebook</a><div><span><a target="_blank" href="http://www.wishingwork.com/grads/">http://www.wishingwork.com/grads/</a></span></div><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Filipa Varino <filipavarino@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> gradsusr@gradsusr.org<br><b><span style="font-weight: bold;">Sent:</span></b> Mon, March 28, 2011 11:46:37 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [gradsusr] station data<br></font><br>
<font style="font-family:courier new, monospace;" size="2">Hi, <br><br>I'm new grads user and i'm having problems with station data. <br><br>i've created a .txt data with year month day station name and data value(precipitation) for 16 stations during 123 days <br>
1876 10 1 PPP 41.2 -8.6 0<br> 1876 10 1 GGG 40.5 -7.2 0.4<br> 1876 10 1 CMM 39.0 -7.0 0<br> 1876 10 1 EEE 38.6 -7.9 0<br> 1876 10 1 LLL 37.1 -8.6 0<br> 1876 10 1 AHH 38.7 -27.2 17.6<br>
1876 10 1 PDD 37.8 -25.7 19.3<br> 1876 10 1 FFF 32.6 -16.9 1.6<br> 1876 10 1 LLL 38.7 -9.1 0<br> 1876 10 1 CCC 36.5 -6.3 0<br> 1876 10 1 BBB 38.9 -7.0 0<br> ...<br>i've used the fortran code from here </font>
<font style="font-family:courier new, monospace;" size="2"><span><a target="_blank" href="http://www.iges.org/grads/gadoc/aboutstationdata.html">http://www.iges.org/grads/gadoc/aboutstationdata.html</a> addapted for my .txt file</span><br>
<br>and created the .ctl file <br>DSET C:\DISASTER\20CRen\dez_1876\dados\estacoes \stat.dat<br>TITLE station data <br>DTYPE station<br>STNMAP C:\DISASTER\20CRen\dez_1876\dados\estacoes\stat.map<br>UNDEF -999. <br>
options sequential <br>TDEF 123 LINEAR 1OCT1876 1dy <br>VARS 1<br>prec 0 99 pprecipitation <br>ENDVARS<br><br><br><br>when i run stnmap -i stat.ctl in command line i have de error:<br><br>Processing time step 1<br>
Invalid sation hdr found in station binary file<br>possible causes: invalid level count in hdr<br> descriptor file mismatch<br>
file not station data<br> invalid relative time<br> invalid sequential format<br>levs = 256 flag 26312 time 3.5872e-43</font><br><br>Could someone help me please?!!<br>
<br><br><br>
</div></div><div style="position:fixed"></div>
</div><br>
</body></html>