Skip to content

Commit

Permalink
Temporary measure to have the tool work on DRAC Graham (#48)
Browse files Browse the repository at this point in the history
This commit is a temporary measure addressing issue #47 submitted to the
GitHub repository of the tool. It assured the StdEnv/2020 module is
loaded on Graham, so the module system works as before.

Later on, this needs to change, to be able to use this tool on various
clusters.

Signed-off-by: Kasra Keshavarz <[email protected]>
  • Loading branch information
kasra-keshavarz authored Apr 25, 2024
1 parent aadc4ff commit 32a19d2
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 42 deletions.
15 changes: 8 additions & 7 deletions depth_to_bedrock/depth_to_bedrock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,14 @@ renvPackagePath="${renvCache}/renv_0.16.0.tar.gz" # renv_0.16.0 source path
# ===================
# Modules below available on Compute Canada (CC) Graham Cluster Server
load_core_modules () {
module -q purge
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
module -q purge
module -q load StdEnv/2020
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
}
load_core_modules

Expand Down
19 changes: 10 additions & 9 deletions gsde/gsde.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,16 @@ lonVar="lon"
# ===================
# Modules below available on Compute Canada (CC) Graham Cluster Server
load_core_modules () {
module -q purge
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
module -q load nco/5.0.6
module -q load netcdf/4.7.4
module -q purge
module -q load StdEnv/2020
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
module -q load nco/5.0.6
module -q load netcdf/4.7.4
}
load_core_modules

Expand Down
1 change: 1 addition & 0 deletions landsat/landsat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ landcoverchangeFile="land_change_2010v2_2015v2_30m_tif.zip"
# Modules below available on Compute Canada (CC) Graham Cluster Server
load_core_modules () {
module -q purge
module -q load StdEnv/2020
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
Expand Down
15 changes: 8 additions & 7 deletions merit_hydro/merit_hydro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,14 @@ renvPackagePath="${renvCache}/renv_0.16.0.tar.gz" # renv_0.16.0 source path
# ===================
# Modules below available on Compute Canada (CC) Graham Cluster Server
load_core_modules () {
module -q purge
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
module -q purge
module -q load StdEnv/2020
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
}
load_core_modules

Expand Down
1 change: 1 addition & 0 deletions modis/modis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ renvPackagePath="${renvCache}/renv_0.16.0.tar.gz" # renv_0.16.0 source path
# Modules below available on Compute Canada (CC) Graham Cluster Server
load_core_modules () {
module -q purge
module -q load StdEnv/2020
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
Expand Down
25 changes: 13 additions & 12 deletions soil_class/soil_class.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ do
-i | --dataset-dir) geotiffDir="$2" ; shift 2 ;; # required
-o | --output-dir) outputDir="$2" ; shift 2 ;; # required
-v | --variable) variables="$2" ; shift 2 ;; # required
-r | --crs) crs="$2" ; shift 2 ;; # required
-r | --crs) crs="$2" ; shift 2 ;; # required
-s | --start-date) startDate="$2" ; shift 2 ;; # redundant - added for compatibility
-e | --end-date) endDate="$2" ; shift 2 ;; # redundant - added for compatibility
-l | --lat-lims) latLims="$2" ; shift 2 ;; # required - could be redundant
-n | --lon-lims) lonLims="$2" ; shift 2 ;; # required - could be redundant
-f | --shape-file) shapefile="$2" ; shift 2 ;; # required - could be redundant
-F | --fid) fid="$2" ; shift 2 ;; # optional
-t | --print-geotiff) printGeotiff="$2" ; shift 2 ;; # required
-a | --stat) stats="$2" ; shift 2 ;; # optional
-a | --stat) stats="$2" ; shift 2 ;; # optional
-u | --include-na) includeNA="$2" ; shift 2 ;; # required
-q | --quantile) quantiles="$2" ; shift 2 ;; # optional
-p | --prefix) prefix="$2" ; shift 2 ;; # optional
-c | --cache) cache="$2" ; shift 2 ;; # required
-q | --quantile) quantiles="$2" ; shift 2 ;; # optional
-p | --prefix) prefix="$2" ; shift 2 ;; # optional
-c | --cache) cache="$2" ; shift 2 ;; # required
-L | --lib-path) renvCache="$2" ; shift 2 ;; # required

# -- means the end of the arguments; drop this, and break out of the while loop
Expand Down Expand Up @@ -135,13 +135,14 @@ renvPackagePath="${renvCache}/renv_0.16.0.tar.gz" # renv_0.16.0 source path
# ===================
# Modules below available on Compute Canada (CC) Graham Cluster Server
load_core_modules () {
module -q purge
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
module -q purge
module -q load StdEnv/2020
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
}
load_core_modules

Expand Down
15 changes: 8 additions & 7 deletions soil_grids/soil_grids_v1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,14 @@ renvPackagePath="${renvCache}/renv_0.16.0.tar.gz" # renv_0.16.0 source path
# ===================
# Modules below available on Compute Canada (CC) Graham Cluster Server
load_core_modules () {
module -q purge
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
module -q purge
module -q load StdEnv/2020
module -q load gcc/9.3.0
module -q load r/4.1.2
module -q load gdal/3.0.4
module -q load udunits/2.2.28
module -q load geos/3.10.2
module -q load proj/9.0.0
}
load_core_modules

Expand Down

0 comments on commit 32a19d2

Please sign in to comment.