SciTools / iris-esmf-regrid

A collection of structured and unstructured ESMF regridding schemes for Iris.
https://iris-esmf-regrid.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

Add RefinedGridInfo class (for potential Hovmoller/zonal mean support) #165

Closed stephenworsley closed 2 years ago

stephenworsley commented 2 years ago

Adds the RefinedGridInfo class. This class is designed to better handle grids with particularly large cells. These grids would typically have large innacuracies due to the difference between lines of latitudes and great circles, and in some cases, e.g. full latitude/longitude bounds, these could not even be represented in ESMF. This class solves these problems by having their ESMF representations be a "refinement" of the original grid by either increasing the longitude resolution by a desired factor, or else by increasing the latitude resolution sufficiently to be representable. This becomes especially usefull in the case of deriving Hovmoller plots.

codecov[bot] commented 2 years ago

Codecov Report

Merging #165 (214deda) into main (2013e7b) will decrease coverage by 0.10%. The diff coverage is 98.43%.

:exclamation: Current head 214deda differs from pull request most recent head ce97590. Consider uploading reports for the commit ce97590 to get more accurate results

@@            Coverage Diff             @@
##             main     #165      +/-   ##
==========================================
- Coverage   99.51%   99.40%   -0.11%     
==========================================
  Files          27       28       +1     
  Lines        2469     2705     +236     
==========================================
+ Hits         2457     2689     +232     
- Misses         12       16       +4     
Impacted Files Coverage Δ
.../experimental/unstructured_regrid/test_MeshInfo.py 100.00% <ø> (ø)
esmf_regrid/_esmf_sdo.py 95.54% <92.98%> (-1.63%) :arrow_down:
esmf_regrid/esmf_regridder.py 95.38% <100.00%> (+0.30%) :arrow_up:
esmf_regrid/experimental/io.py 100.00% <100.00%> (ø)
esmf_regrid/experimental/unstructured_scheme.py 99.16% <100.00%> (+0.05%) :arrow_up:
...egrid/tests/unit/_esmf_sdo/test_RefinedGridInfo.py 100.00% <100.00%> (ø)
.../tests/unit/experimental/io/test_round_tripping.py 100.00% <100.00%> (ø)
...nstructured_scheme/test_GridToMeshESMFRegridder.py 100.00% <100.00%> (ø)
...nstructured_scheme/test_MeshToGridESMFRegridder.py 100.00% <100.00%> (ø)
...ntal/unstructured_scheme/test__cube_to_GridInfo.py 100.00% <100.00%> (ø)
... and 2 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

trexfeathers commented 2 years ago

Lint failure: see SciTools/iris#4668