ClimoAccessor.sel_pair¶
- ClimoAccessor.sel_pair(key)[source]¶
Return selection from a pseudo “parameter” axis. “Parameter” axes are identified as any non-scalar coordinate whose associated
cfvariable
has a “reference” value (e.g., a coordinate named'forcing'
with a “reference” value of0
).- Parameters
key (str, optional) – The pair key. If the parameter axis is length 2, the key
1
returns the first position and the key2
the second position. Otherwise, the key1
returns thereference
position and the key2
is a no-op that returns the original data.To return the difference between keys
2
and1
, pass'anomaly'
. To return the ratio of key2
over key1
, pass'ratio'
.The associated
cfvariable
names are modified by addinglong_prefix
andlong_suffix
attributes to the resultingDataArray
.