Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landsea mask generation: add PCMDI method as an option #1063

Merged
merged 7 commits into from
Feb 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
bug fix
  • Loading branch information
lee1043 committed Feb 28, 2024
commit fa89155272e6744278155a729f4b28c685ecd798
2 changes: 1 addition & 1 deletion pcmdi_metrics/utils/create_land_sea_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def create_land_sea_mask(

if as_boolean:
# Convert the 0/1 land-sea mask to a boolean mask
land_sea_mask = xr.where(land_sea_mask == 1, True, False)
land_sea_mask = land_sea_mask.astype(bool)

else:
raise ValueError("Unknown method '%s'. Please choose 'regionmask' or 'pcmdi'")
Expand Down