\n";
foreach ($colnames as $key)
{
echo "".$row[$key];
if ($key=="Ra/Dec/Err")
{
$coordinates=explode("/", $row[$key], 3);
$rahh=floor($coordinates[0]);
$ramm=floor(($coordinates[0]-$rahh)*60);
$rass=round((($coordinates[0]-$rahh)*60-$ramm)*60, 2);
//echo "RA: ".$rahh.":".$ramm.":".$rass;
$decdd=floor($coordinates[1]);
$decmm=floor(($coordinates[1]-$decdd)*60);
$decss=floor((($coordinates[1]-$decdd)*60-$decmm)*60);
$decss=round((($coordinates[1]-$decdd)*60-$decmm)*60, 2);
//echo "Dec: ".$decdd.":".$decmm.":".$decss;
//echo "\n";
echo " vis\n";
}
if ($key=="Source")
{
if (strpos($row[$key], "GBM")!==false)
echo " gcn\n";
}
echo " | \n";
}
echo "
\n";
}
echo "