RMNLIB

(HYBRID_TO_PRES)

FSTD



INTEGER FUNCTION HYBRID_TO_PRES( pressure,hybm,ptop,ps,NI,NJ,rcoef,pref,hyb,NK)
integer NI,NJ,NK real pressure(NI*NJ,NK),ptop,ps(NI*NJ),rcoef,pref,hyb(NK),hybm(NK)
DESCRIPTION To derive pressure fields and true hybrid levels (levels used by the model) given a set of user-defined hybrid levels and the corresponding hybrid reference parameters ptop,rcoef,pref
Authors: Vivian Lee/Michel Valin - February 2002
ARGUMENTS

Output:
hybrid_to_presreturns 0 if successful, else -1
pressurearray of pressure levels (same units as ps)
hybmarray of model hybrid levels (0.0 to 1.0) - calculated using ptop,rcoef and pref
Input:
ptopaverage pressure at the top (mb)
pspressure at the surface (mb or pascals)
rcoefcoefficient (1.0 to 2.0)
prefreference pressure in mb (normally = 800mb)
hybarray of user-defined hybrid levels (0.0 to 1.0)
(Must list the levels in increasing order, starting at 0.0 and ending at 1.0)

SEE ALSO

hybref_to_ig, ig_to_hybref, read_decode_hyb, write_encode_hyb


Return to RPN home page