\n\n"; echo "

ATNF Pulsar Data Archive

\n\n"; echo "\n The Archive is currently down for maintenance.
\n Please call again soon!.
\n
\n\n"; include_once("footer.html"); echo "\n\n\n"; exit; } //$link = db_connect_admin(); //loadNewTables(); ////////////////////////////// // Initialise error messages // $date_error = ""; /////////////////////////////////// // Find out the first and last dates //$query = "select min(mjd), max(mjd) from ".OBSERVATIONS_TABLE; $query = "select min(t.mjd), max(t.mjd) from ((select mjd from ".S70_TABLE.") union (select mjd from ".OBSERVATIONS_TABLE.")) as t"; $result = mysql_query($query) or die('Query 1 failed: ' . mysql_error()); $row = mysql_fetch_array($result); $min_mjd = $row[0]; $max_mjd = $row[1]; // Convert from MJD to JD $min_jd = $min_mjd + 2400000.5; $max_jd = $max_mjd + 2400000.5; // convert the mjd to a date $min_jd = floor($min_jd); $max_jd = ceil($max_jd); $min_unix = jdtounix($min_jd); $max_unix = jdtounix($max_jd); $min_date_text = date("j F Y", $min_unix); $max_date_text = date("j F Y", $max_unix); $minDay = date("j",$min_unix); $minMonth = date("n",$min_unix); $minYear = date("Y",$min_unix); $maxDay = date("j",$max_unix); $maxMonth = date("n",$max_unix); $maxYear = date("Y",$max_unix); // Free resultset mysql_free_result($result); // Clear any old form inputs in session cache init($link); ////////////////////////////////////////////// // Get the field names to fill form checkboxes $query = "SHOW COLUMNS FROM ".OBSERVATIONS_TABLE; $result = mysql_query($query) or die ('Query 2 failed: ' . mysql_error()); $fields = array(); if (mysql_num_rows($result)) { while($row = mysql_fetch_assoc($result)) { if(($row['Field'] != "data_loc") && ($row['Field'] != "file_size_bytes")) array_push($fields, $row); } } $field_names = Array("filename" => "Filename", "src_name" => "Source Name", "project_id" => "Project ID", "raj" => "RA (J2000, hh:mm:ss)", "decj" => "Dec (J2000, dd:mm:ss)", "data_type" => "Data Type", "obsfreq" => "Frequency", "bw" => "Bandwidth", "scanlen" => "Scan Length", "date" => "UT Date", "ut" => "UT Time", "MJD" => "MJD", "rajd" => "RA (J2000, degs)", "decjd" => "Dec (J2000, degs)", "gl" => "Gal. Long. (degs)", "gb" => "Gal. Lat. (degs)", "BMAJ" => "Beamsize: BMAJ", "BMIN" => "Beamsize: BMIN", "BPA" => "Beam: BPA", "dm" => "D.M.", "period" => "Period", "nchan" => "# channels", "npol" => "# polarisations", "nbin" => "# bins", "nsub" => "# subintegrations", "tsamp" => "Sample time", "nbits" => "# bits per sample", "nbeam" => "# beams", "cnfg" => "Configuration", "inst" => "Instrument", "rcvr" => "Receiver", "hdrver" => "PSRFITS version", "survey" => "Survey name", "telescope" => "Telescope", "site" => "Site ID", "obsrvr" => "Observer ID" ); /////////////////////////////////////////////// // Get the data types available in the database // //$query = "select distinct data_type from " . OBSERVATIONS_TABLE . " order by data_type"; $query = "(select distinct data_type from ".OBSERVATIONS_TABLE.") union (select distinct data_type from ".S70_TABLE.")"; $result = mysql_query($query) or die ('Query 3 failed: ' . mysql_error()); $data_types = array(); if (mysql_num_rows($result)) { while($row = mysql_fetch_array($result, MYSQL_NUM)) { array_push($data_types, $row[0]); } } /////////////////////////////////////////////// // If the user clicked on the logout button if (isset($HTTP_GET_VARS['command'])) { $command = $HTTP_GET_VARS['command']; if ($command == 'logout') { //unset($_SESSION['auth_code']); //unset($_SESSION['username']); $_SESSION = array(); } } // If the user hasn't logged in before or if the previous // session's authentication wasn't successful // Then use the submitted username and password if (!isset($_SESSION['auth_code']) || $_SESSION['auth_code'] != OK) { $username = $HTTP_POST_VARS["username"]; $password = $HTTP_POST_VARS["password"]; $auth_code = authenticate($username, $password); } else { $auth_code = $_SESSION['auth_code']; $username = $_SESSION['username']; } //echo "auth_code = $auth_code
\n"; /////////////////////////////////////////////////////////////// // Set the new maximum search range if not an atnf staff member // // if (!atnf_staff($username)) { // $max_cal_assoc['day'] = date("j"); // $max_cal_assoc['month'] = date("n"); // $max_cal_assoc['year'] = date("Y")-2; // echo "$username not atnf
\n"; // } // Initial state where no username or password supplied OR bad login state if ($auth_code != OK) { ?>
Incorrect username and/or password
Username:
Password:
Register
Forgot your password?
18 months old"; } ?>

ATNF Pulsar Data Archive

This archive provides access to pulsar observations taken at the Parkes radio telescope between the dates of .
See the Users Guide link for more details.

Logout ">Change Password   Instructions   Users Guide

 

DISPLAY PARAMETERS Select all

".$field_names[$field['Field']]."
\n"; } ?>
POSITION REQUIREMENTS
Pulsar Name

Note that search-by-name takes precedence over search-by-RA/Dec.


Right Ascension (J2000)
Declination (J2000)


SEARCH WINDOW [arcmin]

PROJECT ID
FILTER OPTIONS
Date Range From: $date_error" ?>   To:

Obs Mode
Data Type
Band Name
ORDER RESULTS BY
 Ascending
 Descending

DISPLAY OTHER DATA Display Cals taken within mins of Observations