wrfchem-leeds / WRFotron

Tools to automatise WRF-Chem runs with re-initialised meteorology
https://wrfchem-leeds.github.io/WRFotron/
GNU Affero General Public License v3.0
21 stars 7 forks source link

Use personal conda environment with CEMAC compilation #22

Closed lukeconibear closed 3 years ago

lukeconibear commented 3 years ago

What happened: User wishes to use personal conda environment with CEMAC compilation of WRFChem, in order to use custom libraries for postprocessing.

lukeconibear commented 3 years ago

Install personal conda

  1. Log onto ARC4.
  2. Unload loaded modules (especially CEMAC conda): module purge a. Check no modules loaded: module list
  3. Go to your nobackup: cd /nobackup/$USER
  4. Download the latest miniconda: wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
  5. Install miniconda: bash Miniconda3-latest-Linux-x86_64.sh a. Accept terms: yes b. Select the default path: /nobackup/$USER c. Add the activation to your ~/.bashrc: yes
  6. Create a conda environment for Python3, NCL, NCO, and any custom python libraries, e.g.:
    conda create -n python3_ncl_nco -c conda-forge -c oggm xarray salem xesmf numpy scipy pandas matplotlib rasterio affine ncl nco wrf-python
  7. Activate the conda environment: conda activate python3_ncl_nco

Use this personal conda (instead of the CEMAC conda) to run WRFChem

Within WRFotron folders, open config.bash, and replace:

module load intel/19.0.4 openmpi/3.1.4 WRFchem/4.2 ncl/6.5.0 nco/4.6.0 wrfchemconda/3.7 sge

With:

module load intel/19.0.4 openmpi/3.1.4 WRFchem/4.2 sge
conda activate python3_ncl_nco