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

Function is_multi_time_req

src/wrf/util.py:104–119  ·  view source on GitHub ↗

Return True if the requested time index is for :data:`wrf.ALL_TIMES` or :obj:`None`. Args: timeidx (:obj:`int`, :data:`wrf.ALL_TIMES`, or :obj:`None`): The requested time index. Returns: :obj:`bool`: True if the time index is :data:`wrf.ALL_TIMES` or

(timeidx)

Source from the content-addressed store, hash-verified

102
103
104def is_multi_time_req(timeidx):
105 """Return True if the requested time index is for :data:`wrf.ALL_TIMES` or
106 :obj:`None`.
107
108 Args:
109
110 timeidx (:obj:`int`, :data:`wrf.ALL_TIMES`, or :obj:`None`): The
111 requested time index.
112
113 Returns:
114
115 :obj:`bool`: True if the time index is :data:`wrf.ALL_TIMES` or
116 :obj:`None`, otherwise False.
117
118 """
119 return timeidx is None
120
121
122def is_multi_file(wrfin):

Callers 5

_build_data_arrayFunction · 0.85
_cat_filesFunction · 0.85
_join_filesFunction · 0.85
_extract_varFunction · 0.85
extract_timesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected