wrf.extract_global_attrs¶
-
wrf.extract_global_attrs(wrfin, attrs)¶ Return the global attribute(s).
If the wrfin parameter is a sequence, then only the first element is used, so the entire sequence must have the same global attributes.
Parameters: - wrfin (
netCDF4.Dataset,Nio.NioFile, or an iterable) – Input WRF ARW NetCDF data as anetCDF4.Dataset,Nio.NioFileor an iterable sequence of the aforementioned types. - attrs (
str, sequence) – The attribute name or a sequence of attribute names.
Returns: A mapping of attribute_name to value.
Return type: - wrfin (