Fichier noaa...

Forum dédié aux différents paramétrages de WsWin, et il y en a…
alain78
participation 3
participation 3
Messages : 285
Enregistré le : 18 mai 2008, 18:10

Re: Fichier noaa...

Message par alain78 » 20 juin 2013, 17:23

webmaster a écrit :Bonjour,
alain78 a écrit :ok merci .
j'ai bien suivi le fichier d'aide
mais lorsque je lance localhost/Noaa/climatoa.php

je trouve en début de page des warnings ....de ce type ...
Il doit te manquer la constante définissant l'année où débutent tes mesures.
bin non ...
j'ai bien l'année où débutent les mesures :

dans le script "climatoa.php"
<?php
################################################
#Variables dŽfinissant l'annŽe ˆ partir de laquelle les rapports noaaAAAA.txt sont disponibles
################################################

$anneedebut = 2007;
################################################

$yearstr=$_GET['annee'];
$today = getdate();

if ($yearstr=='') {
$yearstr = str_pad($today[year], 4, "0", STR_PAD_LEFT);

}


et dans l'autre script "climatom.php" à partir du mois d'octobre 2007 ...date à laquelle je commence à avoir des mesures..et donc des fichiers noaa...

<?php

################################################
#Variables dŽfinissant le mois et annŽe ˆ partir duquel les rapporst noaaAAAMM.txt sont disponibles
################################################
$moisdebut = 10;
$anneedebut = 2007;



$yearstr=$_GET['annee'];
$monthstr=$_GET['mois'];
$today = getdate();

$disablenext = '';
$disableprev = '';
Station météo Davis Vantage Pro 2

alain78
participation 3
participation 3
Messages : 285
Enregistré le : 18 mai 2008, 18:10

Re: Fichier noaa...

Message par alain78 » 20 juin 2013, 22:11

alain78 a écrit :ok merci .
j'ai bien suivi le fichier d'aide
mais lorsque je lance localhost/Noaa/climatoa.php

je trouve en début de page des warnings ....de ce type ...

Image
ces warning ne proviennent-ils pas de ma version apache et php utilisées .?
php 5.3.10
apache 2.2.9
Station météo Davis Vantage Pro 2

Tudgur
Participation 6
Participation 6
Messages : 1770
Enregistré le : 13 mai 2007, 16:47
Localisation : 29880 Plouguerneau
Contact :

Re: Fichier noaa...

Message par Tudgur » 21 juin 2013, 07:01

webmaster a écrit : en omettant de retirer le "de"
On ne fait pas d'homme de lettres sans casser de... et en le privant d'r
OK, je sors !
Cordialement.

Tudgur
http://meteo-plouguerneau.fr" onclick="window.open(this.href);return false;

alain78
participation 3
participation 3
Messages : 285
Enregistré le : 18 mai 2008, 18:10

Re: Fichier noaa...

Message par alain78 » 21 juin 2013, 17:24

personne pour m'aider ...........
Station météo Davis Vantage Pro 2

mm91
Participation 6
Participation 6
Messages : 2581
Enregistré le : 31 mars 2007, 07:46
Localisation : 25 Km au sud-ouest de Paris FRANCE
Contact :

Re: Fichier noaa...

Message par mm91 » 21 juin 2013, 18:07

Tudgur a écrit : ........
OK, je sors !
alain78 a écrit :personne pour m'aider ...........
ben non puisque Tudgur est sorti ! :grin:
Michel
La Crosse WS2300 modifiée (pluvio, abri ventilé, mesure d'ensoleillement), Wswin32, Watchdog.
mon site météo

Avatar du membre
webmaster
Site Admin
Site Admin
Messages : 2611
Enregistré le : 12 déc. 2006, 20:54
Localisation : Rieux 51 FRANCE
Contact :

Re: Fichier noaa...

Message par webmaster » 21 juin 2013, 19:37

Bon et bien je reviens !

Ligne 21 et 22 remplacer

Code : Tout sélectionner

if ($nextyear==$today[year]+1) {
$nextyear = $today[year];
Par

Code : Tout sélectionner

if ($nextyear==$today['year']+1) {
$nextyear = $today['year'];
Cordialement

Rieux

alain78
participation 3
participation 3
Messages : 285
Enregistré le : 18 mai 2008, 18:10

Re: Fichier noaa...

Message par alain78 » 21 juin 2013, 20:55

tjrs les messages .....
Station météo Davis Vantage Pro 2

Avatar du membre
webmaster
Site Admin
Site Admin
Messages : 2611
Enregistré le : 12 déc. 2006, 20:54
Localisation : Rieux 51 FRANCE
Contact :

Re: Fichier noaa...

Message par webmaster » 21 juin 2013, 21:13

Le même message pour la ligne 21 ?

Tu as quel type de station, as-tu besoin des mesures solaires ?
Cordialement

Rieux

alain78
participation 3
participation 3
Messages : 285
Enregistré le : 18 mai 2008, 18:10

Re: Fichier noaa...

Message par alain78 » 21 juin 2013, 21:33

j'ai une vantage pro2 et pas besoin des mesures solaires

plus de message pour la ligne 21
Station météo Davis Vantage Pro 2

Avatar du membre
webmaster
Site Admin
Site Admin
Messages : 2611
Enregistré le : 12 déc. 2006, 20:54
Localisation : Rieux 51 FRANCE
Contact :

Re: Fichier noaa...

Message par webmaster » 21 juin 2013, 22:38

Essaie avec le code que je donne dans le post sur le même sujet, mais répond ici ensuite.
Cordialement

Rieux

alain78
participation 3
participation 3
Messages : 285
Enregistré le : 18 mai 2008, 18:10

Re: Fichier noaa...

Message par alain78 » 22 juin 2013, 09:00

bin j'ai fait avec le code que tu m'as donné soit mettre des ' ' entre YEAR
<?php
################################################
#Variables dŽfinissant l'annŽe ˆ partir de laquelle les rapports noaaAAAA.txt sont disponibles
################################################

$anneedebut = 2007;

################################################
$yearstr=$_GET['annee'];
$today = getdate();

if ($yearstr=='') {
$yearstr = str_pad($today['year'], 4, "0", STR_PAD_LEFT);

}

$nextyear = $yearstr+1;
$disablenext = '';
$disableprev = '';

if ($nextyear==$today['year']+1) {
$nextyear = $today['year'];
$disablenext="disabled='disabled'";
}

$prevyear = $yearstr-1;

Il est vrai que le warning pour la ligne 21 a disparu .. mais j'en ai d'autres ....
Station météo Davis Vantage Pro 2

Tudgur
Participation 6
Participation 6
Messages : 1770
Enregistré le : 13 mai 2007, 16:47
Localisation : 29880 Plouguerneau
Contact :

Re: Fichier noaa...

Message par Tudgur » 22 juin 2013, 11:19

Bonjour,

Mais tu n'as pas essayé avec le code donné ici par Rieux, comme il te l'a proposé...
Cordialement.

Tudgur
http://meteo-plouguerneau.fr" onclick="window.open(this.href);return false;

alain78
participation 3
participation 3
Messages : 285
Enregistré le : 18 mai 2008, 18:10

Re: Fichier noaa...

Message par alain78 » 22 juin 2013, 12:49

Tudgur a écrit :Bonjour,

Mais tu n'as pas essayé avec le code donné ici par Rieux, comme il te l'a proposé...
ok je n'avais pas compris son message ..

je viens d'essayer et pareil ...
Station météo Davis Vantage Pro 2

alain78
participation 3
participation 3
Messages : 285
Enregistré le : 18 mai 2008, 18:10

Re: Fichier noaa...

Message par alain78 » 22 juin 2013, 13:47

Afin de partir sur de bonnes bases , voici ce que j'ai:
j'ai installé wamserver sur le PC je possede dont la version PHP 5.3.10 et apache 2.2.9
l'icone WAMPSERVER est "vert" donc en ligne.
je n'ai fait qu'un site en local sur mon pc
pour visualiser je fais : localhost et je sélectionne le fichier PHP se trouvant dans la section "Vos Projets"

sous :C:\wamp\www\noaa
je retrouve les fichiers "noaaAAAA.txt' , les fichiers "noaaAAAAMM.txt"

j'ai également le script PHP dont voici le code:

Code : Tout sélectionner

<?php
################################################
#Variables définissant l'année ˆ partir de laquelle les rapports noaaAAAA.txt sont disponibles
################################################

$anneedebut = 2012;
################################################

$yearstr=$_GET['annee'];
$today = getdate();

if ($yearstr=='') {
  $yearstr = str_pad($today[year], 4, "0", STR_PAD_LEFT);
 
}

$nextyear = $yearstr+1;
$disablenext = '';
$disableprev = '';

if ($nextyear==$today['year']+1) {
$nextyear = $today['year'];
$disablenext="disabled='disabled'";
}

$prevyear = $yearstr-1;



if ($prevyear==$anneedebut-1)  {
$prevyear = $anneedebut;
$disableprev="disabled='disabled'";
}


$fichier="noaa".$yearstr.".txt";
$title="Relevés de l'annŽe en cours";
echo"
<head>
<title>Climatologie annuelle</title>
<script type='text/javascript'>

function donoaaprevyear()  {

var yearv='$prevyear'

mypath='climatoa.php?annee='+yearv

document.location.href=mypath
}

function moisnoaa()  {


mypath='climatom.php'

document.location.href=mypath
}

function donoaanextyear()  {
var yearv1='$nextyear'

mypath='climatoa.php?annee='+yearv1

document.location.href=mypath
}

</script>

</head>

"
;

$fp = fopen ("$fichier",'r');
$content = fread ($fp,filesize($fichier));

$separ_1 = explode("----------
",$content);
$separ_2 = explode("
----------",$separ_1[1]);
$table1 =$separ_2[0];
$total1 = $separ_1[2];

$separ_3 = explode("
----------",$separ_1[3]);
$table2 = $separ_3[0];
$total2 = $separ_1[4];
$separ_4 = explode("
----------",$separ_1[5]);
$table3 = $separ_4[0];
$total3 = $separ_1[6];
$separ_5 = explode("
----------",$separ_1[7]);
$table4 = $separ_5[0];
$total4 = $separ_1[8];
$linetitle= explode("
",$separ_1[0]);

$char = array (" ","W");
$newchar = array ("","O");

########################################
#Récupération des moyennes annuelles de temperature ##
########################################
$title1=trim($linetitle[0]);
$title2=trim($linetitle[2]);
$annee=$_GET['annee'];
$min1=$yearstr.'_1';
$min2=$yearstr.'_2';
$item_m = explode(",",$total1);
$meantemp_m = $item_m[1];
$lowtempmean_m = $item_m[2];
$lowtemp_m = $item_m[3];
$hourlowtemp_m = $item_m[4];
$monthlowtemp_m = $item_m[5];
$highttempmean_m = $item_m[6];
$highttemp_m = $item_m[7];
$hourhighttemp_m = $item_m[8];
$monthhighttemp_m = $item_m[9];
$icedays_m = $item_m[10];
$colddays_m = $item_m[11];
$cooldays_m = $item_m[12];
$summerdays_m = $item_m[13];
$heatdays_m = $item_m[14];



########################################
#Récupération des données journalieres##
########################################

$nb = substr_count ($table1, "
");

$ligne ="";
$color = array('#ffffff','#ffff00','#ff00ff','#ffffff');
$gel=0;
$fortgel=0;
$sansdegel=0;
$chaleur=0;
$canicule=0;
$pluie=0;
$pluie_1=0;
$pluie_5=0;
$pluie_10=0;
$maxrain=0;
$replow=array(' ',' ');
$rephight=array(' ',' ');
$repmean=array(' ',' ');


$line = explode("
",$table1);

for ($i=0; $i<$nb+1; $i++)

{
#selection ligne

$item = explode(",",$line[$i]);
#séparation et classement des valeurs
$mois = $item[0];
$meantemp = $item[1];
$lowtempmean = $item[2];
$lowtemp = $item[3];
$hourlowtemp = $item[4];
$daylowtemp = $item[5];
$highttempmean = $item[6];
$highttemp = $item[7];
$hourhighttemp = $item[8];
$dayhighttemp = $item[9];
$icedays = $item[10];
$colddays = $item[11];
$cooldays = $item[12];
$summerdays = $item[13];
$heatdays = $item[14];


$tempe = array($meantemp,$lowtempmean,$lowtemp,$highttempmean,$highttemp);
$color = array('#ff0000','#ffff00','#ff00ff','#ff00ff','#ffff00');
$white = array (0,0,0,0,0);
for ($c=0; $c<count($tempe); $c++)

{

#colorisation température
if($tempe[$c] <= '-25') {$color[$c]='#003366';}
elseif($tempe[$c] > '-25' && $tempe[$c] <= '-20')  {$color[$c]='#003399'; $white[$c]=1;}
elseif($tempe[$c] > '-20' && $tempe[$c] <= '-15')  {$color[$c]='#0000cc'; $white[$c]=1;}
elseif($tempe[$c] > '-15' && $tempe[$c] <= '-10')  {$color[$c]='#0000ff'; $white[$c]=1;}
elseif($tempe[$c] > '-10' && $tempe[$c] <= '-5')  {$color[$c]='#0099ff'; $white[$c]=0;}
elseif($tempe[$c] > '-5' && $tempe[$c] <= '0')  {$color[$c]='#66ffff'; $white[$c]=0; }
elseif($tempe[$c] > '0' && $tempe[$c] <= '5')  {$color[$c]='#66ff99'; $white[$c]=0; }
elseif($tempe[$c] > '5' && $tempe[$c] <= '10')  {$color[$c]='#66ff00'; $white[$c]=0;}
elseif($tempe[$c] > '10' && $tempe[$c] <= '15')  {$color[$c]='#ffff00'; $white[$c]=0; }
elseif($tempe[$c] > '15' && $tempe[$c] <= '20')  {$color[$c]='#ffcc00'; $white[$c]=0; }
elseif($tempe[$c] > '20' && $tempe[$c] <= '25')  {$color[$c]='#ff9900'; $white[$c]=0; }
elseif($tempe[$c] > '25' && $tempe[$c] <= '30')  {$color[$c]='#ff6600'; $white[$c]=0; }
elseif($tempe[$c] > '30' && $tempe[$c] <= '35')  {$color[$c]='#ff3300'; $white[$c]=0; }
elseif($tempe[$c] > '35' && $tempe[$c] <= '40')  {$color[$c]='#cc0000'; $white[$c]=0;}
elseif($tempe[$c] > '40')  {$color[$c]='#660000'; $white[$c]=0;}
else {$color[$c]='#ff00ff';}


}

#repère des extremes
$replow=array('','');
$rephight=array('','');
$repmean=array('','');
$colortext=array('','','','','','');

for ($c=0; $c<5; $c++)
{
   if ($white[$c]==1) {$colortext[$c]='color="white"';}
   else {$colortext[$c]='';}
}

if ($lowtemp == $lowtemp_m) {$replow = array("<b>","</b></font>");}
if ($highttemp == $highttemp_m) {$rephight = array("<b>","</b></font>");}
switch($mois)
  {
  case "janvier":
    $monthnum="01";
    break;
  case "février":
    $monthnum="02";
    break;
  case "mars":
    $monthnum="03";
    break;
  case "avril":
    $monthnum="04";
    break;
  case "mai":
    $monthnum="05";
    break;
  case "juin":
    $monthnum="06";
    break;
  case "juillet":
    $monthnum="07";
    break;
  case "août":
    $monthnum="08";
    break;
  case "septembre":
    $monthnum="09";
    break;
  case "octobre":
    $monthnum="10";
    break;
  case "novembre":
    $monthnum="11";
    break;
  case "décembre":
    $monthnum="12";
    break;
                  }

#incrémentation du tableau
if ($meantemp != ""){

$ligne .= "<tr >
              <td  align='center'><font color='white'><a href='climatom.php?annee=$yearstr&mois=$monthnum' target='_self'>$mois</a></td>
              <td  bgcolor='$color[2]' width='150' align='center'><font $colortext[2]> $replow[0] $lowtemp °C le $daylowtemp à $hourlowtemp $replow[1] </td>
              <td  bgcolor='$color[1]' width='65' align='center'><font $colortext[1]> $lowtempmean °C </td>
             <td  bgcolor='$color[0]' width='65' align='center'><font $colortext[0]> $meantemp °C </td>
             <td  bgcolor='$color[3]' width='65' align='center' ><font $colortext[3]> $highttempmean °C </td>
              <td  bgcolor='$color[4]' width='150' align='center'><font $colortext[4]>$rephight[0] $highttemp °C le $dayhighttemp à $hourhighttemp $rephight[1]</td>
             <td  width='55' align='center'><font> $icedays</td>
             <td  width='55' align='center'><font> $colddays</td>
             <td  width='55' align='center'><font> $heatdays</td>
             </tr>
              ";}

}
$ligne2="";
########################################
#Récupération desnormales temp ##
########################################
$item_m = explode(",",$total2);
$temp_m = $item_m[1];
$normtemp_m = $item_m[2];
$tempdev_m = $item_m[3];
$sun_m = $item_m[8];
$normsun_m = $item_m[9];
$ecartsun_m = $item_m[10];
$sunpou_m = $item_m[11];



$nb = substr_count ($table2, "
");
$line2 = explode("
",$table2);

for ($i=0; $i<$nb+1; $i++)

{
#selection ligne

$item = explode(",",$line2[$i]);
#séparation et classement des valeurs
$mois = $item[0];
$temp = $item[1];
$normtemp = $item[2];
$tempdev = $item[3];



$tempe = array($temp,$normtemp);


$color2 = array('#ff0000','#ffff00');
$color3 = array('#ff0000','#ffff00');
$white2 = array (0,0,0,0,0);
$white3 = array (0,0,0,0,0);
$color = array('#ff0000','#ffff00','#ff00ff','#ff00ff','#ffff00');
$white = array (0,0,0,0,0);
for ($c=0; $c<count($tempe); $c++)

{

#colorisation température
if($tempe[$c] <= '-25') {$color[$c]='#003366';}
elseif($tempe[$c] > '-25' && $tempe[$c] <= '-20')  {$color[$c]='#003399'; $white[$c]=1;}
elseif($tempe[$c] > '-20' && $tempe[$c] <= '-15')  {$color[$c]='#0000cc'; $white[$c]=1;}
elseif($tempe[$c] > '-15' && $tempe[$c] <= '-10')  {$color[$c]='#0000ff'; $white[$c]=1;}
elseif($tempe[$c] > '-10' && $tempe[$c] <= '-5')  {$color[$c]='#0099ff'; $white[$c]=0;}
elseif($tempe[$c] > '-5' && $tempe[$c] <= '0')  {$color[$c]='#66ffff'; $white[$c]=0; }
elseif($tempe[$c] > '0' && $tempe[$c] <= '5')  {$color[$c]='#66ff99'; $white[$c]=0; }
elseif($tempe[$c] > '5' && $tempe[$c] <= '10')  {$color[$c]='#66ff00'; $white[$c]=0;}
elseif($tempe[$c] > '10' && $tempe[$c] <= '15')  {$color[$c]='#ffff00'; $white[$c]=0; }
elseif($tempe[$c] > '15' && $tempe[$c] <= '20')  {$color[$c]='#ffcc00'; $white[$c]=0; }
elseif($tempe[$c] > '20' && $tempe[$c] <= '25')  {$color[$c]='#ff9900'; $white[$c]=0; }
elseif($tempe[$c] > '25' && $tempe[$c] <= '30')  {$color[$c]='#ff6600'; $white[$c]=0; }
elseif($tempe[$c] > '30' && $tempe[$c] <= '35')  {$color[$c]='#ff3300'; $white[$c]=0; }
elseif($tempe[$c] > '35' && $tempe[$c] <= '40')  {$color[$c]='#cc0000'; $white[$c]=0;}
elseif($tempe[$c] > '40')  {$color[$c]='#660000'; $white[$c]=0;}
else {$color[$c]='#ff00ff';}
}

#repère des extremes
$replow=array('','');
$rephight=array('','');
$repmean=array('','');
$colortext=array('','','','','','');

for ($c=0; $c<2; $c++)
{
   if ($white[$c]==1) {$colortext[$c]='color="white"';}
   else {$colortext[$c]='';}
   if ($white2[$c]==1) {$colortext2[$c]='color="white"';}
   else {$colortext2[$c]='';}
   if ($white3[$c]==1) {$colortext3[$c]='color="white"';}
   else {$colortext3[$c]='';}
}
if ($tempdev == 0) {$devcolor='';};
if($tempdev < 0) {$devcolor="bgcolor='#66ffff'";}
else {$devcolor="bgcolor='#ff6600'";};

switch($mois)
  {
  case "janvier":
    $monthnum="01";
    $lastday="31";
    break;
  case "février":
    $monthnum="02";
    $lastday="28";
    break;
  case "mars":
    $monthnum="03";
    $lastday="31";
    break;
  case "avril":
    $monthnum="04";
    $lastday="30";
    break;
  case "mai":
    $monthnum="05";
    $lastday="31";
    break;
  case "juin":
    $monthnum="06";
    $lastday="30";
    break;
  case "juillet":
    $monthnum="07";
    $lastday="31";
    break;
  case "août":
    $monthnum="08";
    $lastday="31";
    break;
  case "septembre":
    $monthnum="09";
    $lastday="30";
    break;
  case "octobre":
    $monthnum="10";
    $lastday="31";
    break;
  case "novembre":
    $monthnum="11";
    $lastday="30";
    break;
  case "décembre":
    $monthnum="12";
    $lastday="31";
    break;
                  }

#incrémentation du tableau
if ($temp != ""){

$ligne2 .= "<tr >
              <td  align='center'><font color='white'><a href='climatom.php?annee=$yearstr&mois=$monthnum' target='_self'>$mois</a></td>
              <td  bgcolor='$color[0]' width='65' align='center'><font $colortext[0]> $temp °C </td>
              <td  bgcolor='$color[1]' width='65' align='center'><font $colortext[1]> $normtemp °C </td>
              <td  $devcolor width='70' align='center'><font> $tempdev °C</td>
           </tr>

";}

}

$ligne3="";
########################################
#Récupération des moyennes annuelles de pluie ##
########################################
$item_m = explode(",",$total3);
$rain_m = $item_m[3];
$normrain_m = $item_m[1];
$raindev_m = $item_m[2];
$dayrain_m = $item_m[4];
$dayrain20_m = $item_m[6];
$rainpou_m = $item_m[7];

$nb = substr_count ($table3, "
");
$line3 = explode("
",$table3);

for ($i=0; $i<$nb+1; $i++)

{
#selection ligne

$item = explode(",",$line3[$i]);
#séparation et classement des valeurs
$mois = $item[0];
$normrain = $item[1];
$raindev = $item[2];
$rain = $item[3];
$dayrain = $item[4];
$dayrain2 = $item[5];
$dayrain20 = $item[6];
$rainpou = $item[7];


#colorisation pluie
if($rain > '0' && $rain < '20')  {$color[3]='#00fe96'; $white[3]=0;}
elseif($rain >= '20' && $rain < '40')  {$color[3]='#00fefe'; $white[3]=0;}
elseif($rain >= '40' && $rain < '60')  {$color[3]='#00c8fe'; $white[3]=0;}
elseif($rain >= '60' && $rain < '80')  {$color[3]='#0096fe'; $white[3]=0; }
elseif($rain >= '80' && $rain < '100')  {$color[3]='#0064fe'; $white[3]=1; }
elseif($rain >= '100' && $rain < '120')  {$color[3]='#3200fe'; $white[3]=1; }
elseif($rain >= '120' && $rain < '140')  {$color[3]='#6400fe'; $white[3]=1;}
elseif($rain >= '140' && $rain < '160')  {$color[3]='#9600fe'; $white[3]=1; }
elseif($rain >= '160' && $rain < '180')  {$color[3]='#c800fe'; $white[3]=1; }
elseif($rain >= '180')  {$color[]='#640064'; $white[3]=1;}
else {$color[3]='#ffffff'; $white[3]=0;}


#repère des extremes
$replow=array('','');
$rephight=array('','');
$repmean=array('','');
$colortext=array('','','','','','');


   if ($white[3]==1) {$colortext[3]='color="white"';}
   else {$colortext[3]='';}
if ($raindev == 0) {$devcolor='';};
if($raindev > 0) {$devcolor="bgcolor='#66ffff'";}
else {$devcolor="bgcolor='#ff6600'";}

switch(trim($mois))
  {
  case "janvier":
    $monthnum="01";
    break;
  case "février":
    $monthnum="02";
    break;
  case "mars":
    $monthnum="03";
    break;
  case "avril":
    $monthnum="04";
    break;
  case "mai":
    $monthnum="05";
    break;
  case "juin":
    $monthnum="06";
    break;
  case "juillet":
    $monthnum="07";
    break;
  case "août":
    $monthnum="08";
    break;
  case "septembre":
    $monthnum="09";
    break;
  case "octobre":
    $monthnum="10";
    break;
  case "novembre":
    $monthnum="11";
    break;
  case "décembre":
    $monthnum="12";
    break;
                  }

#incrémentation du tableau
if ($rain != ""){

$ligne3 .= "<tr >
              <td  align='center'><font color='white'><a href='climatom.php?annee=$yearstr&mois=$monthnum' target='_self'>$mois</a></td>
              <td  bgcolor='$color[3]' width='65' align='center'><font $colortext[3]> $rain mm </td>
              <td  width='65' align='center'><font> $dayrain</td>
             <td  width='65' align='center'><font>$dayrain20</td>
             <td  width='65' align='center'><font> $normrain mm</td>
             <td  $devcolor width='65' align='right'><font> $raindev mm</td>
             <td  $devcolor width='65' align='right'><font> $rainpou %</td>
           </tr>
              ";}

}
$ligne4="";
########################################
#Récupération des moyennes annuelles de vent ##
########################################
$item_m = explode(",",$total4);
$vent_m = $item_m[1];
$ventmax_m = $item_m[2];
$ventmaxday_m = $item_m[4];
$secteur_m = $item_m[8];
$secteur_m=trim($secteur_m);
$gustmax_m = $item_m[5];
$gustmaxday_m = $item_m[7];


$nb = substr_count ($table4, "
");
$line4 = explode("
",$table4);

for ($i=0; $i<$nb+1; $i++)

{
#selection ligne

$item = explode(",",$line4[$i]);
#séparation et classement des valeurs
$mois = $item[0];
$vent = $item[1];
$ventmax = $item[2];
$ventmaxday = $item[4];
$ventmaxhour = $item[3];
$secteur = $item[8];
$secteur = trim($secteur);
$gustmax = $item[5];
$gustmaxday = $item[7];
$gustmaxhour = $item[6];



#colorisation vent
if($vent < '10' )  {$color[0]='#ffffff';}
elseif($vent >= '10' && $vent < '20')  {$color[0]='#ebebeb'; $white[0]=0;}
elseif($vent >= '20' && $vent < '30')  {$color[0]='#d7d7d7'; $white[0]=0;}
elseif($vent >= '30' && $vent < '40')  {$color[0]='#c4c4c4'; $white[0]=0; }
elseif($vent >= '40' && $vent < '50')  {$color[0]='#afafaf'; $white[0]=0; }
elseif($vent >= '50' && $vent < '60')  {$color[0]='#AB8787'; $white[0]=0; }
elseif($vent >= '60' && $vent < '70')  {$color[0]='#D07676'; $white[0]=0;}
elseif($vent >= '70' )  {$color[0]='#ff0000'; $white[0]=0; }
else {$color[0]='#222222';}

if($ventmax < '10' )  {$color[1]='#ffffff';}
elseif($ventmax >= '10' && $ventmax < '20')  {$color[1]='#ebebeb'; $white[1]=0;}
elseif($ventmax >= '20' && $ventmax < '30')  {$color[1]='#d7d7d7'; $white[1]=0;}
elseif($ventmax >= '30' && $ventmax < '40')  {$color[1]='#c4c4c4'; $white[1]=0; }
elseif($ventmax >= '40' && $ventmax < '50')  {$color[1]='#afafaf'; $white[1]=0; }
elseif($ventmax >= '50' && $ventmax < '60')  {$color[1]='#AB8787'; $white[1]=0; }
elseif($ventmax >= '60' && $ventmax < '70')  {$color[1]='#D07676'; $white[1]=0;}
elseif($ventmax >= '70' )  {$color[1]='#ff0000'; $white[1]=0; }
else {$color[1]='#222222';}

if($gustmax < '10' )  {$color[2]='#ffffff';}
elseif($gustmax >= '10' && $gustmax < '20')  {$color[2]='#ebebeb'; $white[2]=0;}
elseif($gustmax >= '20' && $gustmax < '30')  {$color[2]='#d7d7d7'; $white[2]=0;}
elseif($gustmax >= '30' && $gustmax < '40')  {$color[2]='#c4c4c4'; $white[2]=0; }
elseif($gustmax >= '40' && $gustmax < '50')  {$color[2]='#afafaf'; $white[2]=0; }
elseif($gustmax >= '50' && $gustmax < '60')  {$color[2]='#AB8787'; $white[2]=0; }
elseif($gustmax >= '60' && $gustmax < '70')  {$color[2]='#D07676'; $white[2]=0;}
elseif($gustmax >= '70' )  {$color[2]='#ff0000'; $white[2]=0; }
else {$color[2]='#222222';}

#repère des extremes
$replow=array('','');
$rephight=array('','');
$repmean=array('','');
$colortext=array('','','','','','');

for ($c=0; $c<3; $c++)
{
   if ($white[$c]==1) {$colortext[$c]='color="white"';}
   else {$colortext[$c]='';}
}

if ($ventmax == $ventmax_m) {$replow = array("<b>","</b></font>");}
if ($gustmax == $gustmax_m) {$rephight = array("<b>","</b></font>");}

switch(trim($mois))
  {
  case "janvier":
    $monthnum="01";
    break;
  case "février":
    $monthnum="02";
    break;
  case "mars":
    $monthnum="03";
    break;
  case "avril":
    $monthnum="04";
    break;
  case "mai":
    $monthnum="05";
    break;
  case "juin":
    $monthnum="06";
    break;
  case "juillet":
    $monthnum="07";
    break;
  case "août":
    $monthnum="08";
    break;
  case "septembre":
    $monthnum="09";
    break;
  case "octobre":
    $monthnum="10";
    break;
  case "novembre":
    $monthnum="11";
    break;
  case "décembre":
    $monthnum="12";
    break;
                  }
#incrémentation du tableau
if ($vent != ""){

$ligne4 .= "<tr >
              <td  align='center'><font color='white'><a href='climatom.php?annee=$yearstr&mois=$monthnum' target='_self'>$mois</a></td>
              <td  bgcolor='$color[0]' width='80' align='center'><font $colortext[0]> $vent km/h </td>
              <td  bgcolor='$color[1]' width='180' align='center'><font $colortext[1]>$replow[0] $ventmax km/h le $ventmaxday à $ventmaxhour $replow[1]</td>
         <td  bgcolor='#ffffff' width='70' align='center'><font><font  ><img src='pictos/$secteur.gif'/>$secteur</td>            
           </tr>
              ";}

}

#################
#affichage final#
#################
echo "

<body bgcolor='#D6D6D6' text='black' link='blue' vlink='purple' alink='red' background='../images/00_bg1.jpg'>
<p align='center'><span style='font-size:22pt'><font face='Comic Sans MS' color='#009900'><b>$title1</b></font></span></p>
<font>$title2 </font><br><br>
<input onclick='donoaaprevyear();' type='button' $disableprev name='nooaprev'id='nooaprev' value='Ann&eacute;e pr&eacute;c&eacute;dente' >
<input onclick='donoaanextyear();' type='button' $disablenext name='nooanext'id='nooanext' value='Ann&eacute;e suivante' >
<input onclick='moisnoaa();' type='button' value='Climatologie mois' >
<form name='date' method='GET' action='redirclimatoa.php'>
<font face='Comic Sans MS'>Recherche
    d'une année:</font>
<select name='annee' size='1'>";
$today = getdate();
$year = $today[year];
echo" <option>Année</option>";
for ($i=$anneedebut;$i <= $year; $i=$i+1){echo "<option value='$i'>$i</option>";
 }
echo"
    </select>
<input type='submit' name='AFFICHER' value='Afficher'>
</form>
</p>
<table style='border-collapse: collapse' border='1' bordercolor='#000000'>

<tr bgcolor='gray'>
<td align='center' rowspan='2'><font color='white'><b>Mois</b></font></td>
<td colspan='5' align='center'><font color='white'><b>Température</b></font></td>
<td align='center'><font color='white'>Jours</font></td>
<td align='center'><font color='white'>Jours</font></td>
<td align='center'><font color='white'>Jours</font></td>
</tr>

<tr bgcolor='gray'>

              <td align='center'><font color='white'>minimum</font></td>
              <td align='center'><font color='white'>moy min</font></td>
              <td align='center'><font color='white'>moyenne</font></td>
              <td align='center'><font color='white'>moy max</font></td>
              <td align='center'><font color='white'>maximum</font></td>
              <td align='center'><font color='white'>sans dégel</font></td>
              <td align='center'><font color='white'>de gel</font></td>
              <td align='center'><font color='white'>(Tmax >30°C)</font></td>

             </tr>

$ligne

<tr bgcolor='gray'>
<td><font color='white'><b>   </b></font></td>
<td align='center' border='2'><font color='white'>$lowtemp_m °C</font></td>
<td align='center'><font color='white'>$lowtempmean_m °C</font></td>
<td align='center'><font color='white'>$meantemp_m °C</font></td>
<td align='center'><font color='white'>$highttempmean_m °C</font></td>
<td align='center'><font color='white'>$highttemp_m °C</font></td>
<td align='center'><font color='white'>$icedays_m</font></td>
<td align='center'><font color='white'>$colddays_m</font></td>
<td align='center'><font color='white'>$heatdays_m</font></td>

</tr>
</table>
<p> </p>
<p> </p>

<table style='border-collapse: collapse' border='1' bordercolor='#000000'>

<tr bgcolor='gray'>
<td align='center' rowspan='2'><font color='white'><b>Mois</b></font></td>
<td colspan='3' align='center'><font color='white'><b>Temp&eacute;rature</b></font></td>

</tr>

<tr bgcolor='gray'>

              <td width='50' align='center'><font color='white'>&nbsp;moyenne&nbsp;</font></td>
              <td align='center'><font color='white'>&nbsp;normale&nbsp;</font></td>
              <td align='center'><font color='white'>&nbsp;&eacute;cart de la normale&nbsp;</font></td>
             </tr>

$ligne2

<tr bgcolor='gray'>
<td><font color='white'><b>   </b></font></td>
<td align='center' border='2'><font color='white'>$temp_m °C</font></td>
<td align='center'><font color='white'>$normtemp_m °C</font></td>
<td align='right'><font color='white'>$tempdev_m °C</font></td>
</tr>
</table>
<p> </p>
<p> </p>

<table style='border-collapse: collapse' border='1' bordercolor='#000000'>

<tr bgcolor='gray'>
<td align='center' rowspan='2'><font color='white'><b>Mois</b></font></td>
<td colspan='6' align='center'><font color='white'><b>Pluie</b></font></td>
</tr>

<tr bgcolor='gray'>

              <td width='50' align='center'><font color='white'>&nbsp;pluie totale&nbsp;</font></td>
              <td align='center'><font color='white'>&nbsp;jours pluie&nbsp;</font></td>
              <td align='center'><font color='white'>&nbsp;jours >20mm&nbsp;</font></td>
              <td align='center'><font color='white'>&nbsp;normale&nbsp;</font></td>
              <td align='center'><font color='white'>&nbsp;&eacute;cart de la normale&nbsp;</font></td>
              <td align='center'><font color='white'>%</font></td>
             </tr>

$ligne3

<tr bgcolor='gray'>
<td><font color='white'><b>   </b></font></td>
<td align='center' border='2'><font color='white'>$rain_m mm</font></td>
<td align='center'><font color='white'>$dayrain_m</font></td>
<td align='center'><font color='white'>$dayrain20_m</font></td>
<td align='center'><font color='white'>$normrain_m mm</font></td>
<td align='right'><font color='white'>$raindev_m mm</font></td>
<td align='right'><font color='white'>$rainpou_m %</font></td>
</tr>
</table>
<p> </p>
<p> </p>
<table style='border-collapse: collapse' border='1' bordercolor='#000000'>

<tr bgcolor='gray'>
<td align='center' rowspan='2'><font color='white'><b>Mois</b></font></td>
<td colspan='8' align='center'><font color='white'><b>Vent</b></font></td>
</tr>

<tr bgcolor='gray'>

              <td align='center'><font color='white'>vent moyen</font></td>
              <td align='center'><font color='white'>rafale</font></td>
              <td align='center'><font color='white'>secteur</font></td>


             </tr>

$ligne4

<tr bgcolor='gray'>
<td><font color='white'><b>   </b></font></td>
<td align='center' border='2'><font color='white'>$vent_m km/h</font></td>
<td align='center'><font color='white'>$ventmax_m km/h</font></td>
<td align='center'><font color='white'><img src='pictos/$secteur_m.gif'/>$secteur_m</font></td>
</tr>
</table>
";

?>

un bref aperçu du résultat t lorsque je lance le script:


( ! ) Notice: Undefined index: annee in C:\wamp\www\noaa\climatoa.php on line 9
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Use of undefined constant year - assumed 'year' in C:\wamp\www\noaa\climatoa.php on line 13
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined index: annee in C:\wamp\www\noaa\climatoa.php on line 108
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 8 in C:\wamp\www\noaa\climatoa.php on line 119
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 9 in C:\wamp\www\noaa\climatoa.php on line 120
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 10 in C:\wamp\www\noaa\climatoa.php on line 121
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 11 in C:\wamp\www\noaa\climatoa.php on line 122
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 12 in C:\wamp\www\noaa\climatoa.php on line 123
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 13 in C:\wamp\www\noaa\climatoa.php on line 124
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 14 in C:\wamp\www\noaa\climatoa.php on line 125
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 4 in C:\wamp\www\noaa\climatoa.php on line 167
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 5 in C:\wamp\www\noaa\climatoa.php on line 168
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 6 in C:\wamp\www\noaa\climatoa.php on line 169
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 7 in C:\wamp\www\noaa\climatoa.php on line 170
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 8 in C:\wamp\www\noaa\climatoa.php on line 171
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 9 in C:\wamp\www\noaa\climatoa.php on line 172
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 10 in C:\wamp\www\noaa\climatoa.php on line 173
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 11 in C:\wamp\www\noaa\climatoa.php on line 174
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 12 in C:\wamp\www\noaa\climatoa.php on line 175
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 13 in C:\wamp\www\noaa\climatoa.php on line 176
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 14 in C:\wamp\www\noaa\climatoa.php on line 177
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined variable: monthnum in C:\wamp\www\noaa\climatoa.php on line 266
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 4 in C:\wamp\www\noaa\climatoa.php on line 167
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 5 in C:\wamp\www\noaa\climatoa.php on line 168
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 6 in C:\wamp\www\noaa\climatoa.php on line 169
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 7 in C:\wamp\www\noaa\climatoa.php on line 170
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 8 in C:\wamp\www\noaa\climatoa.php on line 171
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 9 in C:\wamp\www\noaa\climatoa.php on line 172
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 10 in C:\wamp\www\noaa\climatoa.php on line 173
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 11 in C:\wamp\www\noaa\climatoa.php on line 174
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 12 in C:\wamp\www\noaa\climatoa.php on line 175
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 13 in C:\wamp\www\noaa\climatoa.php on line 176
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 14 in C:\wamp\www\noaa\climatoa.php on line 177
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined variable: monthnum in C:\wamp\www\noaa\climatoa.php on line 266
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 4 in C:\wamp\www\noaa\climatoa.php on line 167
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 5 in C:\wamp\www\noaa\climatoa.php on line 168
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 6 in C:\wamp\www\noaa\climatoa.php on line 169
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 7 in C:\wamp\www\noaa\climatoa.php on line 170
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 8 in C:\wamp\www\noaa\climatoa.php on line 171
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 9 in C:\wamp\www\noaa\climatoa.php on line 172
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 10 in C:\wamp\www\noaa\climatoa.php on line 173
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 11 in C:\wamp\www\noaa\climatoa.php on line 174
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 12 in C:\wamp\www\noaa\climatoa.php on line 175
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 13 in C:\wamp\www\noaa\climatoa.php on line 176
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 14 in C:\wamp\www\noaa\climatoa.php on line 177
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined variable: monthnum in C:\wamp\www\noaa\climatoa.php on line 266
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 4 in C:\wamp\www\noaa\climatoa.php on line 167
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 5 in C:\wamp\www\noaa\climatoa.php on line 168
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 6 in C:\wamp\www\noaa\climatoa.php on line 169
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 7 in C:\wamp\www\noaa\climatoa.php on line 170
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 8 in C:\wamp\www\noaa\climatoa.php on line 171
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 9 in C:\wamp\www\noaa\climatoa.php on line 172
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 10 in C:\wamp\www\noaa\climatoa.php on line 173
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 11 in C:\wamp\www\noaa\climatoa.php on line 174
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 12 in C:\wamp\www\noaa\climatoa.php on line 175
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 13 in C:\wamp\www\noaa\climatoa.php on line 176
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 14 in C:\wamp\www\noaa\climatoa.php on line 177
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined variable: monthnum in C:\wamp\www\noaa\climatoa.php on line 266
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 4 in C:\wamp\www\noaa\climatoa.php on line 167
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 5 in C:\wamp\www\noaa\climatoa.php on line 168
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 6 in C:\wamp\www\noaa\climatoa.php on line 169
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 7 in C:\wamp\www\noaa\climatoa.php on line 170
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 8 in C:\wamp\www\noaa\climatoa.php on line 171
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 9 in C:\wamp\www\noaa\climatoa.php on line 172
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 10 in C:\wamp\www\noaa\climatoa.php on line 173
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 11 in C:\wamp\www\noaa\climatoa.php on line 174
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 12 in C:\wamp\www\noaa\climatoa.php on line 175
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 13 in C:\wamp\www\noaa\climatoa.php on line 176
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 14 in C:\wamp\www\noaa\climatoa.php on line 177
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined variable: monthnum in C:\wamp\www\noaa\climatoa.php on line 266
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 4 in C:\wamp\www\noaa\climatoa.php on line 167
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 5 in C:\wamp\www\noaa\climatoa.php on line 168
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 6 in C:\wamp\www\noaa\climatoa.php on line 169
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 7 in C:\wamp\www\noaa\climatoa.php on line 170
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 8 in C:\wamp\www\noaa\climatoa.php on line 171
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 9 in C:\wamp\www\noaa\climatoa.php on line 172
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 10 in C:\wamp\www\noaa\climatoa.php on line 173
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 11 in C:\wamp\www\noaa\climatoa.php on line 174
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 12 in C:\wamp\www\noaa\climatoa.php on line 175
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 13 in C:\wamp\www\noaa\climatoa.php on line 176
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 14 in C:\wamp\www\noaa\climatoa.php on line 177
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined variable: monthnum in C:\wamp\www\noaa\climatoa.php on line 266
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 10 in C:\wamp\www\noaa\climatoa.php on line 289
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined offset: 11 in C:\wamp\www\noaa\climatoa.php on line 290
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined variable: monthnum in C:\wamp\www\noaa\climatoa.php on line 420
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0

( ! ) Notice: Undefined variable: monthnum in C:\wamp\www\noaa\climatoa.php on line 420
Call Stack
# Time Memory Function Location
1 0.0048 619360 {main}( ) ..\climatoa.php:0
Station météo Davis Vantage Pro 2

Avatar du membre
webmaster
Site Admin
Site Admin
Messages : 2611
Enregistré le : 12 déc. 2006, 20:54
Localisation : Rieux 51 FRANCE
Contact :

Re: Fichier noaa...

Message par webmaster » 22 juin 2013, 14:21

Si je prends ton code et que le mets ici avec le fichier de données de Landéla il donne çà:
http://www.rieux-marne.net/noaa.php?annee=2013

Utilises-tu le fichier modèle de Chriss pour générer tes fichiers TXT
Cordialement

Rieux

Répondre