source: BOL/Multi_atlas/html_axe4.sh @ 4307

Last change on this file since 4307 was 4307, checked in by musat, 20 months ago

Fusion entre la version commune (compte fabric) et la version perso
du multi-atlas incluant

  • la fiabilisation de la realisation des cartes
  • la correction des coupes (latitude,altitude) pour les biais
  • l'ajout d'une option pour des multi-atlas par rapport a une simulation de reference
  • l'ajout d'options pour un multi-atlas regional
  • la mise a jour des thredds (repertoire & html) pour ciclad

IonelaMusat?

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