https://github.com/cedadev/esgf-stac-client
A Python client to access ESGF STAC data
https://github.com/cedadev/esgf-stac-client
Last synced: over 1 year ago
JSON representation
A Python client to access ESGF STAC data
- Host: GitHub
- URL: https://github.com/cedadev/esgf-stac-client
- Owner: cedadev
- License: bsd-3-clause
- Created: 2022-06-30T12:38:55.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-18T08:09:43.000Z (about 3 years ago)
- Last Synced: 2025-01-06T02:09:08.292Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 129 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ESGF STAC Client library
## Usage
TBC
## Development and testing
Here is a quick guide to getting started so that you can run the unit tests:
```
ssh sci3.jasmin.ac.uk # If you are running on a `sci` server, otherwise run where you like
mkdir stac
cd stac/
module load jaspy # If running on a `sci` server, if not, just make sure you have a python3 installed
python -m venv stac-venv
# Make a setup-env file (to use each time you want to set the environment)
echo "source stac-venv/bin/activate" > setup-env.sh
# Set the environment
source ./setup-env.sh
# If using a github token do the following
gh_user_token="GITHUB_ID:GITHUB_ACCESS_TOKEN"
git clone https://${gh_user_token}@github.com/cedadev/pystac
git clone https://${gh_user_token}@github.com/cedadev/pystac-client
git clone https://${gh_user_token}@github.com/cedadev/esgf-stac-client
# Else if using github SSH keys, do
git clone git+https://github.com/cedadev/pystac
git clone git+https://github.com/cedadev/pystac-client
git clone git+https://github.com/cedadev/esgf-stac-client
# Go in and change to our working branches, and install dependencies
cd esgf-stac-client/
pip install -e .
# Install requirements for development, e.g. "pytest"
pip install -r requirements_dev.txt
cd ../
cd pystac-client/
git checkout asset-search
pip install -e .
cd ../
cd pystac/
git checkout asset-search
pip install -e .
cd ../
cd esgf-stac-client/
# Run the tests
python -m pytest -v tests
```
You should see some output showing that tests have run.