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

Explain the data values in earth_mask grids #37

Closed
seisman opened this issue May 18, 2022 · 5 comments
Closed

Explain the data values in earth_mask grids #37

seisman opened this issue May 18, 2022 · 5 comments

Comments

@seisman
Copy link
Member

seisman commented May 18, 2022

https://www.generic-mapping-tools.org/remote-datasets/earth-masks.html

image

The documentation for earth-mask does not explain what the values mean in the earth-mask grids, although I can guess that 0 means ocean and 1 means land from the legend of the top figure.

I think we should:

  • Clearly explain the meaning of the values 0-4
  • Give the command that is used to generate the earth_mask grids (e.g., grdlandmask -N0/1/2/3/4)
@PaulWessel
Copy link
Member

It certainly can be improved. We have information about levels in coast and gshhg modules but there we talk about the levels of the lines. Here we are talking about the areas between the levels (or in the case of the ocean, the areas outside level 1 (shoreline). So a better description might be

  1. Ocean areas beyond the shoreline
  2. Land areas inside the shoreline
  3. Lakes inside the land area
  4. Islands in lakes in the land area
  5. Smaller lakes in islands that are found in lakes inside the land area

Not many of category 4 but there are at least one - not visible in this plot (neither are category 3 I think unless using full resolution).

I can work on this tomorrow unless you want to use this and put it in the right place. I think a link to the coast and/or gshhg documentation is probably also helpful here given the two Antarctica shorelines.

@PaulWessel
Copy link
Member

Hi @seisman, looking at this information, isn't it pretty clear anyway?

@joa-quim
Copy link
Member

I don't see why we are distributing masks that go beyond level 2 (actually I don't understand why we are even distributing mask grids at all that can be computed with a one-liner.)

@seisman
Copy link
Member Author

seisman commented May 19, 2022

Hi @seisman, looking at this information, isn't it pretty clear anyway?

Do you mean this sentence?

Given that GSHHG contains 5 levels (ocean, land, lake, island-in-lake, pond-in-island-in-lake) corresponding to levels 0-4, the mask grids were computed to reflect those 5 levels.

When I read this sentence, I know that there are 5 levels 0-4, but I'm still unsure if grid value=0 means level 0. So I feel a description you posted in #37 (comment) is better.

@PaulWessel
Copy link
Member

I don't see why we are distributing masks that go beyond level 2 (actually I don't understand why we are even distributing mask grids at all that can be computed with a one-liner.)

Please try making a global GSHHG mask at full resolution and watch the clock...

@seisman seisman closed this as completed May 19, 2022
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

3 participants