Skip to content
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
66dc9ab
Refactors grid generation and updates generating bounds
jasonb5 Jul 25, 2025
b7de60e
Fixes dtype in gaussian grid creation
jasonb5 Jul 26, 2025
895b617
Initial land-sea mask implementation
jasonb5 Jul 28, 2025
9312414
Fixes exception that occurs when landsea mask resource is missing
jasonb5 Jul 28, 2025
a657628
Fixes copying mask as it's modified in place by _improve_mask
jasonb5 Jul 28, 2025
2e2a3c7
Fixes returning DataArray from _pcmdi_land_sea_mask
jasonb5 Jul 30, 2025
8c4025b
Renames accessor and masking methods
jasonb5 Jul 30, 2025
ee87e77
Fixes broken test expecting dataarray
jasonb5 Jul 30, 2025
38741d0
Adds option to output mask in dataset
jasonb5 Jul 30, 2025
63b9843
Adds dispatcher options and updates documentation
jasonb5 Jul 31, 2025
b833cbd
Fixes missing import for MaskAccessor
jasonb5 Jul 31, 2025
daffcba
Changes function names and updates docstrings
jasonb5 Aug 2, 2025
20c1a58
Adds documentation section for module-level methods
jasonb5 Aug 14, 2025
bbc39ad
Adds ability to define the source mask to use in the PCMDI land-sea m…
jasonb5 Aug 14, 2025
c0b4881
Fixes documentation function reference
jasonb5 Aug 14, 2025
801be86
Refactor land-sea mask handling and documentation
tomvothecoder Sep 17, 2025
a08548e
Moves land/sea mask from geomask to spatial accessor, exposes generat…
jasonb5 Sep 30, 2025
397ee15
Fixes generating mask for a grid
jasonb5 Oct 9, 2025
def3bff
Adds land/sea mask example
jasonb5 Oct 9, 2025
0034439
Updates landsea mask notebook
jasonb5 Oct 10, 2025
512c471
Re-run notebook to remove env error
tomvothecoder Oct 29, 2025
b13773d
Address Copilot review comments
tomvothecoder Oct 29, 2025
f1a9d5b
Renames criteria to threshold and corrects documentation via copilot …
jasonb5 Nov 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion conda-env/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ dependencies:
- netcdf4
- numpy >=2.0.0,<3.0.0
- pandas
- pooch >=1.8
- python-dateutil
- regionmask
- scipy
- sparse
- xarray >=2024.03.0
Expand All @@ -26,4 +28,3 @@ dependencies:
# ==================
- pytest
- pytest-cov
- pooch # Required for xarray tutorial data
3 changes: 2 additions & 1 deletion conda-env/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ dependencies:
- netcdf4
- numpy >=2.0.0,<3.0.0
- pandas
- pooch >=1.8
- python-dateutil
- regionmask
- scipy
- sparse
- xarray >=2024.03.0
Expand All @@ -34,7 +36,6 @@ dependencies:
- pandoc
- ipython # Required for nbsphinx syntax highlighting
- gsw-xarray # Required for vertical regridding example
- pooch # Required for xarray tutorial data
# Quality Assurance
# ==================
- types-python-dateutil
Expand Down
Binary file added docs/_static/thumbnails/spatial-landsea-mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ Below is a list of top-level API functions that are available in ``xcdat``.
create_zonal_grid
tutorial.open_dataset

Module-level API Functions
--------------------------

Below is a list of model-level API functions that are available in ``xcdat``.

.. autosummary::
:toctree: generated/

mask.pcmdi_land_sea_mask


Accessors
---------

Expand Down Expand Up @@ -123,6 +134,9 @@ Methods
Dataset.bounds.get_bounds
Dataset.bounds.add_missing_bounds
Dataset.spatial.average
Dataset.spatial.mask_land
Dataset.spatial.mask_sea
Dataset.spatial.generate_land_sea_mask
Dataset.temporal.average
Dataset.temporal.group_average
Dataset.temporal.climatology
Expand Down
Loading
Loading