Skip to content

Commit dc962ce

Browse files
committed
Fixes Lmod initialization in update_weather.sh
1 parent c9b23c9 commit dc962ce

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

update_weather.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99
#SBATCH --output=logs/update_weather_%j.out
1010
#SBATCH --error=logs/update_weather_%j.err
1111

12-
# Initialize Lmod
13-
if [ -f /opt/ohpc/admin/lmod/lmod/init/bash ]; then
14-
source /opt/ohpc/admin/lmod/lmod/init/bash
15-
echo "Lmod initialized successfully"
16-
else
17-
echo "Warning: Could not find Lmod initialization script"
18-
fi
12+
# Initialize Lmod with proper MODULEPATH
13+
source /opt/ohpc/admin/lmod/lmod/init/bash
14+
export MODULEPATH=/opt/ohpc/pub/modulefiles:/software/eb/modules/all:/software/eb/modules/toolchain
1915

2016
# Load required modules
2117
module load GDAL/3.10.0-foss-2024a
@@ -24,8 +20,8 @@ module load R/4.4.2-gfbf-2024a
2420
# Change to project directory
2521
cd /home/j.palmer/research/weather-data-collector-spain
2622

27-
cat "=== Collecting Three Datasets ==="
28-
cat "Starting: $(date)"
23+
echo "=== Collecting Three Datasets ==="
24+
echo "Starting: $(date)"
2925

3026
# Dataset 1: Historical daily stations (original AEMET names)
3127
echo "Dataset 1: Historical daily stations..."

0 commit comments

Comments
 (0)