HOPS
HOPS class reference
Classes | Macros | Enumerations | Functions
difx2mark4.h File Reference
#include <difxio/difx_input.h>
#include <limits.h>
#include <time.h>
#include "type_000.h"
#include "type_100.h"
#include "type_101.h"
#include "type_120.h"
#include "type_300.h"
#include "type_301.h"
#include "type_302.h"
#include "type_303.h"
#include "type_309.h"
#include "type_writes.h"

Go to the source code of this file.

Classes

struct  CommandLineOptions
 
struct  vis_record::components
 
struct  fbands
 
struct  fblock_tag
 
struct  fblock_tag.stn
 
struct  stations
 
struct  vis_record
 

Macros

#define DIFXIO_VERSION_MAJOR   0
 
#define DIFXIO_VERSION_MINOR   0
 
#define EXP_CODE_LEN   4
 
#define MAGLIM   10000.0
 
#define MAX_DFRQ   800
 
#define MAX_FBANDS   20
 
#define MAX_FPPAIRS   48000
 
#define MAX_INPUT_FILES   4096
 
#define MAX_STN   50
 
#define MAX_VIS   8192
 
#define NUMFILS   500
 
#define NVRMAX   98304000
 

Enumerations

enum  booleans { FALSE , TRUE }
 

Functions

void conv2date (double, struct date *)
 
int createRoot (DifxInput *, struct fblock_tag *, int, int, char *, char *, char *, struct stations *, struct CommandLineOptions *, char *)
 
int createType1s (DifxInput *, struct fblock_tag *, int *, int, char *, char *, struct stations *, struct CommandLineOptions *, char *)
 
int createType3s (DifxInput *, struct fblock_tag *, int, int, int, char *, char *, struct stations *, struct CommandLineOptions *)
 
double double_reverse (double)
 
float float_reverse (float)
 
int get_vis (DifxInput *, char *, struct CommandLineOptions *, int *, int *, int *, vis_record **, char *, struct fblock_tag *)
 
char getband (double)
 
int int_reverse (int)
 
long long_reverse (long)
 
int new_type1 (DifxInput *, struct fblock_tag *, int, int, int, int, int *, double *, struct stations *, char *, struct CommandLineOptions *, FILE **, int, char *, char *, char *, char *, int, int)
 
void normalize (struct CommandLineOptions *, vis_record *, int, int *, int *, struct fblock_tag *)
 
char * root_id (int, int, int, int, int)
 
char * root_id_break (time_t, int, int, int, int, int)
 
int root_id_delta (time_t)
 
short short_reverse (short)
 
char single_code (char *, char *)
 
unsigned short unsig_reverse (unsigned short)
 

Class Documentation

◆ CommandLineOptions

struct CommandLineOptions
Class Members
char bandwidth[8]
char * baseFile[MAX_INPUT_FILES]
int doalldifx
int dontCombine
char exp_no[EXP_CODE_LEN+1]
char fgroups[16]
FILE ** in
double jobMatrixDeltaT
int keepOrder
int localdir
int nBaseFile
float nOutChan
int overrideVersion
int phaseCentre
int pretend
int pulsarBin
int raw
double scale
char * scan
char scodeFile[PATH_MAX]
double sniffTime
int specAvg
float startChan
int verbose
int writemodel

◆ vis_record::components

struct vis_record::components
Class Members
float imag
float real

◆ fbands

struct fbands
Class Members
char code
double fhi
double flo

◆ fblock_tag

struct fblock_tag
Class Members
struct fblock_tag stn[2]

◆ fblock_tag.stn

struct fblock_tag.stn
Class Members
int ant
int bs
double bw
char chan_id[8]
int find
int first_time
double freq
int n_spec_chan
double pcal_int
char pol
char sideband
int zoom

◆ stations

struct stations
Class Members
char difx_name[2]
int inscan
char intl_name[2]
int invis
char mk4_id

◆ vis_record

struct vis_record
Class Members
int baseline
struct components comp[MAX_VIS]
int config_index
int freq_index
double iat
int mjd
int nvis
char pols[2]
int pulsar_bin
int source_index
int sync
double uvw[3]
int version
double weight

Macro Definition Documentation

◆ DIFXIO_VERSION_MAJOR

#define DIFXIO_VERSION_MAJOR   0

◆ DIFXIO_VERSION_MINOR

#define DIFXIO_VERSION_MINOR   0

◆ EXP_CODE_LEN

#define EXP_CODE_LEN   4

◆ MAGLIM

#define MAGLIM   10000.0

◆ MAX_DFRQ

#define MAX_DFRQ   800

◆ MAX_FBANDS

#define MAX_FBANDS   20

◆ MAX_FPPAIRS

#define MAX_FPPAIRS   48000

◆ MAX_INPUT_FILES

#define MAX_INPUT_FILES   4096

◆ MAX_STN

#define MAX_STN   50

◆ MAX_VIS

#define MAX_VIS   8192

◆ NUMFILS

#define NUMFILS   500

◆ NVRMAX

#define NVRMAX   98304000

Enumeration Type Documentation

◆ booleans

enum booleans
Enumerator
FALSE 
TRUE 

Function Documentation

◆ conv2date()

void conv2date ( double  dmjd,
struct date pdate 
)

◆ createRoot()

int createRoot ( DifxInput *  D,
struct fblock_tag pfb,
int  jobId,
int  scanId,
char *  node_name,
char *  node,
char *  rcode,
struct stations stns,
struct CommandLineOptions opts,
char *  rootname 
)

◆ createType1s()

int createType1s ( DifxInput *  D,
struct fblock_tag pfb,
int *  jobId,
int  scanId,
char *  node,
char *  rcode,
struct stations stns,
struct CommandLineOptions opts,
char *  rootname 
)

◆ createType3s()

int createType3s ( DifxInput *  D,
struct fblock_tag pfb,
int  startJob,
int  endJob,
int  scanId,
char *  node,
char *  rcode,
struct stations stns,
struct CommandLineOptions opts 
)

◆ double_reverse()

double double_reverse ( double  j)

◆ float_reverse()

float float_reverse ( float  j)

◆ get_vis()

int get_vis ( DifxInput *  D,
char *  vf_name,
struct CommandLineOptions opts,
int *  nvrtot,
int *  nvis,
int *  vrsize,
vis_record **  vrec,
char *  corrdate,
struct fblock_tag pfb 
)

◆ getband()

char getband ( double  freq)

◆ int_reverse()

int int_reverse ( int  j)

◆ long_reverse()

long long_reverse ( long  j)

◆ new_type1()

int new_type1 ( DifxInput *  ,
struct fblock_tag ,
int  ,
int  ,
int  ,
int  ,
int *  ,
double *  ,
struct stations ,
char *  ,
struct CommandLineOptions ,
FILE **  ,
int  ,
char *  ,
char *  ,
char *  ,
char *  ,
int  ,
int   
)

◆ normalize()

void normalize ( struct CommandLineOptions opts,
vis_record vrec,
int  nvrtot,
int *  nvis,
int *  vrsize,
struct fblock_tag pfb 
)

◆ root_id()

char* root_id ( int  year,
int  day,
int  hour,
int  min,
int  sec 
)

◆ root_id_break()

char* root_id_break ( time_t  now,
int  year,
int  day,
int  hour,
int  min,
int  sec 
)

◆ root_id_delta()

int root_id_delta ( time_t  now)

◆ short_reverse()

short short_reverse ( short  i)

◆ single_code()

char single_code ( char *  station,
char *  fname 
)

◆ unsig_reverse()

unsigned short unsig_reverse ( unsigned short  i)