source: BOL/Multi_atlas/html_axe4.sh @ 4221

Last change on this file since 4221 was 3882, checked in by musat, 3 years ago

Changements PATHS ciclad, runs.txt et sed HTML
Ajout possibilite acces simulations sur l espace "SE" dans cmor.sh
Ajout acces OBS a partir de l espace fabric multi_ZONE.sh
IM

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