source: BOL/Multi_atlas/html_axe1.sh

Last change on this file was 4342, checked in by musat, 19 months ago

Inclut environnement spirit et dernieres corrections (3/3)
IonelaMusat?

  • Property svn:executable set to *
File size: 3.2 KB
Line 
1#!/bin/bash
2set -vx
3
4source ~/env_Multi_atlas.sh
5
6comp=$1
7
8local=`pwd -P`
9
10if [ 1 == 0 ]; then
11login=`whoami`
12hostname=`hostname`
13if [ ${hostname:0:5} = cicla ] ; then
14DODSDIR=/thredds/ipsl
15dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
16HTML00=http://${dthredds}/$login
17machine=ciclad
18fi
19if [ ${hostname:0:5} = spiri ] ; then
20DODSDIR=/thredds/ipsl
21dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
22HTML00=http://${dthredds}/$login
23machine=spirit
24fi
25if [ ${hostname:0:5} = camel ] ; then
26DODSDIR=/thredds/ipsl
27fi
28if [ ${hostname:0:5} = irene ] ; then
29DODSDIR=
30fi
31if [ ${hostname:0:5} = jean- ] ; then
32DODSDIR=
33fi
34fi
35
36COMP_D=$DODSDIR/$login/lmdz/MultiSimu/$comp
37entetef=$COMP_D/entete.html
38
39#############################################################################
40#echo YEARS $years
41#############################################################################
42
43compf=$COMP_D/AXE1.html
44HTML=$HTML00/lmdz/MultiSimu/$comp
45
46cat $entetef > $compf
47
48echo '<hr>' >> $compf
49
50cat <<eod>> $compf
51<h1> Axe 1: Surface Continentale </h1>
52
53<hr>
54Responsable : Frédérique Chéruy   <br>
55 cheruy@lmd.jussieu.fr <br>
56Liste de diffusion : lmdz_continent@lmd.jussieu.fr
57
58<h2> EXTREMA  diurne lmdz  </h2>
59
60<h3> <a href="$HTML/AXE1/JJA/MAX/lmdz/index.html"> Maximum journalier JJA </a> </h3>
61
62<h3> <a href="$HTML/AXE1/JJA/MIN/lmdz/index.html"> Minima journalier JJA </a> </h3>
63
64<h3> <a href="$HTML/AXE1/DJF/MAX/lmdz/index.html"> Maximum journalier DJF </a> </h3>
65
66<h3> <a href="$HTML/AXE1/DJF/MIN/lmdz/index.html"> Minima journalier  DJF </a> </h3>
67
68<h2> EXTREMA  diurne obs </h2>
69
70<h3> <a href="$HTML/AXE1/JJA/MAX/obs/index.html"> Maximum journalier JJA </a> </h3>
71
72<h3> <a href="$HTML/AXE1/JJA/MIN/obs/index.html"> Minima journalier JJA </a> </h3>
73
74<h3> <a href="$HTML/AXE1/DJF/MAX/obs/index.html"> Maximum journalier DJF </a> </h3>
75
76<h3> <a href="$HTML/AXE1/DJF/MAX/obs/index.html"> Minima journalier DJF </a> </h3>
77
78
79<h2> BIAIS EXTREMA DIURNE OBS  </h2>
80
81<h3> <a href="$HTML/AXE1/JJA/MAX/biais/index.html"> Biais du Maximum journalier JJA lmdz-CRU </a> </h3>
82
83<h3> <a href="$HTML/AXE1/JJA/MIN/biais/index.html"> Biais du Minimum journalier JJA lmdz-CRU </a> </h3>
84
85<h3> <a href="$HTML/AXE1/DJF/MAX/biais/index.html"> Biais du Maximum journalier DJF lmdz-CRU </a> </h3>
86
87<h3> <a href="$HTML/AXE1/DJF/MIN/biais/index.html"> Biais du Minimum journalier DJF lmdz-CRU </a> </h3>
88
89<h2> River discharge  </h2>
90 
91<h3> <a href="$HTML/AXE1/River/index.html"> River discharge </a> </h3>
92
93eod
94
95
96# Concaténer les figures sur une page
97# Création de l'argument pour l'appel de concat_html.sh:
98# Prendre la liste des chemins, isoler les noms de fichiers, enlever
99# l'extension, faire une ligne, enlever la dernière virgule
100
101for sim    in lmdz obs biais ; do
102for OP    in MAX MIN ; do
103for SEAS in  JJA DJF ; do
104cat $entetef >| $COMP_D/AXE1/index.html
105concatarg=`ls $COMP_D/AXE1/$SEAS/$OP/$sim/*.png | sed "s/.*\///" | \
106  sed "s/\.png//" | awk '{printf "%s,",$0}' | sed 's/\(.*\),/\1/'`
107$local/concat_html.sh $COMP_D/AXE1/$SEAS/$OP/$sim "extrema journaliers " $concatarg 3 >> $COMP_D/AXE1/$SEAS/$OP/$sim/index.html
108done
109done
110done
111
112# A REFAIRE
113echo $compf | sed -e 's:/thredds/ipsl/:http\://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/:'
114
Note: See TracBrowser for help on using the repository browser.