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
cfvariablehas 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
1returns the first position and the key2the second position. Otherwise, the key1returns thereferenceposition and the key2is a no-op that returns the original data.To return the difference between keys
2and1, pass'anomaly'. To return the ratio of key2over key1, pass'ratio'.The associated
cfvariablenames are modified by addinglong_prefixandlong_suffixattributes to the resultingDataArray.