HOPS
HOPS class reference
Classes | Macros | Functions | Variables
fringex.h File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "adata.h"
#include "fstruct.h"
#include "general.h"
#include "mk4_afio.h"
#include "mk4_data.h"
#include "mk4_dfio.h"
#include "mk4_util.h"
#include "mk4_vex.h"
#include "msg.h"

Go to the source code of this file.

Classes

struct  fxparam
 
struct  loops
 

Macros

#define ACCUMS   2
 
#define ALL   0
 
#define ALLOC_ERROR   1
 
#define BINARYMODE   0x20
 
#define CMODE   0x01
 
#define FILES   1
 
#define MAXDELAYS   500
 
#define MAXNSECS   50
 
#define MAXRATES   500
 
#define NFX_FCHAN   MAXFREQ
 
#define NFX_SB_32   8*MAXFREQ /* type 203->channels */
 
#define NFX_SB_64   64 /* type 205->ffit_chan */
 
#define NO_ALLOC_ERROR   0
 
#define NOLOSS   0x10
 
#define OMODE   0x02
 
#define PI   M_PI
 
#define QMODE   0x04
 
#define SEARCH   0x08
 
#define SRCHPOS   0x40
 

Functions

void accum_segs (struct fxparam *)
 
int calc_seg (struct fxparam *, int)
 
void clear_fxp (struct fxparam *, int)
 
void clear_loops (struct loops *)
 
int determine_nsegs (const struct fxparam *)
 
int filelist (char *, int, fstruct **, int *)
 
int fill_aline (struct mk4_fringe *, struct vex *, char *, fringesum *, int)
 
void init_fxp (struct fxparam *)
 
void model (double, struct fxparam *, double *)
 
int parse_cmdline (int, char **, fstruct **, struct fxparam *, struct loops *)
 
int parse_dflag (char *, int *, struct loops *)
 
int parse_iflag (char *, int *, struct loops *)
 
int read_binaries (fstruct *, struct fxparam *)
 
int realloc_segs (struct fxparam *, int)
 
int set_loops (struct fxparam *, struct loops *)
 

Variables

int msglev
 

Class Documentation

◆ fxparam

struct fxparam
Class Members
double acc_period
int account
fringesum adata
double amp_corr_fact
double bandwidth
double decoff
double delay
double delayoff
double dprate
double fchan[NFX_FCHAN]
double ffit_reffreq
struct mk4_fringe * fringe
double * isum
int mode
int no_amp_corr
double noloss_cotime
double nsecs
int nsegs
int nsegs_allocd
double numaccp
double raoff
double rate
double rateoff
double reffreq
double reftime
double * rsum
struct mk4_sdata * sdata[2]
double * segcount
double * seglen
double * segsec
double segstart
double srch_cotime
double tstart
double userfreq
int version

◆ loops

struct loops
Class Members
double delays[MAXDELAYS]
int ndelays
int nnsec
int nrates
double nsecs[MAXNSECS]
double rates[MAXRATES]

Macro Definition Documentation

◆ ACCUMS

#define ACCUMS   2

◆ ALL

#define ALL   0

◆ ALLOC_ERROR

#define ALLOC_ERROR   1

◆ BINARYMODE

#define BINARYMODE   0x20

◆ CMODE

#define CMODE   0x01

◆ FILES

#define FILES   1

◆ MAXDELAYS

#define MAXDELAYS   500

◆ MAXNSECS

#define MAXNSECS   50

◆ MAXRATES

#define MAXRATES   500

◆ NFX_FCHAN

#define NFX_FCHAN   MAXFREQ

◆ NFX_SB_32

#define NFX_SB_32   8*MAXFREQ /* type 203->channels */

◆ NFX_SB_64

#define NFX_SB_64   64 /* type 205->ffit_chan */

◆ NO_ALLOC_ERROR

#define NO_ALLOC_ERROR   0

◆ NOLOSS

#define NOLOSS   0x10

◆ OMODE

#define OMODE   0x02

◆ PI

#define PI   M_PI

◆ QMODE

#define QMODE   0x04

◆ SEARCH

#define SEARCH   0x08

◆ SRCHPOS

#define SRCHPOS   0x40

Function Documentation

◆ accum_segs()

void accum_segs ( struct fxparam fxp)

◆ calc_seg()

int calc_seg ( struct fxparam fxp,
int  seg 
)

◆ clear_fxp()

void clear_fxp ( struct fxparam fxp,
int  mode 
)

◆ clear_loops()

void clear_loops ( struct loops loops)

◆ determine_nsegs()

int determine_nsegs ( const struct fxparam fxp)

◆ filelist()

int filelist ( char *  afile_name,
int  mode,
fstruct **  files,
int *  versp 
)

◆ fill_aline()

int fill_aline ( struct mk4_fringe fringe,
struct vex root,
char *  fname,
fringesum fsumm,
int  version 
)

◆ init_fxp()

void init_fxp ( struct fxparam fxp)

◆ model()

void model ( double  epoch,
struct fxparam fxp,
double *  bl_phase 
)

◆ parse_cmdline()

int parse_cmdline ( int  argc,
char **  argv,
fstruct **  files,
struct fxparam fxp,
struct loops loops 
)

◆ parse_dflag()

int parse_dflag ( char *  arg,
int *  mode,
struct loops loops 
)

◆ parse_iflag()

int parse_iflag ( char *  arg,
int *  mode,
struct loops loops 
)

◆ read_binaries()

int read_binaries ( fstruct file,
struct fxparam fxp 
)

◆ realloc_segs()

int realloc_segs ( struct fxparam fxp,
int  nsegs 
)

◆ set_loops()

int set_loops ( struct fxparam fxp,
struct loops loops 
)

Variable Documentation

◆ msglev

int msglev
extern