[gradsusr] station data

Filipa Varino filipavarino at gmail.com
Tue Mar 29 10:48:51 EDT 2011


 The problem was in my fortrna code, i've addapted yours and it works
perfectly.
Thanks

Filipa

2011/3/28 Pou-Chang John Chen <wishingwork at yahoo.com.tw>

> The example Fortran code should be stream type, so the 'options sequential'
> in ctl file could be the problem.
> If it doesn't work, here is an example to write station data in my site.
> http://www.wishingwork.com/grads/control-file/write-station-data.html
> <http://www.wishingwork.com/grads/control-file/write-station-data.html>I
> think the most common mistake could be:
>  1. the time should keep the same value, which means the report time.
>  2. the nlev should keep 1 as one layer surface data
>
> John
>
> ------------------------------
> GrADS Tutorial on Facebook<http://www.facebook.com/pages/GrADS-Tutorial/195072930513663>
> http://www.wishingwork.com/grads/
>
>
> ------------------------------
> *From:* Filipa Varino <filipavarino at gmail.com>
> *To:* gradsusr at gradsusr.org
> *Sent:* Mon, March 28, 2011 11:46:37 PM
> *Subject:* [gradsusr] station data
>
> Hi,
>
> I'm new grads user and i'm having problems with station data.
>
> i've created a .txt data with year month day station name and data
> value(precipitation) for 16 stations during 123 days
>  1876  10   1  PPP   41.2  -8.6     0
>  1876  10   1  GGG   40.5  -7.2   0.4
>  1876  10   1  CMM   39.0  -7.0     0
>  1876  10   1  EEE   38.6  -7.9     0
>  1876  10   1  LLL   37.1  -8.6     0
>  1876  10   1  AHH   38.7 -27.2  17.6
>  1876  10   1  PDD   37.8 -25.7  19.3
>  1876  10   1  FFF   32.6 -16.9   1.6
>  1876  10   1  LLL   38.7  -9.1     0
>  1876  10   1  CCC   36.5  -6.3     0
>  1876  10   1  BBB   38.9  -7.0     0
>  ...
> i've used the fortran code from here
> http://www.iges.org/grads/gadoc/aboutstationdata.html  addapted for my
> .txt file
>
> and created the .ctl file
> DSET   C:\DISASTER\20CRen\dez_1876\dados\estacoes \stat.dat
> TITLE  station data
> DTYPE  station
> STNMAP C:\DISASTER\20CRen\dez_1876\dados\estacoes\stat.map
> UNDEF   -999.
> options sequential
> TDEF    123 LINEAR 1OCT1876 1dy
> VARS    1
> prec   0   99   pprecipitation
> ENDVARS
>
>
>
> when i run stnmap -i stat.ctl in command line i have de error:
>
> Processing time step 1
> Invalid sation hdr found in station binary file
> possible causes: invalid level count in hdr
>                          descriptor file mismatch
>                          file not station data
>                          invalid relative time
>                          invalid sequential format
> levs = 256 flag 26312 time 3.5872e-43
>
> Could someone help me please?!!
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110329/daa30f20/attachment-0003.html 


More information about the gradsusr mailing list