Commit d9f091f
Area correction for when an edge is the line of constant latitude (#1120)
* o First draft area correction
* o Add test and notebook to showcase area correction
* o Add more to notebook, mathematical formulation of correction and plot of original triangle
* o fix notebook
* Update uxarray/grid/area.py
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
* Update uxarray/grid/area.py
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
* Update uxarray/grid/area.py
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
* Update uxarray/grid/area.py
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
* o Cleanup notebook
* o Fix spaces
* Use $ for formula in notebook, mathjax seems to be configured correctly
* Attempted fix for notebook error
* notebook fix
* Changed markdown style of notebook
* Update area_calc.ipynb
* Update area_calc.ipynb
* o Remove bad file
* o checked in files my mistake
* o Remove unnecessary files
* o Complete TODO fix area correct sign based on edge lon and hemisphere. Add notebook example. TODO: Add test and corner cases
* o Fix tests
* o change grid coords to match new constants
* o Correct math formula display for doc page html, use latex in notebook
* Fix tests and notebook, add plot, cleanup code, getting ready to get out of draft mode
* Remove all o/p from notebook
* o Delete bad files
* o Use new mathjax
* o Fix tests and notebook, also use MathJAX3 and 2 is no longer supported
* Update uxarray/grid/area.py
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
* Update uxarray/grid/area.py
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
* Update uxarray/grid/area.py
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
* Update uxarray/grid/area.py
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
* Update uxarray/grid/area.py
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
* o Add docstring for correct_area
* o notebook clear output
* o Add sep for _fesom, removes warnings, remove one more comment
* o ruff fix
* o Use new simple formatting for doc math formulae
* o Add docstring for correct_area in grid.py
* o Add another example for face area calculation that motivates the usage of correction for zonal averaging calculation etc.
* o Remove hemisphere string and add check for skipping when lon_diff of edge is more than 180 deg
* o extra normalization and simplify calc
* o Use pythonic variable names for Gaussian and triangular quadrature points for area calc.
* o Use latitude_adjusted_area as a flag to indicate area correction requirement when users wants to specify that all edges in a mesh that have the same latitude endpoints are lines of constant latitude, Add TODO for const lattitude edge flag and spherical changes
---------
Co-authored-by: Philip Chmielowiec <67855069+philipc2@users.noreply.github.com>
Co-authored-by: Aaron Zedwick <aazedwick@gmail.com>
Co-authored-by: Aaron Zedwick <95507181+aaronzedwick@users.noreply.github.com>1 parent 90e25ef commit d9f091f
7 files changed
Lines changed: 2313 additions & 270 deletions
File tree
- docs/user-guide
- test
- uxarray
- grid
- io
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
270 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
276 | 278 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 279 | + | |
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
285 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | | - | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | | - | |
56 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
57 | 77 | | |
58 | | - | |
| 78 | + | |
| 79 | + | |
59 | 80 | | |
60 | 81 | | |
61 | 82 | | |
62 | | - | |
| 83 | + | |
63 | 84 | | |
64 | 85 | | |
65 | 86 | | |
66 | 87 | | |
67 | 88 | | |
68 | 89 | | |
69 | | - | |
| 90 | + | |
70 | 91 | | |
71 | 92 | | |
72 | 93 | | |
| |||
0 commit comments