diff --git a/templates/real-from-d2-ana/prepare_lbc_remote.sh b/templates/real-from-d2-ana/prepare_lbc_remote.sh
index 273ef177c9a480847c5a28f36a9eed403616dab0..62f12068d94f7d283f993bee236422c22441aba1 100644
--- a/templates/real-from-d2-ana/prepare_lbc_remote.sh
+++ b/templates/real-from-d2-ana/prepare_lbc_remote.sh
@@ -20,6 +20,16 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then
   HPCUSER=%HPCUSER%
   HPCHOST=%HPCHOST%
 
+  . ${WORKDIR}/proj/platforms/common/spack_utils.sh
+  load_spack "module load user_spack" "$SCRATCH/autoicon-spack" "https://github.com/spack/spack.git" "develop" "slurm" "gcc@11.2.0" "False" "$SCRATCH/autoicon-spackcache" "$SCRATCH/autoicon-spackconfig" ""
+
+  # Load icon module
+  spack load --first dwd-icon-tools
+
+  # Set environment variable for eccodes-dwd definitions:
+  source ${WORKDIR}/eccodes_defs.env
+
+
   # Define date directory, create it and go there
   COMMON_DATE_FOLDER=${WORKDIR}/${STARTDATE}/inidata
   COMMON_GRID_FOLDER=${WORKDIR}/inidata