Cumbre Vieja data publishing
November 23, 2021 ยท View on GitHub
Data workflow to publish geospatial information related to La Palma Cumbre Vieja volcano eruption into Elasticsearch.
How to run the data script:
- Create a Python virtual environment and install dependencies with
pip install -r requirements.txt - Export the environment variables:
ES_CLOUD_ID,ES_USER, andES_PASSWORDor alternatively, store them in an.envfile - Run
python src/app.py
Notes:
- This repo has a Github Actions worflow to run the process on every push to the
mainbranch. - Adapt the Elasticsearch Python
clientinitialization if you use a different authentication than an Elastic Cloud identifier. - Check the
app.pyscript for boolean variables to control which data to process and if you want to export the datasets into the/tmpfolder as GeoJSON files. - HTTP requests are cached in a SQLite database stored in the user cache directory (
$USER/.cachein Linux systems).