ratt-ru / QuartiCal

CubiCal, but with greater power.
MIT License
7 stars 4 forks source link

Use nearest-neighbour interpolation in regions where extrapolation is required. #285

Closed JSKenyon closed 11 months ago

JSKenyon commented 11 months ago

Fixes #251. The issue stems from the fact that users may interpolate to points far outside the domain of the existing solutions. Linear extrapolation is really bad in this context so we now use a hybrid approach - linear interpolation in the domain and nearest neighbour interpolation/extrapolation outside the domain. This should be approximately safe.

A few more experiments are required to validate the new behaviour in the presence of heavily flagged data.