LALPulsar  6.1.0.1-fe68b98
SFTReferenceLibrary.h File Reference

Prototypes

int WriteSFT (FILE *fp, int gps_sec, int gps_nsec, double tbase, int firstfreqindex, int nsamples, const char *detector, unsigned short windowspec, const char *comment, float *data)
 
int ReadSFTHeader (FILE *fp, struct headertag2 *info, char **comment, int *swapendian, int validate)
 
int ReadSFTData (FILE *fp, float *data, int firstbin, int nsamples, char **comment, struct headertag2 *info)
 
int CheckSFTHeaderConsistency (struct headertag2 *headerone, struct headertag2 *headertwo)
 
int ValidateSFTFile (const char *fname)
 Verify that the contents of a SFT file are valid. More...
 
const charSFTErrorMessage (int errorcode)
 
int unknownDetector (const char *detector)
 

Go to the source code of this file.

Data Structures

struct  headertag2
 

Macros

#define SFTNOERROR   0 /* MUST BE ZERO, MEANS NO ERROR */
 
#define SFTENULLFP   1
 
#define SFTESEEK   2
 
#define SFTEGETSTREAMPOS   3
 
#define SFTERESTORESTREAMPOS   4
 
#define SFTEREAD   5
 
#define SFTEUNKNOWN   6
 
#define SFTEGPSNSEC   7
 
#define SFTEBADCOMMENT   8
 
#define SFTEBADCRC64   9
 
#define SFTENOMEM   10
 
#define SFTESIZEWRONG   11
 
#define SFTEWRITE   12
 
#define SFTENULLPOINTER   13
 
#define SFTENONE   14
 
#define SFTEHIDDENCOMMENT   15
 
#define SFTENONULLINCOMMENT   16
 
#define SFTEGPSNOTINCREASING   17
 
#define SFTETBASECHANGES   18
 
#define SFTEFIRSTINDEXCHANGES   19
 
#define SFTENSAMPLESCHANGES   20
 
#define SFTEINSTRUMENTCHANGES   21
 
#define SFTEVERSIONCHANGES   22
 
#define SFTETBASENOTPOS   23
 
#define SFTEFIRSTINDEXNEG   24
 
#define SFTENSAMPLESNOTPOS   25
 
#define SFTEINSTRUMENTUNKNOWN   26
 
#define SFTEBEFOREDATA   27
 
#define SFTEAFTERDATA   28
 
#define SFTNOTFINITE   29
 
#define SFTEWINDOWSPECCHANGES   300