Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
accum.h
Go to the documentation of this file.
1 #ifndef ACCUM_H
2 #define ACCUM_H
3 
4 #define MAX_ACCUM_SCANS 512
5 #define MAX_IFS 4
6 #define MAX_NFIT 20
7 
8 #define ACCUM_PLOT_X_NONE 0
9 #define ACCUM_PLOT_X_NUM 1
10 #define ACCUM_PLOT_X_EL 2
11 #define ACCUM_PLOT_X_UT 3
12 #define ACCUM_PLOT_X_SCAN 4
13 #define NUM_ACCUM_PLOT_X 5
14 
15 #define ACCUM_PLOT_Y_NONE 0
16 #define ACCUM_PLOT_Y_SIG 1
17 #define ACCUM_PLOT_Y_SKY 2
18 #define ACCUM_PLOT_Y_SMROR 3
19 #define ACCUM_PLOT_Y_TSYS 4
20 #define ACCUM_PLOT_Y_TASTAR 5
21 #define ACCUM_PLOT_Y_TR 6
22 #define ACCUM_PLOT_Y_JANSKY 7
23 #define ACCUM_PLOT_Y_NORMAL 8
24 #define NUM_ACCUM_PLOT_Y 9
25 
26 #define MAX_CONT_SAMPLES 4096 /* Maximum length of reduced contiuum samples */
27 
28 #define MAX_GLABELS 16
29 
30 
32  float scan;
33  float ut;
34  float el;
35  float sig;
36  float sky;
37  float smror; /* S-R/R */
38  float tsys;
39  float tastar;
40  float tr;
41  float factor;
42  float janskys;
43  float normalized;
44 };
45 
46 struct ACCUM_RESULTS {
47  int num;
48 
50 };
51 
53  char magic[16];
54 
55  int plot_select1; /* Which x-axis to plot */
56  int plot_select2; /* Which y-axis to plot */
57  int issmt; /* Data is from SMT */
58  int scanct; /* Number of scans in Accum */
59  int plotwin;
60  int valid; /* Which of the MAX_IFS is valid */
61  int plotExpected; /* Plot the Expected values if True */
62  int bplot; /* if true, expect a fitted curve */
63  int ncoeff; /* Num of coeff in curve fitting */
64  int pad;
65 
66  float bscan; /* First Scan in Accum */
67  float escan; /* Last Scan in Accum */
68 
69  float paperw; /* Plot paper size */
70  float paperh;
71 
72  double avgTaStar[MAX_IFS];
73  double taSigma[MAX_IFS];
75 
76  double avgTr[MAX_IFS];
77  double trSigma[MAX_IFS];
79 
81  double jkSigma[MAX_IFS];
83 
85 
86 
87  struct HEADER head[MAX_IFS];
89 
91 };
92 
94  char magic[16];
95 
96  int issmt; /* Data is from SMT */
97  int dlen; /* Lenght of actual Data */
98  int ons; /* Display 'ons' if True */
99  int yaxis_scale; /* Linear vs. log10() flag */
100  int ngauss; /* Size of Gaussian data; should = dlen */
101  int plotwin;
102  int plotStyle; /* histo, lines, points, linepts */
103  int gridMode; /* None, x-only, y-only, full */
104  int autoscale; /* 0 = Y_AUTO_SCALE, 1 = Y_FIXED_SCALE */
105  int zline; /* Add a zero line if true */
106 
107  float yplotmax; /* Upper and lower extents of plot */
108  float yplotmin;
109 
110  char glabels[MAX_GLABELS][80]; /* Gaussian Fit Results */
111 
112  char xlabel[80];
113  char ylabel[80];
114 
115  struct HEADER head;
116 
119  float gdata[MAX_CONT_SAMPLES]; /* Possible Gaussian Data */
120 };
121 
122 
123 struct TIP_RESULTS {
124  float tau0;
125  float sigmaA;
126  float sigmaB;
127  float a;
128  float b;
129 };
130 
131 
133  char magic[16];
134  int issmt; /* Data is from SMT */
135  int dlen; /* Lenght of actual Data */
136  int ons; /* Display 'ons' if True */
137  int plotwin;
138 
139  struct TIP_RESULTS results[4];
140 
141  struct HEADER head1;
142  struct HEADER head2;
143 
144  float xdata[64];
145  float ydata1[64];
146  float ydata2[64];
147 };
148 
149 #endif
int plot_select2
Definition: accum.h:56
int num
Definition: accum.h:47
char magic[16]
Definition: accum.h:133
double taSigma[MAX_IFS]
Definition: accum.h:73
float yplotmin
Definition: accum.h:108
float paperh
Definition: accum.h:70
#define MAX_ACCUM_SCANS
Definition: accum.h:4
float tsys
Definition: accum.h:38
Definition: header.h:13
char xlabel[80]
Definition: accum.h:112
float ydata1[64]
Definition: accum.h:145
float scan
Definition: accum.h:32
double expectedTaStar[MAX_IFS]
Definition: accum.h:74
float xdata[MAX_CONT_SAMPLES]
Definition: accum.h:117
char glabels[MAX_GLABELS][80]
Definition: accum.h:110
float ydata[MAX_CONT_SAMPLES]
Definition: accum.h:118
struct ACCUM_RESULTS ar[MAX_IFS]
Definition: accum.h:88
float tau0
Definition: accum.h:124
float normalized
Definition: accum.h:43
double avgTr[MAX_IFS]
Definition: accum.h:76
struct HEADER head
Definition: accum.h:115
int autoscale
Definition: accum.h:104
int plotStyle
Definition: accum.h:102
double expectedTr[MAX_IFS]
Definition: accum.h:78
int gridMode
Definition: accum.h:103
#define MAX_NFIT
Definition: accum.h:6
int yaxis_scale
Definition: accum.h:99
char magic[16]
Definition: accum.h:94
float yplotmax
Definition: accum.h:107
float tastar
Definition: accum.h:39
double jkSigma[MAX_IFS]
Definition: accum.h:81
struct TIP_RESULTS results[4]
Definition: accum.h:139
struct ACCUM_SCAN_RESULT results[MAX_ACCUM_SCANS]
Definition: accum.h:49
double trSigma[MAX_IFS]
Definition: accum.h:77
float factor
Definition: accum.h:41
float janskys
Definition: accum.h:42
float paperw
Definition: accum.h:69
float b
Definition: accum.h:128
int plotExpected
Definition: accum.h:61
char ylabel[80]
Definition: accum.h:113
float sigmaA
Definition: accum.h:125
struct HEADER head[MAX_IFS]
Definition: accum.h:87
struct HEADER head2
Definition: accum.h:142
double avgTaStar[MAX_IFS]
Definition: accum.h:72
float fitcurve[MAX_IFS][MAX_ACCUM_SCANS]
Definition: accum.h:90
float gdata[MAX_CONT_SAMPLES]
Definition: accum.h:119
struct HEADER head1
Definition: accum.h:141
int plot_select1
Definition: accum.h:55
char magic[16]
Definition: accum.h:53
#define MAX_GLABELS
Definition: accum.h:28
double avgJanskys[MAX_IFS]
Definition: accum.h:80
float ydata2[64]
Definition: accum.h:146
double coeff[MAX_IFS][MAX_NFIT]
Definition: accum.h:84
#define MAX_CONT_SAMPLES
Definition: accum.h:26
float smror
Definition: accum.h:37
float xdata[64]
Definition: accum.h:144
#define MAX_IFS
Definition: accum.h:5
float a
Definition: accum.h:127
double expectedJanskys[MAX_IFS]
Definition: accum.h:82
float sigmaB
Definition: accum.h:126