Wrapper for wetbulbcalc. Located in wrf_rip_phys_routines.f90.
(p, tk, qv, psafile=psafilepath(), outview=None)
| 487 | @cast_type(arg_idxs=(0, 1, 2)) |
| 488 | @extract_and_transpose() |
| 489 | def _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)) |
no test coverage detected