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

Function is_mapping

src/wrf/util.py:168–183  ·  view source on GitHub ↗

Return True if the input file or sequence is a mapping type. Args: wrfin (:class:`netCDF4.Dataset`, :class:`Nio.NioFile`, or an \ iterable): WRF-ARW NetCDF data as a :class:`netCDF4.Dataset`, :class:`Nio.NioFile` or an iterable sequence of the aforem

(wrfin)

Source from the content-addressed store, hash-verified

166
167
168def is_mapping(wrfin):
169 """Return True if the input file or sequence is a mapping type.
170
171 Args:
172
173 wrfin (:class:`netCDF4.Dataset`, :class:`Nio.NioFile`, or an \
174 iterable): WRF-ARW NetCDF
175 data as a :class:`netCDF4.Dataset`, :class:`Nio.NioFile`
176 or an iterable sequence of the aforementioned types.
177
178 Returns:
179
180 :obj:`bool`: True if the input is a mapping type, False otherwise.
181
182 """
183 return isinstance(wrfin, Mapping)
184
185
186def _generator_copy(gen):

Callers 14

ll_to_xyFunction · 0.85
xy_to_llFunction · 0.85
_get_proj_paramsFunction · 0.85
func_wrapperFunction · 0.85
get_iterableFunction · 0.85
__call__Method · 0.85
is_moving_domainFunction · 0.85
extract_global_attrsFunction · 0.85
extract_dimFunction · 0.85
_get_coord_namesFunction · 0.85
combine_filesFunction · 0.85
extract_timesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected