Changeset 4439 for BOL/Multi_atlas/Utils


Ignore:
Timestamp:
Feb 16, 2023, 10:10:21 AM (23 months ago)
Author:
musat
Message:

Deux corrections:
1/ pour les cas où l'on renomme une simulation (i.e. le nom en 1ere colonne
du def.txt n'est pas le même que celui de la simulation)
2/ de la période, pour les cas où l'on utilise des fichiers MO plutôt que
des SE
IonelaMusat?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/Multi_atlas/Utils/multi.sh

    r4340 r4439  
    123123ss=`basename $simdir `
    124124for year in `grep -w "^$s" $DEF_FILE | awk ' { print $2 } '` ; do
    125 #file=${MAIN_SE}/ORIG/${s}_SE_${year}_1M_histmth.nc
    126 file=${MAIN_SE}/ORIG/${ss}_SE_${year}_1M_histmth.nc
     125file=${MAIN_SE}/ORIG/${s}_SE_${year}_1M_histmth.nc
     126###file=${MAIN_SE}/ORIG/${ss}_SE_${year}_1M_histmth.nc
    127127
    128128echo $file $year
     
    134134  echo NO need to ln -s; the *1M_histmth.nc does not exist anymore
    135135 else
    136   ln -s ${simdir}/ATM/Output/MO/${ss}_${year}0101_${year}1230_1M_histmth.nc $file
     136  echo $year>>year.txt
     137  sed -i -e 's/_/ /' year.txt
     138  year1=`less year.txt | awk '{print $1}'`
     139  year2=`less year.txt | awk '{print $2}'`
     140  ln -s ${simdir}/ATM/Output/MO/${ss}_${year1}0101_${year2}1230_1M_histmth.nc $file
    137141 fi
    138142fi
Note: See TracChangeset for help on using the changeset viewer.