Handle X and Y interpolation.

https://code.usgs.gov/ghsc/nshmp/nshmp-utils-ts/-/merge_requests/299