source: BOL/Multi_atlas/html_axe4.sh @ 4697

Last change on this file since 4697 was 4697, checked in by musat, 9 months ago

Enlevement tests "Mise en attente" de scripts cmor et season
pour permettre de faire tourner plusieurs multi-atlas simultanément
Ajout variable rsdt dans les moyennes zonales
Nettoyage env_Multi_atlas
Adaptation a spirit des diagnostics de l'axe2 de MB
Correction html axe4
IonelaMusat?

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1#!/bin/bash
2
3source ~/env_Multi_atlas.sh
4
5comp=$1
6
7local=`pwd -P`
8
9if [ 1 == 0 ]; then
10login=`whoami`
11hostname=`hostname`
12if [ ${hostname:0:5} = cicla ] ; then
13DODSDIR=/thredds/ipsl
14dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
15HTML00=http://${dthredds}/$login
16machine=ciclad
17fi
18if [ ${hostname:0:5} = spiri ] ; then
19DODSDIR=/thredds/ipsl
20dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
21HTML00=http://${dthredds}/$login
22machine=spirit
23fi
24if [ ${hostname:0:5} = camel ] ; then
25DODSDIR=/thredds/ipsl
26fi
27if [ ${hostname:0:5} = irene ] ; then
28DODSDIR=
29fi
30if [ ${hostname:0:5} = jean- ] ; then
31DODSDIR=
32fi
33fi
34
35COMP_D=$DODSDIR/$login/lmdz/MultiSimu/$comp
36entetef=$COMP_D/entete.html
37
38#############################################################################
39echo YEARS $years
40#############################################################################
41
42compf=$COMP_D/AXE4.html
43HTML=$HTML00/lmdz/MultiSimu/$comp
44
45
46
47cat $entetef > $compf
48
49echo '<hr>' >> $compf
50
51cat <<eod>> $compf
52<h1> Axe 4: climats polaires </h1>
53
54<hr>
55Responsable : Jean-Baptiste Madeleine  <br>
56 jmadeleine@lmd.jussieu.fr <br>
57Liste de diffusion : lmdz_poles@lmd.jussieu.fr
58
59<h2> <a href="$HTML/AXE4/PRECIP/index.html"> Précipitation Antarctique (CloudSat) </a> </h2>
60
61<h2> <a href="$HTML/AXE4/TZ1DC/index.html"> Température 1er niveau Dôme C (CALVA) </a> </h2>
62
63</body>
64</html>
65eod
66
67# CREATION DE LA PAGE+PDF: PRECIP
68# -------------------------------
69
70cat $entetef >| $COMP_D/AXE4/PRECIP/index.html
71
72# Concaténer les figures sur une page
73# Création de l'argument pour l'appel de concat_html.sh:
74# Prendre la liste des chemins, isoler les noms de fichiers, enlever
75# l'extension, faire une ligne, enlever la dernière virgule
76# mais ne marche pas vraiment
77#concatarg=`ls $COMP_D/AXE4/PRECIP/PNG/*.png | sed "s/.*\///" | \
78#  sed "s/\.png//" | awk '{printf "%s,",$0}' | sed 's/\(.*\),/\1/'`
79# plus manuel :
80concatarg="" ; virg="" ; for i in `ls $COMP_D/AXE4/PRECIP/PNG/*.png | sed "s/.*\///" |   sed "s/\.png//"` ; do concatarg="$concatarg$virg$i" ; virg="," ; done
81
82
83./concat_html.sh $COMP_D/AXE4/PRECIP/PNG "Precip CloudSat" $concatarg 4 >> $COMP_D/AXE4/PRECIP/index.html
84
85# CREATION DE LA PAGE+PDF: TZ1DC
86# ------------------------------
87
88cat $entetef >| $COMP_D/AXE4/TZ1DC/index.html
89
90# Concaténer les figures sur une page
91# Création de l'argument pour l'appel de concat_html.sh:
92# Prendre la liste des chemins, isoler les noms de fichiers, enlever
93# l'extension, faire une ligne, enlever la dernière virgule
94#concatarg=`ls $COMP_D/AXE4/TZ1DC/PNG/*.png | sed "s/.*\///" | \
95#  sed "s/\.png//" | awk '{printf "%s,",$0}' | sed 's/\(.*\),/\1/'`
96
97
98liste=`for s in \`awk ' { print $1"_"$2 } ' $COMP_D/def.txt\`; do sb=\`echo $s\` ; ( cd $COMP_D/AXE4/TZ1DC/PNG/ ; ls t*${sb}*png ; ls [pL]*${s}*png ; ls wi*${sb}*png ) ; done`
99#liste=`for s in \`awk ' { print $1"_"$2 } ' $COMP_D/def.txt\`; do sb=\`echo $s | sed -e 's/\./-/g'\` ; ( cd $COMP_D/AXE4/TZ1DC/PNG/ ; ls t*${sb}*png ; ls [pL]*${s}*png ; ls wi*${sb}*png ) ; done`
100
101echo LISTE $liste
102concatarg=`echo $liste | sed -e 's/ /,/g' -e 's/.png//g'`
103echo $concatarg 
104
105mkdir -p $COMP_D/AXE4/TZ1DC/PNG/POUB ; mv $COMP_D/AXE4/TZ1DC/PNG/tso*png $COMP_D/AXE4/TZ1DC/PNG/POUB
106./concat_html.sh $COMP_D/AXE4/TZ1DC/PNG "Tz1 dome C" $concatarg 4  >> $COMP_D/AXE4/TZ1DC/index.html
107
108
109echo $compf | sed -e 's:/thredds/ipsl/:http\://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/:'
110
Note: See TracBrowser for help on using the repository browser.