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

[Bug]: land sea mask incorrectly generated for non-regular lat/lon grid #1009

Closed
lee1043 opened this issue Dec 21, 2023 · 0 comments · Fixed by #1010
Closed

[Bug]: land sea mask incorrectly generated for non-regular lat/lon grid #1009

lee1043 opened this issue Dec 21, 2023 · 0 comments · Fixed by #1010
Assignees
Labels

Comments

@lee1043
Copy link
Contributor

lee1043 commented Dec 21, 2023

Reported by @acordonez

What happened?

Input data:
output3

Generated land sea mask:
output111

What did you expect to happen? Are there are possible answers you came across?

output2222

Minimal Complete Verifiable Example (MVCE)

f_nt_n = "/home/ordonez4/seaice/data/icecon_ssmi_nt_n_edited.nc"

obs = xc.open_dataset(f_nt_n)

if 'history' in obs.attrs:
    del obs.attrs['history']  # Just because it is too long on screen..!

obs["ice_con"] = obs["ice_con"] * 0.01
obs["area"] = obs["area"] * 1e-6
mask_pmp = create_land_sea_mask(obs)
mask_pmp.plot()

Relevant log output

No response

Anything else we need to know?

No response

Environment

pmp v3.1.2

@lee1043 lee1043 self-assigned this Dec 21, 2023
@lee1043 lee1043 added the bug label Dec 21, 2023
@lee1043 lee1043 linked a pull request Dec 21, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant