After resample_to_grid() samples that the source instrument did
not cover end up as NA (rule = 1 in stats::approx).
This helper turns that NA pattern into a 0/1 mask.
Arguments
- M_resampled
Numeric matrix returned by
resample_to_grid()
After resample_to_grid() samples that the source instrument did
not cover end up as NA (rule = 1 in stats::approx).
This helper turns that NA pattern into a 0/1 mask.
Numeric matrix returned by resample_to_grid()