Pure arithmetic on the grid definition – no raster read. The cell-id COGs are
lookup IMAGES whose band name and frame vary by grid, so resolving a click by
reading one is both slower and a source of bugs: selecting the band by name
fails (usa05 calls it r_cellid, global05 depth_mean), and shifting a click
to 0-360 lands outside a raster stored in -180..180. The grid registry already
defines the mapping exactly.
Arguments
- lon, lat
coordinates in degrees,
lonin -180..180- grid
grid spec from
grid_spec_for()