本文整理汇总了PHP中Objects::calculateSkyAtlasPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Objects::calculateSkyAtlasPage方法的具体用法?PHP Objects::calculateSkyAtlasPage怎么用?PHP Objects::calculateSkyAtlasPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Objects
的用法示例。
在下文中一共展示了Objects::calculateSkyAtlasPage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
// Calculate the SBObj
if ($mag != 99.90000000000001 && ($diam1 != 0 || $diam2 != 0)) {
if ($diam1 != 0 && $diam2 == 0) {
$diam2 = $diam1;
} else {
if ($diam2 != 0 && $diam1 == 0) {
$diam1 = $diam2;
}
}
$SBObj = $mag + 2.5 * log10(2827.0 * ($diam1 / 60) * ($diam2 / 60));
} else {
$SBObj = -999;
}
$urano = $object->calculateUranometriaPage($ra, $decl);
$uranonew = $object->calculateNewUranometriaPage($ra, $decl);
$skyatlas = $object->calculateSkyAtlasPage($ra, $decl);
$millenium = $object->calculateMilleniumPage($ra, $decl);
$taki = $object->calculateTakiPage($ra, $decl);
$sql = "select objectname from objectnames where altname = \"" . $newName . "\"";
$run = mysql_query($sql) or die(mysql_error());
$get = mysql_fetch_object($run);
if (!$get) {
print "Inserting " . $newName . "\n";
$sql = "INSERT INTO objects (name) values (\"{$newName}\")";
$run = mysql_query($sql) or die(mysql_error());
$names = explode(" ", $newName);
$sql = "INSERT INTO objectnames (objectname, catalog, catindex, altname) VALUES (\"{$newName}\", \"{$names['0']}\", \"{$names['1']}\", \"{$newName}\")";
mysql_query($sql) or die(mysql_error());
} else {
print "Updating " . $newName . "\n";
}