Commit cf18f52
Adds land-sea mask generation (#783)
* Refactors grid generation and updates generating bounds
* Fixes dtype in gaussian grid creation
* Initial land-sea mask implementation
* Fixes exception that occurs when landsea mask resource is missing
* Fixes copying mask as it's modified in place by _improve_mask
* Fixes returning DataArray from _pcmdi_land_sea_mask
* Renames accessor and masking methods
* Fixes broken test expecting dataarray
* Adds option to output mask in dataset
* Adds dispatcher options and updates documentation
* Fixes missing import for MaskAccessor
* Changes function names and updates docstrings
* Adds documentation section for module-level methods
* Adds ability to define the source mask to use in the PCMDI land-sea mask generation
* Fixes documentation function reference
* Refactor land-sea mask handling and documentation
- Updated pcmdi_land_sea_mask() docstring and disabled time decoding for navy_land.nc
- Replaced bundled navy_land.nc with pooch fetch-and-cache system
- Removed mask_get_resource_path() and its tests
- Added _data._get_pcmdi_mask_path() with corresponding tests
- Updated environment configs to require pooch >=1.8
- Refreshed related docstrings
* Moves land/sea mask from geomask to spatial accessor, exposes generate method
* Fixes generating mask for a grid
* Adds land/sea mask example
* Updates landsea mask notebook
* Re-run notebook to remove env error
* Address Copilot review comments
* Renames criteria to threshold and corrects documentation via copilot review
---------
Co-authored-by: tomvothecoder <tomvothecoder@gmail.com>1 parent b7b27aa commit cf18f52
File tree
15 files changed
+2565
-71
lines changed- conda-env
- docs
- _static/thumbnails
- examples
- tests
- xcdat
- regridder
15 files changed
+2565
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
42 | 53 | | |
43 | 54 | | |
44 | 55 | | |
| |||
123 | 134 | | |
124 | 135 | | |
125 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
126 | 140 | | |
127 | 141 | | |
128 | 142 | | |
| |||
0 commit comments