nctoolkit.DataSet.cor_time¶
- DataSet.cor_time(self, var1=None, var2=None)¶
Calculate the correlation correct in time between two variables The correlation is calculated for each grid cell, ignoring missing values.
- Parameters
var1 (str) – The first variable
var2 (str) – The second variable
Examples
If you wanted to calculate the temporal correlation coefficient between variables x and y in a dataset, you would do this:
>>> ds.cor_space("x", "y")
The correlation coefficient will be calculated for each grid cell. This method will indicate how temporally correlated variables are in different spatial regions.