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

Function _tk

src/wrf/extension.py:259–274  ·  view source on GitHub ↗

Wrapper for dcomputetk. Located in wrf_user.f90.

(pressure, theta, outview=None)

Source from the content-addressed store, hash-verified

257@cast_type(arg_idxs=(0, 1))
258@extract_and_transpose()
259def _tk(pressure, theta, outview=None):
260 """Wrapper for dcomputetk.
261
262 Located in wrf_user.f90.
263
264 """
265 # No need to transpose here since operations on 1D array
266 shape = pressure.shape
267 if outview is None:
268 outview = np.empty_like(pressure)
269 result = dcomputetk(outview.ravel(order="A"),
270 pressure.ravel(order="A"),
271 theta.ravel(order="A"))
272 result = np.reshape(result, shape, order="F")
273
274 return result
275
276
277@check_args(0, 2, (2, 2))

Callers 14

get_cttFunction · 0.85
get_tempFunction · 0.85
get_ethFunction · 0.85
get_tvFunction · 0.85
get_twFunction · 0.85
get_dbzFunction · 0.85
get_pwFunction · 0.85
get_slpFunction · 0.85
get_2dcapeFunction · 0.85
get_3dcapeFunction · 0.85
get_rhFunction · 0.85
tkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected