-
Notifications
You must be signed in to change notification settings - Fork 218
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
Remote Datasets: Inconsistent dataset title, name and long_name #2914
Comments
The table below shows what I tried until now (I just realized that
|
I agree. The
I think we should remove the In summary, I think we should:
|
Continue the discussions in #3048 (comment). >>> from pygmt import which
>>> import xarray as xr
>>> grid = xr.load_dataarray(which("@earth_relief_01d_g"))
>>> grid
<xarray.DataArray 'z' (lat: 181, lon: 361)> Size: 261kB
array([[ 2865. , 2865. , 2865. , ..., 2865. , 2865. , 2865. ],
[ 3088. , 3087.5, 3087. , ..., 3088.5, 3088. , 3088. ],
[ 3100.5, 3100.5, 3101. , ..., 3101.5, 3101. , 3100.5],
...,
[-3745.5, -3729. , -3722.5, ..., -3734. , -3742. , -3745.5],
[-2940. , -2945. , -2951. , ..., -2895.5, -2921.5, -2940. ],
[-3861. , -3861. , -3861. , ..., -3861. , -3861. , -3861. ]],
dtype=float32)
Coordinates:
* lon (lon) float64 3kB -180.0 -179.0 -178.0 -177.0 ... 178.0 179.0 180.0
* lat (lat) float64 1kB -90.0 -89.0 -88.0 -87.0 ... 87.0 88.0 89.0 90.0
Attributes:
actual_range: [-7174. 5350.]
long_name: elevation (m)
>>> grid = xr.load_dataarray(which("@earth_age_01d_g"))
>>> grid
<xarray.DataArray 'z' (lat: 181, lon: 361)> Size: 261kB
array([[ nan, nan, nan, ..., nan, nan,
nan],
[ nan, nan, nan, ..., nan, nan,
nan],
[ nan, nan, nan, ..., nan, nan,
nan],
...,
[65.84 , 65.740005, 65.630005, ..., 66.100006, 65.979996,
65.84 ],
[61.45 , 61.77 , 62.06 , ..., 60.75 , 61.11 ,
61.45 ],
[55.61 , 55.61 , 55.61 , ..., 55.61 , 55.61 ,
55.61 ]], dtype=float32)
Coordinates:
* lon (lon) float64 3kB -180.0 -179.0 -178.0 -177.0 ... 178.0 179.0 180.0
* lat (lat) float64 1kB -90.0 -89.0 -88.0 -87.0 ... 87.0 88.0 89.0 90.0
Attributes:
actual_range: [ 0.37 336.52]
long_name: ages (Myr) I feel that GMT always uses
|
It's time to continue the discussions here. Here is the >>> from pygmt.datasets import load_earth_relief
>>> grid0 = load_earth_relief(resolution="01d", registration="gridline")
>>> grid0
<xarray.DataArray 'elevation' (lat: 181, lon: 361)> Size: 523kB
array([[ 2865. , 2865. , 2865. , ..., 2865. , 2865. , 2865. ],
[ 3088. , 3087.5, 3087. , ..., 3088.5, 3088. , 3088. ],
[ 3100.5, 3100.5, 3101. , ..., 3101.5, 3101. , 3100.5],
...,
[-3745.5, -3729. , -3722.5, ..., -3734. , -3742. , -3745.5],
[-2940. , -2945. , -2951. , ..., -2895.5, -2921.5, -2940. ],
[-3861. , -3861. , -3861. , ..., -3861. , -3861. , -3861. ]])
Coordinates:
* lon (lon) float64 3kB -180.0 -179.0 -178.0 -177.0 ... 178.0 179.0 180.0
* lat (lat) float64 1kB -90.0 -89.0 -88.0 -87.0 ... 87.0 88.0 89.0 90.0
Attributes:
long_name: Earth elevation relative to the geoid
units: meters
vertical_datum: EGM96
horizontal_datum: WGS84 Here is the >>> import xarray as xr
>>> from pygmt import which
>>> grid1 = xr.load_dataarray(which("@earth_relief_01d_g", download="a"))
>>> grid1
<xarray.DataArray 'z' (lat: 181, lon: 361)> Size: 523kB
array([[ 2865. , 2865. , 2865. , ..., 2865. , 2865. , 2865. ],
[ 3088. , 3087.5, 3087. , ..., 3088.5, 3088. , 3088. ],
[ 3100.5, 3100.5, 3101. , ..., 3101.5, 3101. , 3100.5],
...,
[-3745.5, -3729. , -3722.5, ..., -3734. , -3742. , -3745.5],
[-2940. , -2945. , -2951. , ..., -2895.5, -2921.5, -2940. ],
[-3861. , -3861. , -3861. , ..., -3861. , -3861. , -3861. ]])
Coordinates:
* lon (lon) float64 3kB -180.0 -179.0 -178.0 -177.0 ... 178.0 179.0 180.0
* lat (lat) float64 1kB -90.0 -89.0 -88.0 -87.0 ... 87.0 88.0 89.0 90.0
Attributes:
actual_range: [-7174. 5350.]
long_name: elevation (m) Here is the
I prefer |
A simple script to produce the table below:
The text was updated successfully, but these errors were encountered: