[3684] | 1 | #!/bin/bash |
---|
| 2 | set -vx |
---|
| 3 | |
---|
| 4 | comp=$1 |
---|
| 5 | |
---|
| 6 | local=`pwd -P` |
---|
| 7 | login=`whoami` |
---|
| 8 | hostname=`hostname` |
---|
| 9 | if [ ${hostname:0:5} = cicla ] ; then |
---|
[3882] | 10 | DODSDIR=/thredds/ipsl |
---|
[4307] | 11 | dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds |
---|
| 12 | HTML00=http://${dthredds}/$login |
---|
[3684] | 13 | machine=ciclad |
---|
| 14 | fi |
---|
[4307] | 15 | if [ ${hostname:0:5} = spiri ] ; then |
---|
| 16 | DODSDIR=/thredds/ipsl |
---|
| 17 | dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds |
---|
| 18 | HTML00=http://${dthredds}/$login |
---|
| 19 | machine=spirit |
---|
| 20 | fi |
---|
[3684] | 21 | if [ ${hostname:0:5} = camel ] ; then |
---|
[3882] | 22 | DODSDIR=/thredds/ipsl |
---|
[3684] | 23 | fi |
---|
| 24 | if [ ${hostname:0:5} = irene ] ; then |
---|
| 25 | DODSDIR= |
---|
| 26 | fi |
---|
| 27 | if [ ${hostname:0:5} = jean- ] ; then |
---|
| 28 | DODSDIR= |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | COMP_D=$DODSDIR/$login/lmdz/MultiSimu/$comp |
---|
| 32 | entetef=$COMP_D/entete.html |
---|
| 33 | |
---|
| 34 | ############################################################################# |
---|
| 35 | #echo YEARS $years |
---|
| 36 | ############################################################################# |
---|
| 37 | |
---|
| 38 | compf=$COMP_D/AXE1.html |
---|
| 39 | HTML=$HTML00/lmdz/MultiSimu/$comp |
---|
| 40 | |
---|
| 41 | cat $entetef > $compf |
---|
| 42 | |
---|
| 43 | echo '<hr>' >> $compf |
---|
| 44 | |
---|
| 45 | cat <<eod>> $compf |
---|
| 46 | <h1> Axe 1: Surface Continentale </h1> |
---|
| 47 | |
---|
| 48 | <hr> |
---|
| 49 | Responsable : Frédérique Chéruy <br> |
---|
| 50 | cheruy@lmd.jussieu.fr <br> |
---|
| 51 | Liste 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 | |
---|
| 88 | eod |
---|
| 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 | |
---|
| 96 | for sim in lmdz obs biais ; do |
---|
| 97 | for OP in MAX MIN ; do |
---|
| 98 | for SEAS in JJA DJF ; do |
---|
| 99 | cat $entetef >| $COMP_D/AXE1/index.html |
---|
| 100 | concatarg=`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 |
---|
| 103 | done |
---|
| 104 | done |
---|
| 105 | done |
---|
| 106 | |
---|
| 107 | # A REFAIRE |
---|
[4307] | 108 | echo $compf | sed -e 's:/thredds/ipsl/:http\://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/:' |
---|
[3684] | 109 | |
---|