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_pres returns 0 if successful, else -1
pressure array of pressure levels (same units as ps)
hybm array of model hybrid levels (0.0 to 1.0) - calculated using ptop,rcoef and pref
Input:
ptop average pressure at the top (mb)
ps pressure at the surface (mb or pascals)
rcoef coefficient (1.0 to 2.0)
pref reference pressure in mb (normally = 800mb)
hyb array 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 utilities home page