Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature develop update install files #2266

Merged
merged 13 commits into from
Jul 25, 2023
36 changes: 36 additions & 0 deletions internal/scripts/installation/metplus_components_v5.1_py3.10.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#! /bin/sh

ENV_NAME=metplus_v5.1_py3.10
MINICONDA_PATH=/path/to/miniconda3

${MINICONDA_PATH}/bin/conda create -y --name ${ENV_NAME} -c conda-forge python=3.10.4
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge python-dateutil==2.8.2
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge matplotlib==3.6.3
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge scipy==1.9.3
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge plotly==5.13.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge xarray==2023.1.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge netcdf4==1.6.2
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge pyyaml==6.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge statsmodels==0.13.2
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge python-kaleido==0.2.1
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge imageio==2.25.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge imutils==0.5.4
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge scikit-image==0.19.3
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge pint==0.20.1
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge metpy=1.4.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge pyngl==1.6.1
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge scikit-learn==1.2.1
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge eofs==1.4.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge cmocean==2.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge xesmf==0.3.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge lxml==4.9.1
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge pymysql==1.0.2
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge pandas==1.5.2
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge h5py==3.6.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge cartopy==0.20.3
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge psutil==5.7.2
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge pytest==7.2.1
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge pytest-cov
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge numpy==1.24.2
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge libstdcxx-ng==12.1.0
${MINICONDA_PATH}/bin/conda install -y --name ${ENV_NAME} -c conda-forge opencv-python==4.7.0
26 changes: 26 additions & 0 deletions internal/scripts/installation/modulefiles/5.1.0.lua_wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
help([[
]])

local pkgName = myModuleName()
local pkgVersion = myModuleVersion()
local pkgNameVer = myModuleFullName()

local hierA = hierarchyA(pkgNameVer,1)
local compNameVer = hierA[1]

conflict(pkgName)

local opt = os.getenv("HPC_OPT") or os.getenv("OPT") or "/opt/modules"

local base = pathJoin(opt,compNameVer,pkgName,pkgVersion)

prepend_path("PATH", pathJoin(base,"ush"))

setenv("METPLUS_ROOT", base)
setenv("METPLUS_VERSION", pkgVersion)
setenv("METPLUS_PATH", base)

whatis("Name: ".. pkgName)
whatis("Version: " .. pkgVersion)
whatis("Category: application")
whatis("Description: Model Evaluation Tools Plus (METplus)")
22 changes: 22 additions & 0 deletions internal/scripts/installation/modulefiles/5.1.0_acorn
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#%Module######################################################################
##
## METplus
##
proc ModulesHelp { } {
puts stderr "Sets up the paths and environment variables to use the METplus-5.1.0
*** For help see the official MET webpage at http://www.dtcenter.org/met/users ***"
}

module load intel python/3.10.4
module use /apps/dev/modulefiles/
module load ve/evs/1.0

module use /apps/sw_review/emc/MET/modulefiles
module load met/11.1.0
module load nco
module load libjpeg
module load grib_util
module load wgrib2

setenv METPLUS_PATH /apps/sw_review/emc/METplus/METplus-5.1.0
prepend-path PATH /apps/sw_review/emc/METplus/METplus-5.1.0/ush
17 changes: 17 additions & 0 deletions internal/scripts/installation/modulefiles/5.1.0_cheyenne
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#%Module######################################################################
##
## METplus
##
proc ModulesHelp { } {
puts stderr "Sets up the paths and environment variables to use the METplus-5.1.0
*** For help see the official MET webpage at http://www.dtcenter.org/met/users ***"
}

module use /glade/p/ral/jntp/MET/MET_releases/modulefiles
module load met/11.1.0
module load nco
module load grib-bins/1.3
module load R

setenv METPLUS_PATH /glade/p/ral/jntp/MET/METplus/METplus-5.1.0
prepend-path PATH /glade/p/ral/jntp/MET/METplus/METplus-5.1.0/ush:/glade/p/ral/jntp/MET/METplus/miniconda/miniconda3/envs/metplus_v5.1_py3.10/bin
25 changes: 25 additions & 0 deletions internal/scripts/installation/modulefiles/5.1.0_orion
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#%Module######################################################################
##
## METplus
##
proc ModulesHelp { } {
puts stderr "Sets up the paths and environment variables to use the METplus-5.1.0
*** For help see the official MET webpage at http://www.dtcenter.org/met/users ***"
}
#%Module######################################################################
##
## METplus
##
proc ModulesHelp { } {
puts stderr "Sets up the paths and environment variables to use the METplus-5.1.0
*** For help see the official MET webpage at http://www.dtcenter.org/met/users ***"
}

module load contrib
module load intel/2020.2
module load met/11.1.0
module load nco/4.8.1
module load wgrib/2.0.8
prepend-path PATH /work/noaa/ovp/miniconda/miniconda3/envs/metplus_v5.1_py3.10/bin
setenv METPLUS_PATH /apps/contrib/MET/METplus/METplus-5.1.0
prepend-path PATH /apps/contrib/MET/METplus/METplus-5.1.0/ush