Closed BSchilperoort closed 1 year ago
By multiple target periods you mean "a target period consisting of multiple data points/intervals", right?
a target period consisting of multiple data points/intervals
Yes, exactly. I'll clarify this in the issue
Currently
rgdr
'smap_correlation
implementation will calculate the correlation coefficient and p-value between precursor data and target data. It will calculate this over theanchor_year
dim, for every dimension in the input data (e.g.latitude
,longitude
,i_interval
).However, it does not take into account the Calendar's
n_targets
, more specifically the case where multiple intervals are labelled as target. A wrapper function is required to handle this. In the case of multiple target intervals, the precursor data and field data for those intervals are flattened over thei_interval
dimension.The following image serves as a visualization for this concept: