Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feature_2701_ismn
Browse files Browse the repository at this point in the history
  • Loading branch information
MET Tools Test Account committed Dec 13, 2023
2 parents fdb58db + 40ae2fb commit 6b1d5e7
Show file tree
Hide file tree
Showing 6 changed files with 1,170 additions and 1,522 deletions.
48 changes: 26 additions & 22 deletions internal/scripts/environment/development.seneca
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
# Define the development environment for NCAR project machine seneca
# Based on settings in /usr/local/src/met/README.snat
# Based on settings in /nrit/ral/src/met/README.ral-it

# Top-level MET project directory
MET_PROJ_DIR=/d1/projects/MET

# Variables required to build MET
export MET_DEVELOPMENT=true
export MET_DST=/usr/local
export MET_DST=/nrit/ral
export MET_PROJ=${MET_DST}/proj-9.2.1
export MET_NETCDF=${MET_DST}/netcdf-4.7.0/gcc-8.3.0
export MET_HDF5=${MET_DST}/hdf5-1.8.21
export MET_HDFINC=${MET_DST}/hdf4-4.2.15/include/hdf
export MET_HDFLIB=${MET_DST}/hdf4-4.2.15/lib
export MET_HDFEOS=${MET_DST}/hdf-eos2-20v1
export MET_BUFR=${MET_DST}
export MET_GRIB2C=${MET_DST}
export MET_GSL=${MET_PROJ_DIR}/MET_releases/external_libs/gnu_8.3.0
export MET_NETCDF=${MET_DST}/netcdf-4.9.2/gnu-12.2.0
export MET_HDF5=${MET_DST}/hdf5-1.14.2
export MET_HDFINC=${MET_DST}/hdf4-4.2.16-2/include/hdf
export MET_HDFLIB=${MET_DST}/hdf4-4.2.16-2/lib
export MET_HDFEOS=${MET_DST}/hdf-eos2-3.0
export MET_BUFR=${MET_DST}/nceplibs-1.4.0/bufr-12.0.1
export MET_GRIB2C=${MET_DST}/nceplibs-1.4.0/g2c-1.6.2
export MET_GSLINC=/usr/include
export MET_GSLLIB=/usr/lib/x86_64-linux-gnu
export MET_CAIROINC=/usr/include/cairo
export MET_CAIROLIB=/usr/lib/x86_64-linux-gnu
export MET_FREETYPEINC=/usr/include/freetype2
export MET_FREETYPELIB=/usr/lib/x86_64-linux-gnu
export MET_JASPER=${MET_DST}/jasper-1.900.1
export MET_ATLAS=${MET_PROJ_DIR}/MET_releases/external_libs/gnu_8.3.0/atlas
export MET_ECKIT=${MET_PROJ_DIR}/MET_releases/external_libs/gnu_8.3.0/eckit
export MET_ATLAS=${MET_DST}/atlas-0.30.0
export MET_ECKIT=${MET_DST}/eckit-1.20.2
export JASPER=${MET_DST}/jasper-1.900.1

# For Python 3 in met-9.0
export MET_PYTHON=/usr/local/met-python3
export MET_PYTHON_BIN_EXE=${MET_PYTHON}/bin/python3.8
export MET_PYTHON_CC="-I${MET_PYTHON}/include/python3.8"
export MET_PYTHON_LD="-L${MET_PYTHON}/lib -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm"
export MET_PYTHON=${MET_DST}/met-python3
export MET_PYTHON_BIN_EXE=${MET_PYTHON}/bin/python3.10
export MET_PYTHON_CC="-I${MET_PYTHON}/include/python3.10"
export MET_PYTHON_LD="-L${MET_PYTHON}/lib -lpython3.10 -lcrypt -lpthread -ldl -lutil -lm"

# -D__64BIT__ is required because we've compiled libgrib2c.a with that flag
export CFLAGS="-DUNDERSCORE -fPIC -D__64BIT__ -g"
Expand All @@ -37,21 +38,24 @@ export CXXFLAGS=${CFLAGS}
# Set LDFLAGS to include -rpath settings when compiling MET
export LDFLAGS="-Wl,--disable-new-dtags"
export LDFLAGS="${LDFLAGS} -Wl,-rpath,${MET_DST}/lib:${MET_HDFEOS}/lib:${MET_PROJ}/lib:${MET_NETCDF}/lib:${MET_DST}/zlib-1.2.11/lib:${MET_DST}/szip-2.1.1/lib"
export LDFLAGS="${LDFLAGS} -Wl,-rpath,${MET_HDFLIB}:${MET_HDF5}/lib:${MET_GSL}/lib:${MET_PYTHON}/lib:${MET_JASPER}/lib"
export LDFLAGS="${LDFLAGS} -L${MET_JASPER}/lib"
export LDFLAGS="${LDFLAGS} -Wl,-rpath,${MET_HDFLIB}:${MET_HDF5}/lib:${MET_GSL}/lib:${MET_PYTHON}/lib:${JASPER}/lib"
export LDFLAGS="${LDFLAGS} -L${JASPER}/lib"

# Variables required to run MET
export MET_TEST_INPUT=${MET_PROJ_DIR}/MET_test_data/unit_test
export MET_FONT_DIR=${MET_TEST_INPUT}/fonts

# Define Rscript to use a version with the ncdf4 package 1.17 or later
export MET_TEST_RSCRIPT=/usr/local/R-4.1.2/bin/Rscript
export MET_TEST_RSCRIPT=/nrit/ral/R-4.3.1/bin/Rscript

# Define runtime Python version
export MET_TEST_MET_PYTHON_EXE=${MET_PYTHON_BIN_EXE}

# This is a cron script -- create the shell environment for this job
# - NCO is for ncdiff
# - NetCDF is for ncdump.
export PATH="/usr/local/nco/bin:/usr/local/netcdf/bin:\
/usr/local/sbin:/usr/local/bin:/usr/sbin:\
export PATH="/nrit/ral/nco/bin:/nrit/ral/netcdf4/bin:\
/nrit/ral/sbin:/nrit/ral/bin:/usr/sbin:\
/usr/bin:/sbin:/bin:/usr/bin/X11:/opt/bin:$PATH"

# SonarQube
Expand Down
25 changes: 17 additions & 8 deletions internal/scripts/installation/config/install_met_env.generic
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export MAKE_ARGS="-j 5"
# that have the pre-existing libraries not in the external_libs directory will
# need to update the paths to the appropriate location.
#export EXTERNAL_LIBS=${TEST_BASE}/external_libs
#export MET_PROJ=${EXTERNAL_LIBS}
#export SQLITE_INCLUDE_DIR=${EXTERNAL_LIBS}/include
#export SQLITE_LIB_DIR=${EXTERNAL_LIBS}/lib
#export MET_GSL=${EXTERNAL_LIBS}
#export MET_BUFRLIB=${EXTERNAL_LIBS}/lib
#export BUFRLIB_NAME=-lbufr_4
Expand All @@ -57,12 +60,18 @@ export MAKE_ARGS="-j 5"
#export GRIB2CLIB_NAME=-lg2c
#export MET_HDF5=${EXTERNAL_LIBS}
#export MET_NETCDF=${EXTERNAL_LIBS}
#export MET_ECKIT==${EXTERNAL_LIBS}
#export MET_ATLAS==${EXTERNAL_LIBS}

# The optional libraries HDF4, HDFEOS, FREETYPE, and CAIRO are used for the
# following, not widely used tools: MODIS-Regrid, lidar2nc, and MODE Graphics.
# To enable the compilation of these libraries, set the compilation flags for
# the library (e.g. COMPILE_HDF, COMPILE_HDFEOS, COMPILE_CAIRO,
# COMPILE_FREETYPE) to any value in the environment config file. If these
# libraries have already been installed and don't need to be reinstalled, set
# MET_HDF, MET_HDFEOS, MET_FREETYPEINC, MET_FREETYPELIB, MET_CAIROINC,
# and MET_CAIROLIB to their installed locations.
# The optional libraries ecKit and atlas offer support for unstructured
# grids. The optional libraries HDF4, HDFEOS, FREETYPE, and CAIRO are
# used for the following, not widely used tools, MODIS-Regrid,
# lidar2nc, and MODE Graphics. To enable building of these libraries,
# set the compile flags for the library (e.g. COMPILE_ECKIT, COMPILE_ATLAS,
# COMPILE_HDF, COMPILE_HDFEOS) to any value in the environment config
# file. If these libraries have already been installed and don't need
# to be reinstalled, please supply values for the following environment
# variables in the input environment configuration file
# (install_met_env.<machine_name>): MET_ECKIT, MET_ATLAS, MET_HDF,
# MET_HDFEOS, MET_FREETYPEINC, MET_FREETYPELIB, MET_CAIROINC,
# MET_CAIROLIB.
Loading

0 comments on commit 6b1d5e7

Please sign in to comment.