GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Remote datasets: Add "load_earth_dist" to load "GSHHG Earth distance to shoreline" dataset by yvonnefroehlich · Pull Request #3706 · GenericMappingTools/pygmt Conversation
|
|
/format |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for working on this function. I feel we should first update the upstream documentation to clarify the following points: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| assert data.attrs["units"] == "km" | ||
| assert data.attrs["horizontal_datum"] == "WGS84" | ||
| assert data.shape == (181, 361) | ||
| assert data.gmt.registration == 0 |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Need to update to the new syntax in #3696, depending on which PR is merged first.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. The dataset image will be updated automatically when the upstream PR is merged.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Currently we use both, the abbreviation and the complete word for units in pygmt/pygmt/datasets/load_remote_dataset.py Lines 113 to 115 in b90fa46
but pygmt/pygmt/datasets/load_remote_dataset.py Lines 135 to 137 in b90fa46
I think we should decide on one way and update the dictionary in Edit: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
That's a good point. The CF convention mentions that the unit string must be recognized by the UDUNIT package. I quickly read the UNUNIT documentation, I think valid values are |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This section (http://cfconventions.org/Data/cf-conventions/cf-conventions-1.12/cf-conventions.html#_dimensional_vertical_coordinate) says:
So I think |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Submitted PR #3725 for updating this for all datasets. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.