I am trying to write a code that returns the correlation between two NC files. the data are in lat and lon shape. One is soil moisture and the other is emissions as below: