tum-esm / download-vertical-profiles

download .map and .mod files from ccycle.gps.caltech.edu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download Vertical Profiles

Formerly: https://github.com/tum-esm/download-map-data

🔍 What is it?

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.



🔌 How to run it?

Dependency management with poetry: https://python-poetry.org/docs/#installation

  1. 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
  1. Use the file config.default.json to create a config.json file in your project directory for your setup

  2. Download location data

python fetch-location-data.py
  1. Run the script and wait for the result
python main.py
  1. 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.



⚙️ Configuration

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



🏛 Architecture

For more details, please look into the code itself.

About

download .map and .mod files from ccycle.gps.caltech.edu


Languages

Language:Python 98.8%Language:Shell 1.2%