| calc_bary | xray.xtiming.timcor | calc_bary |
calc_bary -- calculates the barycenter corrections for the orbit data
calc_bary input_table output_table RA DEC
calc_bary calculates the barycenter corrections for the ephemeris data and produces a table of corrected orbit times. The input table file should contain all of the split orbit data from multiple observations in a single table.
It has been found that duplicate records sometimes appear in the ephemeris file. If duplicate records are detected, the record is only written once to the correction table and a message is displayed.
The split orbit table file is produced by the task RFITS2PROS . The table is labelled with a "_eph.tab" extension.
The output table contains four columns:
1) integer part of uncorrected orbit time UT time 2) real part of uncorrected orbit time in UT time 3) integer part of corrected orbit time UT time 4) real part of corrected orbit time in UT timeThe output table is used as input to the task apply_bary .
NOTE: calc_bary MUST be run before apply_bary
The input split orbit table file name.
The output table that will be used by the task calc_bary
The RA of the source.
The DEC of the source.
The table name containing the ephemeris date for the barycenter corrections.
The date column name of the input table.
The seconds column name of the input table.
The x-position of the satellite column name of the input table.
The y-position of the satellite column name of the input table.
The z-position of the satellite column name of the input table.
Boolean flag specifying whether or not the qpoe file can be overwritten, if it already exists.
The display level. A display level of 0 generates no display. A display level of 1 generates a display of header information.
1. Compute the correction table from ephemeris data. Though the user does not have to know this explicitly, you will notice that the input file is in pre-rdf format. The file is first converted to RDF format, a new file (us_ephem.tab) is created, and then the correction table (us_cor.tab) is computed from this intermediate table.
cl> xray xr> xtiming xt> timcor ti> calc_bary input ephemeris table: ../usarlac_eph.tab output correction root (_cor.tab): us input RA (hh:mm:ss.s): 22:07:16.8 input DEC (dd:mm:ss.s): 45:42:0.0 Converting Rev0 US format EPH file to RDF format ... Opening file: ../usarlac_eph.tab 40 rows written to output table. Wrote to file: us_ephem.tab Computing Correction table ... Opening file: us_ephem.tab Wrote to Correction table: us_cor.tab
2. Compute correction table from ephemeris data. Though the user does not have to know this explicitly, you will notice that the input file is in RDF format. No file conversion is performed before the correction table in computed.
ti> calc_bary input ephemeris table: ../rdfarlac_eph.tab output correction root (_cor.tab): rdf input RA (hh:mm:ss.s): 22:07:16.8 input DEC (dd:mm:ss.s): 45:42:0.0 RDF input ... No conversion!! Computing Correction table ... Opening file: ../rdfarlac_eph.tab Wrote to Correction table: rdf_cor.tab
Documentation on the apply barycenter task (help apply_bary ) for more information on the barycenter routines