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

try to guess if domain isin dataset #109

Open
larsbuntemeyer opened this issue Feb 19, 2023 · 0 comments
Open

try to guess if domain isin dataset #109

larsbuntemeyer opened this issue Feb 19, 2023 · 0 comments

Comments

@larsbuntemeyer
Copy link
Contributor

larsbuntemeyer commented Feb 19, 2023

E.g., to check if a relaxation zone is present, and crop if required.

mask domain

ds = cx.tutorial.open_dataset("remo_EUR-11_TEMP2_mon")
dm = cx.cordex_domain("EUR-11")
x_mask = ds.rlon.round(8).isin(dm.cf["X"])
y_mask = ds.rlat.round(8).isin(dm.cf["Y"])
masked = ds.where(x_mask & y_mask, drop=True)
masked
masked.cx.guess()
@larsbuntemeyer larsbuntemeyer added this to the v0.6.0 milestone Feb 19, 2023
@larsbuntemeyer larsbuntemeyer removed this from the v0.6.0 milestone Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant