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

Function _rh

src/wrf/extension.py:303–318  ·  view source on GitHub ↗

Wrapper for dcomputerh. Located in wrf_user.f90.

(qv, q, t, outview=None)

Source from the content-addressed store, hash-verified

301@cast_type(arg_idxs=(0, 1, 2))
302@extract_and_transpose()
303def _rh(qv, q, t, outview=None):
304 """Wrapper for dcomputerh.
305
306 Located in wrf_user.f90.
307
308 """
309 shape = qv.shape
310 if outview is None:
311 outview = np.empty_like(qv)
312 result = dcomputerh(qv.ravel(order="A"),
313 q.ravel(order="A"),
314 t.ravel(order="A"),
315 outview.ravel(order="A"))
316 result = np.reshape(result, shape, order="F")
317
318 return result
319
320
321# Note: combining the -3 and -2 dimensions from u, then the -1 dimension

Callers 4

get_rhFunction · 0.85
get_rh_2mFunction · 0.85
rhFunction · 0.85
get_cloudfracFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected