cell_area: Calculate the area of grid cells.

Area of grid cells is given in square meters.


join (boolean) – Set to False if you only want the cell areas to be in the output. join=True adds the areas as a variable to the dataset. Defaults to True.


If you wanted to add the cell_areas as a new variable in a dataset, you would do the following:

>>> ds.cell_area()

If you wanted to replace a dataset with the cell areas of that dataset, you would do the following:

>>> ds.cell_area(join = False)