A Python interface to various metadata vocabularies
Project description
py-thesaurus-interface
An interface to metadata vocabularies for geospatial and other geophysical data
Install
pip install https://github.com/nansencenter/py-thesaurus-interface/archive/master.tar.gz
Usage
import pythesint as pti
pti.get_gcmd_instrument('MERIS')
pti.get_gcmd_platform('ENVISAT')
pti.get_gcmd_provider('NERSC')
For JSON vocabularies, it is possible to update the local files using a specific version. The format of the version depends on the provider. If no version is provided, the latest version is retrieved.
import pythesint as pti
pti.update_gcmd_instrument(version='9.1.5')
pti.update_cf_standard_name(version='20210119T185509')
pti.update_mmd_platform_type(version='a5c8573')
or
import pythesint as pti
pti.update_all_vocabularies(versions={
'gcmd_instrument': '9.1.5',
'cf_standard_name': '20210119T185509',
'mmd_platform_type': 'a5c8573'
})
Standards
The package follows the standards defined at NASA's Global Change Master Directory (GCMD) (http://gcmd.gsfc.nasa.gov) and the NetCDF-CF conventions (http://cfconventions.org/), plus possibly others that will be added as needs emerge... The standards are mapped in Python dictionaries and saved to json-files.
Directory Interchange Format (DIF)
The DIF format is a descriptive and standardized format for exchanging information about scientific data sets. The py-thesaurus-interface package provides an interface to the keywords and formats defined at GCMD.
See: Directory Interchange Format (DIF) Writer's Guide, 2015. Global Change Master Directory. National Aeronautics and Space Administration. [http://gcmd.nasa.gov/add/difguide/].
Controlled keyword vocabularies from GCMD
See: Global Change Master Directory (GCMD). 2015. GCMD Keywords, Version 8.1. Greenbelt, MD: Global Change Data Center, Science and Exploration Directorate, Goddard Space Flight Center (GSFC) National Aeronautics and Space Administration (NASA). URL:http://gcmd.nasa.gov/learn/keywords.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pythesint-1.7.0.tar.gz
.
File metadata
- Download URL: pythesint-1.7.0.tar.gz
- Upload date:
- Size: 710.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b528132f0325fa9cefacced24b71d23d462fde1ee91fc9b14f09310b242f74 |
|
MD5 | 05587ea9582507888d2a67accf7f3d22 |
|
BLAKE2b-256 | 9fa03ca9240bbb4b355c4b39a59a0059c465816a5bd0c84160cdb21866f7b2c0 |
File details
Details for the file pythesint-1.7.0-py3-none-any.whl
.
File metadata
- Download URL: pythesint-1.7.0-py3-none-any.whl
- Upload date:
- Size: 715.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540763bae2d5cbde5e2d514139030c3b2f5048c4e38d27510070ab4c3243159f |
|
MD5 | c6bc19dd70675c3b0b35b59495f40009 |
|
BLAKE2b-256 | d89894dc4961edb28f7be614602091a0e5e1f130117626f834307720e6ef83ad |