Vortex2 search results

Displaying data for $instrument on $month,$day

“;

// ==========================================
//
// This function test to see if the file exists
// If the file exists then spit out the URL
// If not then spit out an error message
//
// ==========================================

function checkFileExists($data1,$image1,$plot1){

$baseFilePath = “/home/atoc/friedrik/public_html/Experiments/2010_VORTEX2/data/”;
$baseURL = “http://atoc.colorado.edu/~friedrik/Experiments/2010_VORTEX2/data/”;

// data file
if (file_exists($baseFilePath.$data1)) {
// Data file exists
//echo “The file $baseFilePath$data1 exists

“;
print “
“;
print “Data file URL: Right click and save file“;
print “
“;
} else {
print (“
“.”NO DATA FILE FOUND” );
//echo “The DATA file: $baseFilePath$data1 does not exist

“;
}

// Image exists
if (file_exists($baseFilePath.$image1)) {
// Image exists
//echo “

The file $baseFilePath$image1 exists

“;
print “
“;
print “Image file URL: Right click and save file“;
print “
“;
} else {
print (“
“.”NO IMAGE FOUND” );
//echo “The IMAGE file: $baseFilePath$image1 does not exist

“;
}

// Plot exists
if (file_exists($baseFilePath.$plot1)) {
// Plot exists
//echo “

The file $baseFilePath$plot1 exists

“;
print “
“;
print “Plot file URL: Right click and save file“;
print “
“;
} else {
print (“
“.”NO PLOT FOUND” );
//echo “The PLOT file: $baseFilePath$plot1 does not exist

“;
}

// return ($n * $n);
}

// ==========================================
//
// Disdrometer data
//
// ==========================================

if ($instrument == “Disdrometer-CU#1” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_PA01.dat”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_CU1.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_PA01.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-CU#2” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_PA02.dat”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_CU2.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_PA02.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#1” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF01.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF01.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF01.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#3” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF03.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF03.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF03.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#4” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF04.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF04.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF04.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#5” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF05.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF05.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF05.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#6” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF06.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF06.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF06.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#7” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF07.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF07.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF07.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

// ==========================================
//
// Tornado Pods !!!
//
// ==========================================

if ($instrument == “Tornado Pods-CU#1” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_CU1.dat”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

if ($instrument == “Tornado Pods-CU#2” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_CU2.dat”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

// ==========================================
//
// Mission Summary !!!
//
// ==========================================

if ($instrument == “Mission Summary” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/MissionSummary-2010″.$monthDigit.$day.”.txt”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

// ==========================================
//
// Instrument Status !!!
//
// ==========================================

if ($instrument == “Instrument Status CU” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”dataquality_CU.txt”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

if ($instrument == “Instrument Status UF” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”dataquality_UF.txt”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

?>


Displaying data for $instrument on $month,$day

“;

// ==========================================
//
// This function test to see if the file exists
// If the file exists then spit out the URL
// If not then spit out an error message
//
// ==========================================

function checkFileExists($data1,$image1,$plot1){

$baseFilePath = “/home/atoc/friedrik/public_html/Experiments/2010_VORTEX2/data/”;
$baseURL = “http://atoc.colorado.edu/~friedrik/Experiments/2010_VORTEX2/data/”;

// data file
if (file_exists($baseFilePath.$data1)) {
// Data file exists
//echo “The file $baseFilePath$data1 exists

“;
print “
“;
print “Data file URL: Right click and save file“;
print “
“;
} else {
print (“
“.”NO DATA FILE FOUND” );
//echo “The DATA file: $baseFilePath$data1 does not exist

“;
}

// Image exists
if (file_exists($baseFilePath.$image1)) {
// Image exists
//echo “

The file $baseFilePath$image1 exists

“;
print “
“;
print “Image file URL: Right click and save file“;
print “
“;
} else {
print (“
“.”NO IMAGE FOUND” );
//echo “The IMAGE file: $baseFilePath$image1 does not exist

“;
}

// Plot exists
if (file_exists($baseFilePath.$plot1)) {
// Plot exists
//echo “

The file $baseFilePath$plot1 exists

“;
print “
“;
print “Plot file URL: Right click and save file“;
print “
“;
} else {
print (“
“.”NO PLOT FOUND” );
//echo “The PLOT file: $baseFilePath$plot1 does not exist

“;
}

// return ($n * $n);
}

// ==========================================
//
// Disdrometer data
//
// ==========================================

if ($instrument == “Disdrometer-CU#1” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_PA01.dat”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_CU1.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_PA01.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-CU#2” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_PA02.dat”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_CU2.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_PA02.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#1” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF01.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF01.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF01.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#3” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF03.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF03.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF03.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#4” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF04.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF04.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF04.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#5” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF05.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF05.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF05.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#6” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF06.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF06.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF06.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

if ($instrument == “Disdrometer-UF#7” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF07.txt”;
$image = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_UF07.JPG”;
$plot = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_Concentrations_UF07.pdf”;
// call file exists function and print out result
checkFileExists($data,$image,$plot);

}

// ==========================================
//
// Tornado Pods !!!
//
// ==========================================

if ($instrument == “Tornado Pods-CU#1” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_CU1.dat”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

if ($instrument == “Tornado Pods-CU#2” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”_CU2.dat”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

// ==========================================
//
// Mission Summary !!!
//
// ==========================================

if ($instrument == “Mission Summary” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/MissionSummary-2010″.$monthDigit.$day.”.txt”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

// ==========================================
//
// Instrument Status !!!
//
// ==========================================

if ($instrument == “Instrument Status CU” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”dataquality_CU.txt”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

if ($instrument == “Instrument Status UF” ) {
//print “

Instrument= “.$instrument.”

“;
$data = “/2010″.$monthDigit.$day.”/2010″.$monthDigit.$day.”dataquality_UF.txt”;
$image = “/Gauge/rain_10_”.$monthDigit.”_”.$day.”.gif”;
// call file exists function and print out result
checkFileExists($data,$image);

}

?>