cube_cell_area() derives rectangular cell bounds from explicit metadata or,
for axes with at least two coordinates, from centre midpoints. Areas are
computed geodesically with the sf s2 engine. No scientific cube values are
read.
Usage
cube_cell_area(x, unit = c("m2", "km2"))Arguments
- x
An
ocean_cube()with one-dimensional longitude and latitude axes.- unit
Output unit, either square metres (
"m2") or square kilometres ("km2").