From 077f207f82545b7dec2b8e0fb40d3923eed2f388 Mon Sep 17 00:00:00 2001
From: "Harald.Sodemann" <harald.sodemann@uib.no>
Date: Wed, 24 Jan 2024 10:52:58 +0100
Subject: [PATCH] Upload New File

---
 icesm_high_frequency_setup.sh | 96 +++++++++++++++++++++++++++++++++++
 1 file changed, 96 insertions(+)
 create mode 100644 icesm_high_frequency_setup.sh

diff --git a/icesm_high_frequency_setup.sh b/icesm_high_frequency_setup.sh
new file mode 100644
index 0000000..f0e7877
--- /dev/null
+++ b/icesm_high_frequency_setup.sh
@@ -0,0 +1,96 @@
+#!/bin/sh
+
+#Execute the script in cluster/home/user
+
+#Fill in your username and project number below!
+USER="siq011"
+PROJECT="nn9555k"
+	
+CASE_NAME="test_icesm_high_frequency3"
+
+#echo $PROJECT
+##Script stops and  shoots an error message if command fails
+#set -e
+
+files_dir=$(pwd)
+
+
+##GO INTO SCRIPTS
+cd /cluster/home/$USER/$PROJECT/progs/iCESM1.2/iCESM1.2/scripts/
+
+
+##CREATE THE CASE
+./create_newcase -case $CASE_NAME -res f19_g16 -compset B1850CN -mach fram
+
+
+##GO INTO THE CASE
+cd $CASE_NAME
+
+
+##RUN THE SETUP 
+./cesm_setup
+
+
+##COPY DIAGNOSTIC FILE FROM MODEL BASE TO CASE
+cp /cluster/home/$USER/$PROJECT/progs/iCESM1.2/iCESM1.2/models/atm/cam/src/physics/cam/cam_diagnostics.F90 SourceMods/src.cam/
+
+##MAKE SOFT LINK TO GET FILES
+ln -s /cluster/work/users/hso039/noresm/ncar_reference/ /cluster/home/$USER/$PROJECT/progs/iCESM1.2/iCESM1.2/scripts/$CASE_NAME/work
+
+
+##GO BACK TO HOME DIRECTORY
+cd $files_dir
+
+
+##MOVE THE MODIFIED FILES TO CASE
+cp -i user_nl_cam /cluster/home/$USER/$PROJECT/progs/iCESM1.2/iCESM1.2/scripts/$CASE_NAME
+cp -i env_run.xml /cluster/home/$USER/$PROJECT/progs/iCESM1.2/iCESM1.2/scripts/$CASE_NAME
+cp -i icesm_high_frequency.run /cluster/home/$USER/$PROJECT/progs/iCESM1.2/iCESM1.2/scripts/$CASE_NAME/$CASE_NAME.run
+
+
+echo "The case icesm_high_frequency has been set up in scripts"
+
+
+########DOWNLOAD NECESSARY RESTART FILES
+
+#Move to directory where restart files will be downloaded
+
+#cd /cluster/projects/$PROJECT/work/iCESM1.2
+
+#echo "Start downloading reastart files"
+
+##Downloading list of startup files
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.cam.h0.1849-12.nc 
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.cam.h1.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.cam.i.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.cam.rs.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.cice.r.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.clm2.h0.1849-12.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.clm2.h1.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.clm2.r.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.clm2.rh0.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.clm2.rh1.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.cpl.r.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.pop.r.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.pop.ro.1850-01-01-00000
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.rtm.h0.1849-12.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.rtm.r.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/b.ie12.B1850C5CN.f19_g16.LME.002.rtm.rh0.1850-01-01-00000.nc
+#wget -nc https://zenodo.org/record/3553753/files/rpointer.atm
+#wget -nc https://zenodo.org/record/3553753/files/rpointer.drv
+#wget -nc https://zenodo.org/record/3553753/files/rpointer.ice
+#wget -nc https://zenodo.org/record/3553753/files/rpointer.lnd
+#wget -nc https://zenodo.org/record/3553753/files/rpointer.ocn.ovf
+#wget -nc https://zenodo.org/record/3553753/files/rpointer.ocn.restart
+#wget -nc https://zenodo.org/record/3553753/files/rpointer.rof
+#wget -nc https://zenodo.org/record/3553753/files/surfdata_1.9x2.5_simyr1850_c140303.nc
+
+echo "All restart files downloaded"
+
+
+
+echo "Script finished successfully"
+
+
+
+
-- 
GitLab