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

Function npbytes_to_str

src/wrf/util.py:2303–2315  ·  view source on GitHub ↗

Return a :obj:`bytes` object for the raw character array. Args: var (:class:`numpy.ndarray`): An array of characters. Returns: :obj:`bytes`: A string of bytes.

(var)

Source from the content-addressed store, hash-verified

2301
2302
2303def npbytes_to_str(var):
2304 """Return a :obj:`bytes` object for the raw character array.
2305
2306 Args:
2307
2308 var (:class:`numpy.ndarray`): An array of characters.
2309
2310 Returns:
2311
2312 :obj:`bytes`: A string of bytes.
2313
2314 """
2315 return (bytes(c).decode("utf-8") for c in var[:])
2316
2317
2318def _make_time(timearr):

Callers 7

_make_timeFunction · 0.85
_slpFunction · 0.85
_wetbulbFunction · 0.85
_capeFunction · 0.85
_lltoxyFunction · 0.85
_xytollFunction · 0.85
_vintrpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected