source: BOL/Multi_atlas/html_axe1.sh @ 4331

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