| 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 |
|---|
| 10 | DODSDIR=/thredds/ipsl |
|---|
| 11 | dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds |
|---|
| 12 | HTML00=http://${dthredds}/$login |
|---|
| 13 | machine=ciclad |
|---|
| 14 | fi |
|---|
| 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 |
|---|
| 21 | if [ ${hostname:0:5} = camel ] ; then |
|---|
| 22 | DODSDIR=/thredds/ipsl |
|---|
| 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/AXE3.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 3: Nuages et rayonnement </h1> |
|---|
| 47 | |
|---|
| 48 | <hr> |
|---|
| 49 | Responsable : Ionela Musat <br> |
|---|
| 50 | musat@lmd.jussieu.fr <br> |
|---|
| 51 | Liste de diffusion : lmdz_nuages@mailhost.lmd.jussieu.fr |
|---|
| 52 | |
|---|
| 53 | <h2> Moyennes zonales </h2> |
|---|
| 54 | |
|---|
| 55 | <h3> <a href="$HTML/ZON/YEAR/index.html"> Moyennes zonales YEAR </a> </h3> |
|---|
| 56 | |
|---|
| 57 | <h3> <a href="$HTML/ZON/JJA/index.html"> Moyennes zonales JJA </a> </h3> |
|---|
| 58 | |
|---|
| 59 | <h3> <a href="$HTML/ZON/DJF/index.html"> Moyennes zonales DJF </a> </h3> |
|---|
| 60 | |
|---|
| 61 | <h3> <a href="$HTML/AMMACROSS/JJAS/index.html"> Moyennes zonales AMMACROSS JJAS </a> </h3> |
|---|
| 62 | |
|---|
| 63 | <h2> Histogram Reflectance - Cloud Fraction </h2> |
|---|
| 64 | |
|---|
| 65 | <h3> <a href="$HTML/AXE3/ReflCld/index.html"> Histogram 2D Reflectance vs Cloud Fraction </a> </h3> |
|---|
| 66 | |
|---|
| 67 | eod |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | # Concaténer les figures sur une page |
|---|
| 71 | # Création de l'argument pour l'appel de concat_html.sh: |
|---|
| 72 | # Prendre la liste des chemins, isoler les noms de fichiers, enlever |
|---|
| 73 | # l'extension, faire une ligne, enlever la dernière virgule |
|---|
| 74 | |
|---|
| 75 | echo $concatarg |
|---|
| 76 | |
|---|
| 77 | for SEAS in YEAR JJA DJF ; do |
|---|
| 78 | cat $entetef >| $COMP_D/ZON/$SEAS/index.html |
|---|
| 79 | concatarg=`ls $COMP_D/ZON/$SEAS/*.png | sed "s/.*\///" | \ |
|---|
| 80 | sed "s/\.png//" | awk '{printf "%s,",$0}' | sed 's/\(.*\),/\1/'` |
|---|
| 81 | $local/concat_html.sh $COMP_D/ZON/$SEAS "Moyennes zonales" $concatarg 3 >> $COMP_D/ZON/$SEAS/index.html |
|---|
| 82 | cat $entetef >| $COMP_D/AXE3/ReflCld/index.html |
|---|
| 83 | done |
|---|
| 84 | |
|---|
| 85 | concatarg=`ls $COMP_D/AMMACROSS/JJAS/*.png | sed "s/.*\///" | \ |
|---|
| 86 | sed "s/\.png//" | awk '{printf "%s,",$0}' | sed 's/\(.*\),/\1/'` |
|---|
| 87 | cat $entetef >| $COMP_D/AMMACROSS/JJAS/index.html |
|---|
| 88 | $local//concat_html.sh $COMP_D/AMMACROSS/JJAS "Moyennes zonales" $concatarg 3 >> $COMP_D/AMMACROSS/JJAS/index.html |
|---|
| 89 | |
|---|
| 90 | #Diagno Refl vs Cld |
|---|
| 91 | #AI janvier 2017 |
|---|
| 92 | |
|---|
| 93 | # Concaténer les figures sur une page |
|---|
| 94 | # Création de l'argument pour l'appel de concat_html.sh: |
|---|
| 95 | # Prendre la liste des chemins, isoler les noms de fichiers, enlever |
|---|
| 96 | # l'extension, faire une ligne, enlever la dernière virgule |
|---|
| 97 | concatarg=`ls $COMP_D/AXE3/ReflCld/*.png | sed "s/.*\///" | \ |
|---|
| 98 | sed "s/\.png//" | awk '{printf "%s,",$0}' | sed 's/\(.*\),/\1/'` |
|---|
| 99 | |
|---|
| 100 | echo $concatarg |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | cat $entetef >| $COMP_D/AXE3/ReflCld/index.html |
|---|
| 104 | echo "$local/concat_html.sh $COMP_D/AXE3/ReflCld "Histogram Refl vs Cld" $concatarg 4 >> $COMP_D/AXE3/ReflCld/index.html" |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | |
|---|
| 108 | #################################################################### |
|---|
| 109 | ### REG ############################################################ |
|---|
| 110 | #################################################################### |
|---|
| 111 | |
|---|
| 112 | cat <<eod>> $compf |
|---|
| 113 | |
|---|
| 114 | <h2> Diagnostiques Classifications en regimes </h2> |
|---|
| 115 | <h3> <a href="$HTML/REG/index.html"> Regimes dynamiques tropicaux </a> </h3> |
|---|
| 116 | |
|---|
| 117 | <li><a href="$HTML/1D.html">SCM(1D)</a> |
|---|
| 118 | |
|---|
| 119 | </body> |
|---|
| 120 | </html> |
|---|
| 121 | eod |
|---|
| 122 | |
|---|
| 123 | |
|---|
| 124 | # Concaténer les figures sur une page |
|---|
| 125 | # Création de l'argument pour l'appel de concat_html.sh: |
|---|
| 126 | # Prendre la liste des chemins, isoler les noms de fichiers, enlever |
|---|
| 127 | # l'extension, faire une ligne, enlever la dernière virgule |
|---|
| 128 | concatarg=`ls $COMP_D/REG/*.png | sed "s/.*\///" | \ |
|---|
| 129 | sed "s/\.png//" | awk '{printf "%s,",$0}' | sed 's/\(.*\),/\1/'` |
|---|
| 130 | |
|---|
| 131 | echo $concatarg |
|---|
| 132 | #exit |
|---|
| 133 | |
|---|
| 134 | cat $entetef >| $COMP_D/REG/index.html |
|---|
| 135 | $local/concat_html.sh $COMP_D/REG "Regimes dynamiques tropicaux" $concatarg 3 >> $COMP_D/REG/index.html |
|---|
| 136 | |
|---|
| 137 | echo $compf | sed -e 's:/thredds/ipsl/:http\://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/:' |
|---|