You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remote Datasets: Inconsistent dataset title, name and long_name #2914
Probably we want to avoid renaming dataset, or? For the datasets, I am debating about a renaming of dataset I wrote the new version in italic style.
I agree. The dataset key is used internally by maintainers, so it's OK to rename them. For us maintainers, earth_faa makes more sense than earth_free_air_anomaly.
Some general aspects:
Usage of shortcuts (short but unclear for "non-experts" vs. too long)
Usage of upper- or lower-case letters
Usage of underscores for name
I think we should remove the title attribute, which is only used in the error messages.
In summary, I think we should:
keep all the load_* API functions unchanged
dataset key should match the GMT remote dataset name, e.g.,earth_age
dataset name should match the dataset key, e.g., earth_age
I prefer grid2 mainly because the grid name always defaults to z for wrappers that write grids using virtual files. So it's better to make the remote datasets consistent with other wrappers.
Activity
yvonnefroehlich commentedon Jan 20, 2024
The table below shows what I tried until now (I just realized that
datasetandnameare now identical):Maybe we should also consider the
load_earth*functions? I just added them as the new first column to the table.The magnetic anomaly is difficult, as there are the two separate datasets emag2 and wdmam. I moved these two rows to the bottom of the table.
Probably we want to avoid renaming
dataset, or? For the datasets, I am debating about a renaming ofdatasetI wrote the new version in italic style.Start always with "Earth"
Some general aspects:
nameseisman commentedon Jan 22, 2024
I agree. The
datasetkey is used internally by maintainers, so it's OK to rename them. For us maintainers,earth_faamakes more sense thanearth_free_air_anomaly.I think we should remove the
titleattribute, which is only used in the error messages.In summary, I think we should:
load_*API functions unchangedearth_agenameshould match the dataset key, e.g.,earth_agetitleshould be removedlong_nameshould match the title on the dataset documentation page (https://www.generic-mapping-tools.org/remote-datasets/), but use lower-case letter when possible e.g.,EarthByte Earth seafloor crustal age, rather thanEarthByte Earth Seafloor Crustal Age.seisman commentedon Mar 15, 2024
Continue the discussions in #3048 (comment).
I feel that GMT always uses
zas the grid data name and stores the actual name inlong_name. Maybe we should follow what GMT does? I.e.,seisman commentedon Apr 19, 2024
It's time to continue the discussions here.
Here is the
xarray.DataArrayobject returned by the currentload_earth_relieffunction:Here is the
xarray.DataArrayobject returned by callingxr.load_datarray:Here is the
xarray.DataArrayif we use virtual files (implemented in #3120):I prefer
grid2mainly because the grid name always defaults tozfor wrappers that write grids using virtual files. So it's better to make the remote datasets consistent with other wrappers.