diff --git a/README.md b/README.md index 396f1ada91ac93ead740a6f4548e49fd55f9afce..ff1e8c90413f25e306151fb8249cc53e5184d357 100644 --- a/README.md +++ b/README.md @@ -1 +1,39 @@ # AOSS Tower + +## 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/aoss_tower`. + +1. Get and install the conda environment: + + ```bash + cd /tmp + curl -O "https://gitlab.ssec.wisc.edu/metobs/AossTower/-/raw/master/environment.yaml" + sudo /opt/miniconda3/condabin/conda env create --file environment.yaml --prefix /opt/metobs/aoss_tower + ``` + +2. Clone the git repository into the environment and other setup: + + ```bash + cd /opt/metobs/aoss_tower + sudo mkdir -p repos/git log lock + sudo chown metobs:metobsgrp log lock + sudo git clone "https://gitlab.ssec.wisc.edu/metobs/AossTower.git" repos/git/AossTower + sudo ln -s repos/git/AossTower/scripts ./scripts + sudo git clone "https://gitlab.ssec.wisc.edu/metobs/MetObsCommon.git" repos/git/MetObsCommon + ``` + +3. Install the metobsapi python package: + + ```bash + sudo /opt/metobs/aoss_tower/bin/pip install -e repos/git/MetObsCommon/ + sudo /opt/metobs/aoss_tower/bin/pip install -e repos/git/MetObsAPI/ + ``` + +4. Copy `etc` files from MetObsCommon if necessary: + + ```bash + sudo cp repos/git/MetObsCommon/etc/... /etc/... + ``` diff --git a/environment.yaml b/environment.yaml new file mode 100644 index 0000000000000000000000000000000000000000..caa6ea3d2a6139e0de82d2aaf33d099f19816174 --- /dev/null +++ b/environment.yaml @@ -0,0 +1,12 @@ +name: aoss_tower +channels: + - conda-forge +dependencies: + - matplotlib + - netcdf4 + - numpy + - pandas + - pytest + - requests + - sh + - python=3.11 diff --git a/pyproject.toml b/pyproject.toml index e8dff0b77f433f53ea892584582940d6e3dd2bbc..b5cedae3b335c45f8ac4704f71805de5eb4cd530 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,6 +74,8 @@ requires-python = ">=3.10" dependencies = [ "numpy", "pandas", + "netcdf4", + "requests", ] dynamic = ["version"]