The gtpulsardb tool is a utility for manipulating and accessing databases containing pulsar ephemeris data. Using this tool, one can accept input from any number of FITS files in the Fermi (formerly GLAST) D4 format, and/or simple text files containing pulsar data. These input pulsar ephemerides can be filtered by pulsar name and other criteria, and the results stored in a new Fermi (formerly GLAST) D4 FITS file.
Note: The FTOOL fv can be used to view the pulsar database file.
To try the following examples, download the following simulated data files. The simulated data is for demonstration purposes.
|Pulsar Analysis Tutorial: Collect Ephemeris Information of Your Pulsar
|Ephemeris Computation Utility
It is possible to filter an ephemerides file to extract only ephemerides for a particular pulsar as follows:
The name supplied in the example was simply "Crab", but in general the "B-name" or "J-name" may be used as well as common names such as "Crab" or "Vela". Colloquial names and B-names are looked up using the ALTERNATIVE_NAMES extension to obtain the correct J-name, which is then used to look up ephemerides in the SPIN_PARAMETERS and/or ORBITAL_PARAMETERS.
It is also possible to filter an ephemerides file to extract only ephemerides which are valid during some portion of a user-specified time range, as follows:
In order to merge two or more ephemerides files, it is necessary to supply more than one file name through the psrdbfile parameter. This is done using the "at-file" syntax familiar to Ftools users, in which the file names are written into a text file, and that text file is supplied to gtpulsardb with a prepended at-sign (@).
Pulsar ephemerides can also be supplied to gtpulsardb using a simple text file format. Each text file contains data which correspond to one of the four extensions in a Fermi (formerly GLAST) D4 FITS file. Using the same at-file syntax described in the previous example, any number of these text files can be combined into a single Fermi (formerly GLAST) D4 FITS file.
The three examples above outline the three basic functions of gtpulsardb: filtering, merging and creating brand new Fermi (formerly GLAST) D4 FITS files. However, advanced users may use the tool for more complicated tasks.
This technique may be useful when updating a local copy of D4 FITS file that contains only ephemerides of a particular pulsar.
This feature may be useful when adding a few ephemerides to (a local copy of) the master ephemerides database, in order to update the database; or when inserting "test ephemerides" in the database to share them with collaborators.
Caution: To maximize flexibility, the tool does not require the input files to contain complete and consistent ephemeris information, i.e., if the inputs are incomplete, or self-contradictory, the tool can produce an output file which is in a Fermi (formerly GLAST) D4 FITS file format, but which is missing key information, and may not work properly with other tools. For example, it is a simple matter to produce a FITS file that includes only a SPIN_PARAMETERS extension.
Last updated by: Masaharu Hirayama 08/24/2009