PDEF, W3FB05 and running indexes

Victor Homar victor.homar at UIB.ES
Wed Jan 11 13:46:52 EST 2006


Hi all,

I'm trying to read a Grads binary file.dat (corresponding .ctl posted at the
end) within a fortran program.
Since it is a preprojected dataset, I'm using the w3lib libraries to find
out the lat and lon coordinates of each of the 55x55 gridpoints. In
particular, I'm using the fortran subroutine
W3FB05(XI,XJ,XMESHL,ORIENT,ALAT,ALONG)

I've tried several ranges for XI and XJ and various ORIENT parameters but
I'm still doubting about them.

What arguments should I use in W3FB05, provided the PDEF parameters below?

Should XI (XJ) run from -64.596817(186.518219) increasing 1, up to 55 points?

What ORIENT argument should I use? 10 does not seem to work.

Thanks in advance for your help,

Víctor

* file.ctl :
DSET ^file.dat
TITLE "MyRun"
UNDEF -999.
OPTIONS LITTLE_ENDIAN
PDEF 55 55 NPS 64.596817 186.518219 10.000000 34.076699
XDEF 100 LINEAR -15.806506 0.230760
YDEF 100 LINEAR 31.317379 0.174470
ZDEF 4 LEVELS 950  850  700  500
TDEF 25 LINEAR 00Z29dec2005 3hr
VARS 13
TS          0 99 Surface   Air Temperature
US          0 33 Surface   U Wind Component
VS          0 34 Surface   V Wind Component
PSLV        0 99 Surface   Altimeter Setting
PLU         0 99 Surface   Total Precipitation
T           4 99 950 mb   Temperature
U           4 33 950 mb   U Wind Component
V           4 34 950 mb   V Wind Component
Z           4 99 950 mb   Geopotential Height
mix         4 99 950 mb   H2O Vapor Mixing Ratio
td2m        0 99 2 m       Dew Point Temperature
t2m         0 99 2 m       Temperature
u10m        0 33 10 m      Wind Speed
ENDVARS



More information about the gradsusr mailing list