MCPcopy Create free account
hub / github.com/NCAR/wrf-python / _wetbulb

Function _wetbulb

src/wrf/extension.py:489–512  ·  view source on GitHub ↗

Wrapper for wetbulbcalc. Located in wrf_rip_phys_routines.f90.

(p, tk, qv,  psafile=psafilepath(), outview=None)

Source from the content-addressed store, hash-verified

487@cast_type(arg_idxs=(0, 1, 2))
488@extract_and_transpose()
489def _wetbulb(p, tk, qv, psafile=psafilepath(), outview=None):
490 """Wrapper for wetbulbcalc.
491
492 Located in wrf_rip_phys_routines.f90.
493
494 """
495 if outview is None:
496 outview = np.empty_like(p)
497
498 errstat = np.array(0)
499 errmsg = np.zeros(Constants.ERRLEN, "c")
500
501 result = wetbulbcalc(p,
502 tk,
503 qv,
504 outview,
505 psafile,
506 errstat,
507 errmsg)
508
509 if int(errstat) != 0:
510 raise DiagnosticError("".join(npbytes_to_str(errmsg)).strip())
511
512 return result
513
514
515@check_args(0, 3, (3, 3, 3, 2, 2))

Callers 2

get_twFunction · 0.85
wetbulbFunction · 0.85

Calls 3

psafilepathFunction · 0.85
DiagnosticErrorClass · 0.85
npbytes_to_strFunction · 0.85

Tested by

no test coverage detected