lair.geo.gridcell_area#
- lair.geo.gridcell_area(grid, R=None)[source]#
Calculate the area of each grid cell in a grid.
Note
For lat-lon grids, xesmf.utils.grid_area is used to calculate the area, which requires the radius of the earth in kilometers. If the radius of the earth is not provided, it will be calculated based on the latitude.