Read off the coordinates actually present, as the median spacing between neighbouring cell centres in each direction. The median rather than the mean so that a single missing row or column does not shift the answer.
Arguments
- env_dat
an
sfPOINT object fromaccessEnvDat()
Value
named numeric vector c(x = , y = ) in the units of the object's CRS,
degrees for accessEnvDat() output. NA in a direction with only one
distinct coordinate.
Details
Useful on its own for deciding which way to resample: compare two products and
the coarser one is the one to bring the other onto, or not, depending on which
trade-off you want. See upscale_grid() for what that choice costs.