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 from any access function -accessCopernicus(),accessFVCOM(),accessHYCOM(),accessCCMP()oraccessERDDAP()
Value
named numeric vector c(x = , y = ) in the units of the object's CRS,
degrees for every access function here. NA in a direction with only one
distinct coordinate, and meaningless on an unstructured FVCOM mesh, which
has no regular spacing to report.
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.