source: BOL/Multi_atlas/html_axe1.sh @ 3785

Last change on this file since 3785 was 3737, checked in by idelkadi, 4 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.
Modifications following changes and simplification of access from CICLAD / ClimServ?? to the different "thredds"

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