regenerate a ctl file

Heiner Körnich heiner at MISU.SU.SE
Fri Jan 26 07:13:19 EST 2007


Hi,

I can only suggest that you look at the size of the binary file. The
number of bytes helps you to calculate the resolution, since it is
4*number_levels*number_latitudes*number_longitudes*number_variables.
Here you have to pay attention, if you have variables which are defined
only on one level and others on several levels.
Once you have the right lat*lon grid, you can at least plot data and
check what kind of variable it should be.

You can use a simple ctl file with the right lat-lon-grid:

DSET bla.grads
TITLE none
UNDEF -9.99e33
XDEF 50 LINEAR 0.0  7.20
YDEF 40 LINEAR -87.750   4.500
ZDEF 1 LINEAR 1 1
TDEF  1000 LINEAR JAN1997 00DY02HR00MN
VARS 1
test    1 0 test
ENDVARS

good luck,
Heiner

Abdoulaye SARR wrote:
> Dear grads users,
>
> Maybe a simple problem for the grads experts?
> Due to a power failure I have lost a ctl file of model output but
> hopefully had save the .dat file in an external disk. Now my question
> is how to regenerate the ctl file to read the binary file? I did
> various simulation at different resolutions
> and don't kow exactly which one it is?
> Maybe someone can suggest a solution.
>
> Thanks
>
> Abdoulaye
>
> ----------------------------------------------------------------
> Universite Cheikh Anta DIOP - DAKAR

--
Heiner Körnich
Dept. of Meteorology            Tel:  +46 8 164333
Stockholms University, SE-106 91 Stockholm, Sweden
Email: heiner at misu.su.se   www.misu.su.se/~heiner/



More information about the gradsusr mailing list