forked from demorest/psrfits_utils
-
Notifications
You must be signed in to change notification settings - Fork 7
/
polyco.h
29 lines (23 loc) · 1.05 KB
/
polyco.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _POLYCO_H
#define _POLYCO_H
#include <stdio.h>
#include <stdlib.h>
#include "polyco_struct.h"
int read_one_pc(FILE *f, struct polyco *pc);
int read_pc(FILE *f, struct polyco *pc, const char *psr, int mjd, double fmjd);
int read_all_pc(FILE *f, struct polyco **pc);
int select_pc(const struct polyco *pc, int npc, const char *psr,
int imjd, double fmjd);
double psr_phase(const struct polyco *pc, int mjd, double fmjd, double *freq,
long long *pulsenum);
double psr_fdot(const struct polyco *pc, int mjd, double fmjd, double *fdot);
double psr_phase_avg(const struct polyco *pc, int mjd,
double fmjd1, double fmjd2);
int pc_range_check(const struct polyco *pc, int mjd, double fmjd);
int pc_out_of_range(const struct polyco *pc, int mjd, double fmjd);
int pc_out_of_range_sloppy(const struct polyco *pc, int mjd, double fmjd, double slop);
int polycos_differ(const struct polyco *pc1, const struct polyco *pc2);
#include "psrfits.h"
int make_polycos(const char *parfile, struct hdrinfo *hdr, char *src,
struct polyco **pc);
#endif