source: BOL/Multi_atlas/atlas/mis_a_jour.sh @ 5272

Last change on this file since 5272 was 3684, checked in by idelkadi, 5 years ago

Repository under svn of a first version of Multiatlas diagnostics for LMDZ. This version is adapted to be able to run a LMDZ multiatlas on an individual account on the ciclad machine of the IPSL. In this version, the parts to be modified are identified so as to subsequently adapt it to other machines.
This version is still under development.

  • Property svn:executable set to *
File size: 1.1 KB
RevLine 
[3684]1#!/bin/bash
2
3# Recuperation de la liste des atlas existants
4
5local=`pwd`
6
7for comp in T0 T0F TT CPLtest T0A CPL5to6 CPLV5.3to5 Guides5.3et5 V5.4 ; do
8
9COMP_D=/prodigfs/ipslfs/http/dods/web/html/fabric/lmdz/MultiSimu/$comp
10cd $COMP_D/ATLAS
11
12ref=`awk ' { print $1"_"$2 } ' ../def.txt | head -1`
13echo REF F F  F  FF  FF $ref
14pwd
15
16for f in *${ref}* ; do  line=`echo $f | sed -e 's/.html//' -e 's/_/ /g'` ; proj=`echo $line | awk ' { print $2 } '` ; seas=`echo $line | awk ' { print $3 }' ` ; vars="" ; virg="" ; for var in `grep 'LEFT.*.(' $f | cut -d\( -f2 | cut -d\) -f1` ; do vars="$vars$virg$var" ; virg="," ; done ; echo $seas $proj $vars ; done > ../atlas-def
17
18for f in *${ref}* ; do  line=`echo $f | sed -e 's/.html//' -e 's/_/ /g'` ; proj=`echo $line | awk ' { print $2 } '` ; seas=`echo $line | awk ' { print $3 }' ` ; vars="" ; virg="" ; for var in `grep 'LEFT.*.(' $f | cut -d\( -f2 | cut -d\) -f1` ; do vars="$vars$virg$var" ; virg="," ; done ; for sim in `awk ' { print $1"_"$2 } ' ../def.txt` ; do echo ${sim}+${seas}+${proj}+$vars ; done ; done > atlas_OK
19
20cd $local
21
22done
Note: See TracBrowser for help on using the repository browser.