20 #include <lal/FITSPulsarIO.h>
54 for (
size_t i = 0;
i < segments->
length; ++
i ) {
163 ( *ephemerides )->nentriesE = nrows;
164 ( *ephemerides )->ephemE =
XLALCalloc( ( *ephemerides )->nentriesE,
sizeof( ( *ephemerides )->ephemE[0] ) );
166 for (
INT4 i = 0;
i < ( *ephemerides )->nentriesE; ++
i ) {
172 ( *ephemerides )->etype =
etype;
181 ( *ephemerides )->nentriesS = nrows;
182 ( *ephemerides )->ephemS =
XLALCalloc( ( *ephemerides )->nentriesS,
sizeof( ( *ephemerides )->ephemS[0] ) );
184 for (
INT4 i = 0;
i < ( *ephemerides )->nentriesS; ++
i ) {
int XLALFITSHeaderReadREAL8(FITSFile UNUSED *file, const CHAR UNUSED *key, REAL8 UNUSED *value)
int XLALFITSHeaderWriteUINT4(FITSFile UNUSED *file, const CHAR UNUSED *key, const UINT4 UNUSED value, const CHAR UNUSED *comment)
int XLALFITSTableWriteRow(FITSFile UNUSED *file, const void UNUSED *record)
int XLALFITSTableReadRow(FITSFile UNUSED *file, void UNUSED *record, UINT8 UNUSED *rem_nrows)
int XLALFITSTableOpenWrite(FITSFile UNUSED *file, const CHAR UNUSED *name, const CHAR UNUSED *comment)
int XLALFITSHeaderWriteREAL8(FITSFile UNUSED *file, const CHAR UNUSED *key, const REAL8 UNUSED value, const CHAR UNUSED *comment)
int XLALFITSHeaderReadUINT4(FITSFile UNUSED *file, const CHAR UNUSED *key, UINT4 UNUSED *value)
int XLALFITSTableOpenRead(FITSFile UNUSED *file, const CHAR UNUSED *name, UINT8 UNUSED *nrows)
int XLALFITSHeaderReadString(FITSFile UNUSED *file, const CHAR UNUSED *key, CHAR UNUSED **value)
int XLALFITSHeaderWriteString(FITSFile UNUSED *file, const CHAR UNUSED *key, const CHAR UNUSED *value, const CHAR UNUSED *comment)
static int fits_table_init_LALSeg(FITSFile *file)
Initialise a FITS table for writing/reading a table of LALSeg entries.
static int fits_table_init_PosVelAcc(FITSFile *file)
Initialise a FITS table for writing/reading a table of PosVelAcc entries.
#define XLAL_FITS_TABLE_COLUMN_BEGIN(record_type)
#define XLAL_FITS_TABLE_COLUMN_ADD_NAMED(file, type, field, col_name)
#define XLAL_FITS_TABLE_COLUMN_ADD_ARRAY(file, type, field)
#define XLAL_FITS_TABLE_COLUMN_ADD(file, type, field)
struct tagFITSFile FITSFile
Representation of a FITS file.
int XLALFITSReadEphemerisData(FITSFile *file, EphemerisData **ephemerides)
Read ephemeris data from a FITS file.
int XLALFITSWriteEphemerisData(FITSFile *file, const EphemerisData *ephemerides)
Write ephemeris data to a FITS file.
int XLALFITSWriteSegmentList(FITSFile *file, const CHAR *name, const LALSegList *segments, const CHAR *comment)
Write a segment list to a FITS file.
int XLALFITSReadSegmentList(FITSFile *file, const CHAR *name, LALSegList **segments)
Read a segment list from a FITS file.
EphemerisType
Enumerated type denoting the JPL solar system ephemeris to be used in calculating barycentre time cor...
#define XLAL_INIT_DECL(var,...)
void * XLALCalloc(size_t m, size_t n)
int XLALSegListAppend(LALSegList *seglist, const LALSeg *seg)
LALSegList * XLALSegListCreate(void)
#define XLAL_CHECK(assertion,...)
This structure contains all information about the center-of-mass positions of the Earth and Sun,...
Structure holding a REAL8 time, and a position, velocity and acceleration vector.