❗️ Now included in https://github.com/tum-esm/em27-retrieval-pipeline ❗️
Formerly: https://github.com/tum-esm/download-map-data
This tool can be used to download .map
and .mod
files from ccycle.gps.caltech.edu
. These files contain vertical distributions of meteorological parameters for a certain location and date. The underlying accessing method is described on https://tccon-wiki.caltech.edu/Main/CentralizedModMaker. A sample .map
and .mod
can be found in docs/
.
It uses the template repository https://github.com/tum-esm/em27-location-data-template for location management. Running the script fetch-location-data.py
will clone the respective repository and run its integrity checks.
Dependency management with poetry: https://python-poetry.org/docs/#installation
- Set up the project interpreter:
# Create a virtual python environment
python3.9 -m venv .venv
# Activate virtual environment
source .venv/bin/activate
# Install dependencies
poetry install
-
Use the file
config.default.json
to create aconfig.json
file in your project directory for your setup -
Download location data
python fetch-location-data.py
- Run the script and wait for the result
python main.py
- OR: Run the script in a cron-job to always keep this dataset up-to-date
crontab -e
# add the following line to the list
mm hh * * * .../.venv/bin/python .../main.py
Responses from Caltech will be cached in the cache/
directory. If you want your duplicate requests to be faster and use fewer computing resources, do not remove or empty this directory.
from/to: Self-explaining.
user: Your user email that is used to log onto ccycle.gps.caltech.edu
. See: https://tccon-wiki.caltech.edu/Main/CentralizedModMaker
dst: The directory where output files will be placed.
downloadTimeoutSeconds: The ccycle.gps.caltech.edu
will take a while to generate the profiles. This defines, how long this tool will wait until it aborts trying to download the profiles.
locationRepository: A repository structured like https://github.com/tum-esm/em27-location-data-template
For more details, please look into the code itself.