CleF
Searches the Earth System Grid Federation datasets stored at the Australian National Computational Infrastructure, both data published on the NCI ESGF node as well as files that are locally replicated from other ESGF nodes.
https://github.com/coecms/clef
Category: Climate Change
Sub Category: Climate Data Access and Visualization
Keywords
climate-data cmip python3
Last synced: about 20 hours ago
JSON representation
Repository metadata
- Host: GitHub
- URL: https://github.com/coecms/clef
- Owner: coecms
- Created: 2017-10-02T00:19:31.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-08-14T00:02:02.000Z (4 months ago)
- Last Synced: 2025-12-08T22:00:08.873Z (17 days ago)
- Topics: climate-data, cmip, python3
- Language: Python
- Homepage: https://clef.readthedocs.io
- Size: 991 KB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 15
- Releases: 40
-
Metadata Files:
- Readme: README.rst
- License: LICENSE-2.0.txt
- Authors: AUTHORS
README.rst
=============================
𝄞 `clef `_
=============================
CleF - Climate Finder - Dataset search tool developed by the `CLEX `_ `CMS `_ team, powered by `ESGF `_ and the `NCI `_ clef.nci.org.au local database
.. image:: https://readthedocs.org/projects/clef/badge/?version=latest
:target: https://clef.readthedocs.io/en/stable/
.. image:: https://circleci.com/gh/coecms/clef/tree/master.svg?style=shield
:target: https://circleci.com/gh/coecms/clef/tree/master
.. image:: https://img.shields.io/conda/v/coecms/clef.svg
:target: https://anaconda.org/coecms/clef
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.8251030.svg
:target: https://doi.org/10.5281/zenodo.8251030
.. content-marker-for-sphinx
Clef searches the Earth System Grid Federation datasets stored at the Australian National Computational Infrastructure, both data published on the NCI
ESGF node as well as files that are locally replicated from other ESGF nodes.
Currently it searches for the following datasets:
- **CMIP5** raijin projects: rr3, where NCI is the primary publisher and al33 for replicas
- **CMIP6** raijin projects: 0i10 for replicas
- **CORDEX** raijin projects: rr3, where NCI is the primary publisher and al33 for replicas
The search returns both the path of data that is already available at NCI as well as information on data that
is on external ESGF nodes but not yet available locally.
-------
Install
-------
CleF is pre-installed into a Conda environment at NCI. Load it with::
module use /g/data3/hh5/public/modules
module load conda/analysis3-unstable
NB You need to be a member of hh5 to load the modules
We are constantly adding new features, the development version is available in a separate environment::
module use /g/data3/hh5/public/modules
module load conda
source activate clef-test
You can install it to your own environment with::
conda install -c coecms -c conda-forge clef
But note that the clef.nci.org.au database necessary for running ``clef`` can only be accessed
from NCI systems
---
Use
---
clef cmip5
~~~~~
Find CMIP5 files matching the constraints::
clef cmip5 --model BCC-CSM1.1 --variable tas --experiment historical --table day
You can filter CMIP5 by the following terms:
* ensemble/member
* experiment
* experiment-family
* model
* table/cmor_table
* realm
* frequency
* variable
* cf-standard-name
* institution
See ``clef cmip5 --help`` for all available filters and their aliases
``--latest`` will check the latest versions of the datasets on the ESGF
website, and will only return matching files
It will return a path for all the files available locally at NCI and a dataset-id for the ones that haven't been downloaded yet.
You can use the flags ``--local`` and ``--missing`` to return respectively only the local paths or the missing dataset-id::
clef --local cmip5 --model MPI-ESM-LR --variable tas --table day
clef --missing cmip5 --model MPI-ESM-LR --variable tas --table day
NB these flags come immediately after the command "clef" and before the sub-command "cmip5" or "cmip6". They are also clearly mutually exclusive.
You can repeat arguments more than once::
clef --missing cmip5 --model MPI-ESM-LR -v tas -v tasmax -t day -t Amon
clef cmip6
~~~~~
You can filter CMIP6 by the following terms:
* activity
* experiment
* source_type
* model
* member
* table
* grid
* resolution
* realm
* frequency
* variable
* version
* sub_experiment
* variant_label
* institution
* cf_standard_name
See ``clef cmip6 --help`` for all available filters
clef cordex
~~~~~
You can filter CORDEX by the following terms:
* experiment
* domain
* driving_model
* rcm_name (model)
* rcm_version
* ensemble
* table
* time_frequency
* variable
* version
* experiment_family
* institute
* cf_standard_name
See ``clef cordex --help`` for all available filters
-------
-------
Develop
-------
Development install::
conda env create -f conda/dev-environment.yml
source activate clef-dev
pip install -e '.[dev]'
The `dev-environment.yml` file is for speeding up installs and installing
packages unavailable on pypi, `requirements.txt` is the source of truth for
dependencies.
To work on the database tables you may need to start up a test database.
You can start a test database either with Docker::
docker-compose up # (In a separate terminal)
psql -h localhost -U postgres -f db/nci.sql
psql -h localhost -U postgres -f db/tables.sql
# ... do testing
docker-compose rm
Or with Vagrant::
vagrant up
# ... do testing
vagrant destroy
Run tests with py.test (they will default to using the test database)::
py.test
or connect to the production database with::
py.test --db=postgresql://clef.nci.org.au/postgres
Build the documentation using Sphinx::
python setup.py build_sphinx
firefox docs/_build/index.html
New releases are packaged and uploaded to anaconda.org by CircleCI when a new
Github release is made
Documentation is available on ReadTheDocs, both for `stable
`_ and `latest
`_ versions.
Disclaimer
----------
CleF can only return datasets which are listed in the ESGF database system for remote results and on the NCI clef database for local results. This means that potentially some of the datasets might not be returned in the following cases:
* One or more of the ESGF nodes are offline: this can affect clef returning results for the models which are hostedworks which are offline. It is usually easy to verify if this is the case since a query on the browser should show a reduced list of models. In such cases using the *--local* flag will use a query method completely independent and will return at least what is available locally.
* The NCI ESGF node is offline then nothing will be returned by the default or remote queries, again using *--local* should work.
* The checksums stored in the ESGF database are different from the actual file checksums. CleF uses the checksums to match the files available remotely if even one file does not match it will flag the dataset as missing. Using the *--local* flag should still return the datasets regardless because it doesn't compare them to what is available remotely.
* A dataset has been recently donwloaded (up to a week before) and hasn't yet been added to the NCI clef database. In such case it might not show locally even if it has been downloaded. The NCI clef database is updated weekly so we cannot guarantee for clef to find data which is more recent than that. NCI also provides us with a list of datasets recently queued or downloaded. The default query will show this data as "queued" or "downloaded", rather than missing. While this list aims to cover the gap in between database updates, we have no control on its frequency and it might not capture all the data.
Owner metadata
- Name: ARC COE for Climate Extremes: Computational Modelling Systems
- Login: coecms
- Email:
- Kind: organization
- Description:
- Website: http://climate-cms.unsw.wikispaces.net
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/2030614?v=4
- Repositories: 136
- Last ynced at: 2024-04-16T01:03:47.339Z
- Profile URL: https://github.com/coecms
GitHub Events
Total
- Watch event: 1
- Create event: 1
Last Year
- Watch event: 1
- Create event: 1
Committers metadata
Last synced: 17 days ago
Total Commits: 401
Total Committers: 4
Avg Commits per committer: 100.25
Development Distribution Score (DDS): 0.469
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Scott Wales | s****s@u****u | 213 |
| paolap@utas.edu.au | p****p@u****u | 186 |
| Scott Wales | s****s@o****u | 1 |
| C. Carouge | c****e@u****u | 1 |
Committer domains:
- unsw.edu.au: 1
- outlook.com.au: 1
- utas.edu.au: 1
- unimelb.edu.au: 1
Issue and Pull Request metadata
Last synced: 4 months ago
Total issues: 53
Total pull requests: 47
Average time to close issues: 8 months
Average time to close pull requests: 10 days
Total issue authors: 7
Total pull request authors: 5
Average comments per issue: 1.72
Average comments per pull request: 0.43
Merged pull request: 40
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- paolap (40)
- ScottWales (8)
- hot007 (1)
- aidanheerdegen (1)
- alexborowiak (1)
- nikhil003 (1)
- DamienIrving (1)
Top Pull Request Authors
- paolap (27)
- ScottWales (16)
- ccarouge (1)
- lewisjared (1)
- DamienIrving (1)
Top Issue Labels
- enhancement (16)
- bug (12)
- working on now (2)
Top Pull Request Labels
Package metadata
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
proxy.golang.org: github.com/coecms/clef
- Homepage:
- Documentation: https://pkg.go.dev/github.com/coecms/clef#section-documentation
- Licenses:
- Latest release: v0.2.0 (published over 7 years ago)
- Last Synced: 2025-12-13T18:07:54.616Z (12 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.401%
- Average: 5.583%
- Dependent repos count: 5.764%
Dependencies
- click *
- psycopg2 *
- requests *
- sqlalchemy *
- postgres 9.6
Score: -Infinity