Skip to content
Snippets Groups Projects

Mendota Buoy Processing

Operational conda environment

These instructions assume the operational "standard practice" that is current at the time of writing. This practice is to create a conda environment using the "root" user under /opt/metobs/mendota_buoy.

  1. Get and install the conda environment:

    cd /tmp
    curl -O "https://gitlab.ssec.wisc.edu/metobs/MendotaBuoy/-/raw/master/environment.yaml"
    sudo /opt/miniconda3/condabin/conda env create --file environment.yaml --prefix /opt/metobs/mendota_buoy
  2. Clone the git repository into the environment and other setup:

    cd /opt/metobs/mendota_buoy
    sudo mkdir -p repos/git log lock
    sudo chown metobs:metobsgrp log lock
    sudo git clone "https://gitlab.ssec.wisc.edu/metobs/MendotaBuoy.git" repos/git/MendotaBuoy
    sudo ln -s repos/git/MendotaBuoy/scripts ./scripts
    sudo git clone "https://gitlab.ssec.wisc.edu/metobs/MetObsCommon.git" repos/git/MetObsCommon
  3. Install the metobsapi python package:

    sudo /opt/metobs/mendota_buoy/bin/pip install -e repos/git/MetObsCommon/
    sudo /opt/metobs/mendota_buoy/bin/pip install -e repos/git/MendotaBuoy/
  4. Copy etc files from MetObsCommon if necessary:

    sudo cp repos/git/MetObsCommon/etc/... /etc/...