# Regrid from an irregular grid by summing

**URL:** <https://forum.access-hive.org.au/t/regrid-from-an-irregular-grid-by-summing/968>\
**Category:** Technical\
**Tags:** python, xarray, regrid\
**Created:** [7 July 2023 03:32 UTC](https://forum.access-hive.org.au/t/regrid-from-an-irregular-grid-by-summing/968 "2023-07-07T03:32:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Aidan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aidan/32/42_2.png) [@Aidan](https://forum.access-hive.org.au/u/Aidan)\
**Post date:** [7 July 2023 05:41 UTC](https://forum.access-hive.org.au/t/regrid-from-an-irregular-grid-by-summing/968/4 "2023-07-07T05:41:31Z")

</div>

> [@dougrichardson](#):
>
> ERA5/NCI does not seem to supply the lat/lon bounds, and I’m unsure how I could manually add my own bounds to the irregular lat/lon in `pop`.

In a different topic @dale.roberts provided a Jupyter notebook that utilised an Iris function [guess\_bounds](https://scitools-iris.readthedocs.io/en/latest/generated/api/iris.coords.html#iris.coords.Coord.guess_bounds) that might be useful in your case:

> [@Regridding reanalysis to n48 results in too cold climatology](https://forum.access-hive.org.au/t/regridding-reanalysis-to-n48-results-in-too-cold-climatology/877/4):
>
> Hi @pia I’ve had a chance to revisit this a bit today based on @Aidan’s comment. I’ve come up with [this notebook](https://notebooksharing.space/view/237d632b1d29dfdfce80b4f784b2b8f0050f23d9842c7955fe0f1c67351cfe17#displayOptions=) which seems to have had the desired effect on the means. The hires and lowres means now match, and they’ve increased to a more reasonable 13-17 degrees C now that the polar grid cells are weighted lower. I acknowledge I’ve probably done this in the least practical way possible, but I’m hoping Cunningham’s Law prevails here and someone else has a better answer.

According to the [ESMF docs](https://earthsystemmodeling.org/regrid/)

> - First-order conservative: Preserves the integral of the source field across the regridding. For this method, weight calculation is based on the ratio of source cell area overlapped with the corresponding destination cell area. If the user areas option (see below) is not used, then the areas used in this calculation are those calculated by ESMF and thus the ones for which the conservation holds. The user areas option allows the user to adjust the interpolation weights so that conservation is based on user-supplied areas.

Which _sounds_ like it should sum when regridding. Easy enough to check.

---

_[View the full topic](https://forum.access-hive.org.au/t/regrid-from-an-irregular-grid-by-summing/968)._
