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

Masking #10

Closed
znicholls opened this issue Oct 8, 2020 · 2 comments
Closed

Masking #10

znicholls opened this issue Oct 8, 2020 · 2 comments

Comments

@znicholls
Copy link

znicholls commented Oct 8, 2020

Another question (sorry for having so many @miturbide!). I wanted to check that I have correctly understood how your masking works.

maskland <- binaryGrid(mask, condition = "GT", threshold = 0.999, values = c(NA, 1))
suggests that any region with a surface land fraction greater than 0.999 is classified as land.
masksea <- binaryGrid(mask, condition = "LT", threshold = 0.001, values = c(NA, 1))
suggests that any region with a surface land fraction less than 0.001 is classified as sea.

Does this mean that any cell with surface land fraction greater than 0.001 and less than 0.999 (about 5% of cells looking at https://github.com/SantanderMetGroup/ATLAS/blob/master/reference-grids/land_sea_mask_1degree.nc4) is not included in either the sea or land calculation? In other words, only cells which are clearly one or the other are included in the masked averages?

@gutierjm
Copy link
Member

Yes. We compute land and ocean results from purely land or ocean griboxes and discard the mixed (coastal) ones.

@znicholls
Copy link
Author

thanks @gutierjm, do you have any thoughts on #11 ?

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

2 participants