ClimoDatasetAccessor.get¶
- ClimoDatasetAccessor.get(*keys, quantify=None, standardize=False, units=None, normalize=False, runmean=None, add=None, subtract=None, multiply=None, divide=None, **kwargs)[source]¶
Call
__getitem__
, with optional post-processing steps and special behavior when variables are prefixed or suffixed with certain values.- Parameters
arg (var-spec or 2-tuple thereof) – The variable name. The following prefix and suffix shorthands are supported:
Prepend
abs_
to return the absolute value of the result.Append
_latitude
or_strength
to return vertically and zonally integrated energy and momentum budget maxima or latitudes of maxima.Append
_1
,_2
,_anomaly
, or_ratio
to make a selection or take an anomaly pair difference usingsel_pair
.
All names can be replaced with 2-tuples of the form (‘name’, kwargs) to pass keyword arguments positionally.
search_coords (bool, optional) – Whether to search for coordinates.
search_vars (bool, optional) – Whether to search for variables.
search_cf (bool, optional) – Whether to translate CF names.
search_registry (bool, optional) – Whether to translate registered names and aliases.
search_derivations (bool, optional) – Whether to perform registered derivations of coordinates or variables.
search_transformations (bool, optional) – Whether to perform registered transformations of coordinates or variables.
add_cell_measures (bool, optional) – Whether to add default cell measures to the coordinates.
quantify (bool, optional) – Whether to quantify the data with
quantify()
.units (unit-like, optional) – Convert the result to the input units with
to_units
.standardize (bool, optional) – Convert the result to the standard units with
to_standard_units
.normalize (bool, optional) – Whether to normalize the resulting data with
normalize
.runmean (bool, optional) – Apply a length-
runmean
running mean to the time dimension withrunmean
.add, subtract, multiply, divide (var-spec, optional) – Modify the resulting variable by adding, subtracting, multiplying, or dividing by this variable (passed to
get
).long_name, short_name, standard_name, long_prefix, long_suffix, short_prefix, short_suffix (str, optional) – Arguments to be passed to
CFVariableRegistry
when constructing thecfvariable
. Added as attributes to theDataArray
.**kwargs – Passed to
reduce
. Used to reduce dimensionality.
- Returns
data (xarray.DataArray) – The data.