GlaThiDa
Glacier Thickness Database.
https://gitlab.com/wgms/glathida
Category: Cryosphere
Sub Category: Glacier and Ice Sheets
Keywords
collaboration database datapackage glacier glaciology global
Last synced: about 8 hours ago
JSON representation
Repository metadata
Glacier Thickness Database (GlaThiDa) https://www.gtn-g.ch/data_catalogue_glathida
- Host: gitlab.com
- URL: https://gitlab.com/wgms/glathida
- Owner: wgms
- License: cc-by-4.0
- Created: 2019-09-03T21:02:18.461Z (over 6 years ago)
- Default Branch: main
- Last Synced: 2025-11-27T10:24:12.085Z (27 days ago)
- Topics: collaboration, database, datapackage, glacier, glaciology, global
- Stars: 2
- Forks: 2
- Open Issues: 11
- Releases: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
README.md
glathida Glacier Thickness Database
Worldwide dataset of glacier thickness observations aggregated from literature review, data submissions, and published data.
Versions
-
v3.1.0: The latest published version ofglathidais available from the GTN-G website (https://doi.org/10.5904/wgms-glathida-2020-10). It is described in:- Welty et al. (2020). Worldwide version-controlled database of glacier thickness observations. Earth System Science Data, 12, 3039–3055. https://doi.org/10.5194/essd-12-3039-2020
-
v4-beta: The next version is in development and available from this GitLab repository (https://gitlab.com/wgms/glathida). There is yet no timeline for publication of this version.
Note that the data structure has changed (see documentation). Tables T, TT, and TTT are now glacier, band, and point. An additional survey table makes it possible to submit point measurements without a corresponding entry in glacier.
Contribute
Bug reports, data submissions, and other issues can be posted to the issue tracker at https://gitlab.com/wgms/glathida/-/issues. Submitters are encouraged to validate their data before submission (see the Developer guide further below).
Submission: as issue
For users who are not familiar with Git, data can be submitted as an issue.
- Create a new issue: https://gitlab.com/wgms/glathida/-/issues/new
- In the
Choose a templatedropdown, selectData submission. - Fill out and follow the instructions in the issue template.
- Link to your data or attach it directly to the issue. Ideally, the data should be a spreadsheet or CSV files with column names and values as described in the documentation.
- Click
Create issue.
Your submission will be reviewed by a maintainer, who will create a merge request.
Submission: as merge request
Users familiar with Git are encouraged to submit a merge request directly.
- Fork the repository.
- Create a new branch in your fork.
- Add data to a new subdirectory of
submissions(for example,submissions/{investigator name}-{survey or publication year}-{glacier name}). Data should be CSV files structured as described in the documentation. - Modify or remove existing data (in
/data) as needed. - Create a merge request.
Continuous integrations tests will automatically check your submission. If they fail, you are encouraged to commit further changes until they pass. The merge request will be reviewed by a maintainer and hopefully merged!
Developer guide
Clone the repository and move into the directory.
git clone https://gitlab.com/wgms/glathida.git
cd glathida
Create the glathida conda environment and activate it.
conda env create --file environment.yaml
conda activate glathida
Run tests on the metadata (datapackage.yaml) and data (data/*).
pytest
Or test a data submission.
python -m tests.check_submission path/to/submission
# For example:
# python -m tests.check_submission data/24k-glacier-2019
User guide (Python)
Read data
The legacy (v3) data is stored as CSV files directly in the data subdirectory (e.g. data/point.csv), but new data is stored in subdirectories of data (for example, data/24k-glacier-2019/point.csv). To read all data as unified tables, the provided helpers.read_data function can be used. This assumes the glathida Python environment has been activated (see above).
from tests import helpers
dfs = helpers.read_data()
dfs.keys()
# dict_keys(['glacier', 'point', 'survey', 'band'])
Otherwise, the following can be used in a typical Python environment.
from collections import defaultdict
from pathlib import Path
import pandas as pd
paths = Path('data').rglob('*.csv')
dfs = defaultdict(list)
for path in paths:
df = pd.read_csv(path, low_memory=False)
dfs[path.stem].append(df)
dfs = {
name: pd.concat(df_list, ignore_index=True)
for name, df_list in dfs.items()
}
Assign RGI ID to points
Assumes the data are already loaded in dfs as above.
import geopandas as gpd
# Convert points DataFrame to a GeoDataFrame
df = dfs['point']
points = gpd.GeoDataFrame(
df, geometry=gpd.points_from_xy(df['longitude'], df['latitude'], crs=4326)
)
# Read RGI inventory
rgi = gpd.read_file('path/to/rgi')
# Add RGI ID to points using spatial indexing (for speed)
# NOTE: points.sjoin(rgi, how='left', predicate='within') may be as fast
# NOTE: Assumes RGI ID is in column 'rgi_id' (v7). Use 'RGIId' for v6.
points['rgi_id'] = None
i_rgi, i_points = points.sindex.query(rgi.geometry, predicate='intersects')
points.loc[points.index[i_points], 'rgi_id'] = rgi.iloc[i_rgi]['RGIId'].values
Owner metadata
- Name: wgms
- Login: wgms
- Email:
- Kind: organization
- Description: For more than a century, the World Glacier Monitoring Service (https://wgms.ch) and its predecessor organizations have been compiling and disseminating standardized data on glacier fluctuations.
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://gitlab.com/uploads/-/system/group/avatar/6888114/wgms-logo.png
- Repositories: 5
- Last ynced at: 2023-05-31T11:49:37.139Z
- Profile URL: https://gitlab.com/wgms
Committers metadata
Last synced: 2 days ago
Total Commits: 205
Total Committers: 1
Avg Commits per committer: 205.0
Development Distribution Score (DDS): 0.0
Commits in past year: 2
Committers in past year: 1
Avg Commits per committer in past year: 2.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| ezwelty | e****y@g****m | 205 |
Issue and Pull Request metadata
Last synced: 5 days ago
Score: 2.5649493574615367