New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
archiveFolder.sh in NEMO/branches/UKMO/AMM15_v3_6_STABLE_new_ersem/NEMOGCM/CONFIG/AMM7_FABM_ERSEM/EXP01 – NEMO

source: NEMO/branches/UKMO/AMM15_v3_6_STABLE_new_ersem/NEMOGCM/CONFIG/AMM7_FABM_ERSEM/EXP01/archiveFolder.sh @ 15814

Last change on this file since 15814 was 15480, checked in by jcastill, 3 years ago

Changes as in the git branch NEMO-FABMv1-ERSEM

  • Property svn:executable set to *
File size: 833 bytes
Line 
1#!/bin/bash
2
3set -u
4
5ARCHIVEDIR=/nerc/n01/n01/momme/AMM7-HINDCAST-15.06
6MERGETOOL=$HOME/local/bin/nocscombine-5
7
8folder=$1
9
10module load cray-netcdf
11
12if [ -d $folder ]
13then
14  cd $folder
15  echo "Archiving $folder:"
16  mkdir -p $ARCHIVEDIR/$folder
17  for file in amm7*.nc
18  do
19     nccopy -k 4 -d 9 $file $ARCHIVEDIR/$folder/$file && rm $file && echo "   " $file || echo "   " $file 'failed!!!'
20  done
21  $MERGETOOL -f restart_0000.nc && nccopy -k 4 -d 9 restart.nc $ARCHIVEDIR/$folder/restart.nc && rm restart_????.nc && echo "   restart.nc" || echo '   restart.nc failed!!!'
22  $MERGETOOL -f restart_trc_0000.nc && nccopy -k 4 -d 9 restart_trc.nc $ARCHIVEDIR/$folder/restart_trc.nc && rm restart_trc_????.nc && echo "   restart_trc.nc" || echo '   restart_trc.nc failed!!!' 
23  mv -f ocean.output.bz2 $ARCHIVEDIR/$folder 
24fi
25echo "Done."
Note: See TracBrowser for help on using the repository browser.