Linuxpops
3.01.04
Spectral Anaysis Package for Single Dish Data
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
image.h
Go to the documentation of this file.
1
#ifndef IMAGE_H
2
#define IMAGE_H
3
4
#define MAX_PLOT_ARRAYS 4
5
6
struct
BASELINE_INFO
{
7
char
magic
[32];
/* From identifiing structure in sock comm */
8
int
doBaseLine
;
/* Remove baseline if true */
9
int
baselines
[
MAX_BASELINES
][2];
/* Baseline areas */
10
11
float
a
;
/* Lsqfit results SLOPE */
12
float
b
;
/* Lsqfit results INTERCEPT */
13
float
rms
;
/* RMS of baseline area */
14
};
15
16
/* Plotting criteria */
17
struct
PLOT_INFO
{
18
char
magic
[32];
19
20
int
markers
;
/* If non-zero, display channel markers in the plot */
21
int
plotStyle
;
/* POINTS, LINES, HISTO */
22
int
x1mode
;
/* CHAN, FREQ, VEL */
23
int
x2mode
;
/* CHAN, FREQ, VEL */
24
int
gridMode
;
/* Plot grid mode: X, Y, Full, None */
25
int
zline
;
/* Show zero line if true */
26
int
badchshow
;
/* Show the removed bad channels if true */
27
int
bmark
;
/* Show the baseline regions if true */
28
int
bshow
;
/* Show the baseline fitting if true */
29
int
mshow
;
/* Show the filter bank markers */
30
int
bdrop
;
/* Number of beginning channels to drop */
31
int
edrop
;
/* Number of ending channels to drop */
32
int
dobadch
;
/* Remove bad channels if specified */
33
int
yscale
;
/* AUTO vs. FIXED flag */
34
int
plot_noint
;
/* Actual number of plotable channels after any smoothing */
35
int
bplot
;
/* A baseline plot is available */
36
int
nspline
;
/* Number of B-spline coeef to use */
37
38
int
yplotmode
;
/* LINEAR vs. LOG plot */
39
40
float
paperw
;
/* User defined Width of PDF plot in inches */
41
float
paperh
;
/* User defined Height of PDF plot in inches */
42
float
ylower
;
/* User specified ploting lower range */
43
float
yupper
;
/* User specified ploting upper range */
44
float
plotmin
;
/* Minimum Plotting Range */
45
float
plotmax
;
/* Maximum Plotting Range */
46
};
47
48
/* Accumilator info */
49
struct
ACCUM_INFO
{
50
char
magic
[32];
51
int
scanct
;
/* Total number of scans added; if accum */
52
float
bscan
;
/* First scan Added */
53
float
escan
;
/* Last scan Added */
54
float
wt
;
/* Accumulated weight of total data */
55
};
56
57
struct
MISC_HEADER_PARAMS
{
58
char
backend
[8];
59
double
scan
;
60
double
restfreq
;
61
double
stsys
;
62
double
tcal
;
63
double
freqres
;
64
double
sideband
;
65
double
refpt
;
66
double
refpt_vel
;
67
double
deltax
;
68
};
69
70
71
struct
LP_IMAGE_INFO
{
72
char
magic
[32];
73
char
name
[32];
/* "H0", "H1", ... */
74
char
title
[256];
75
76
int
mode
;
/* CONT, SPEC, OTF */
77
int
peakChan
;
/* Channel/Velocity of peak Intensity */
78
int
plotwin
;
79
int
narray
;
/* Number of yplot arrays to follow */
80
int
nsize
;
/* Size, in bytes, of arrays that follow */
81
int
satActive
;
/* If true, there are strings, markers or lines to plot */
82
83
/* Because xgraphics can actually outrun the gnuplot program
84
we need to delay xgraphics a bit to allow gnuplot to
85
finish plotting before moving on to the next step; otherwise
86
files like /tmp/SESSION/scan.dem get over-written by xgraphics
87
while gnuplot is in the process of reading it.
88
This is expecially obvious when on a remote site; not local
89
and it takes gnuplot a finite amount of time to perform XWindow
90
functions */
91
int
xdelay
;
/* Delay xgraphics uses to account for slow internet In uSec */
92
int
issmt
;
/* If data is from SMT */
93
94
int
shifted
;
/* This data has beend shifted */
95
int
xaxisotfoff
;
/* If true, label X-Axis is offset: 1 = Ra, 2 = Dec */
;
96
97
float
datamin
;
/* Minimum Intensity */
98
float
datamax
;
/* Maximum Intensity */
99
100
struct
ACCUM_INFO
ainfo
;
101
struct
BASELINE_INFO
binfo
;
102
struct
PLOT_INFO
pinfo
;
103
struct
GAUSSIAN
ginfo
;
104
struct
HEADER
head
;
105
struct
MISC_HEADER_PARAMS
mhp
[
MAX_PLOT_ARRAYS
];
/* Contains info for quad display */
106
107
int
badChans
[
MAX_BAD_CHANS
];
108
109
/* These arrays are not transmitted when using external viewer */
110
float
yplot1
[
MAX_CHANS
];
/* Up to (MAX_PLOT_ARRAYS) plots available */
111
float
yplot2
[
MAX_CHANS
];
112
float
yplot3
[
MAX_CHANS
];
113
float
yplot4
[
MAX_CHANS
];
114
115
float
gplot
[
MAX_CHANS
];
/* Pre-filled Gaussian Array */
116
float
bplot
[
MAX_CHANS
];
/* Pre-filled baseline/bshape Array */
117
float
x1data
[
MAX_CHANS
];
/* X-Axis values */
118
float
x2data
[
MAX_CHANS
];
/* Values for top X2 Lables */
119
};
120
121
/* Define a constant for the size without the last 8 arrays */
122
#define SHORT_IMAGE_SIZE (sizeof(struct LP_IMAGE_INFO) - (8 * MAX_CHANS * sizeof(float)))
123
124
#endif
LP_IMAGE_INFO::yplot1
float yplot1[MAX_CHANS]
Definition:
image.h:110
LP_IMAGE_INFO::plotwin
int plotwin
Definition:
image.h:78
PLOT_INFO::dobadch
int dobadch
Definition:
image.h:32
MAX_BAD_CHANS
#define MAX_BAD_CHANS
Definition:
defines.h:43
PLOT_INFO::plotStyle
int plotStyle
Definition:
image.h:21
PLOT_INFO::zline
int zline
Definition:
image.h:25
ACCUM_INFO::wt
float wt
Definition:
image.h:54
LP_IMAGE_INFO::x2data
float x2data[MAX_CHANS]
Definition:
image.h:118
PLOT_INFO::nspline
int nspline
Definition:
image.h:36
LP_IMAGE_INFO::issmt
int issmt
Definition:
image.h:92
ACCUM_INFO::magic
char magic[32]
Definition:
image.h:50
PLOT_INFO::yupper
float yupper
Definition:
image.h:43
PLOT_INFO::bdrop
int bdrop
Definition:
image.h:30
PLOT_INFO::paperw
float paperw
Definition:
image.h:40
MISC_HEADER_PARAMS::sideband
double sideband
Definition:
image.h:64
LP_IMAGE_INFO::binfo
struct BASELINE_INFO binfo
Definition:
image.h:101
LP_IMAGE_INFO::nsize
int nsize
Definition:
image.h:80
MAX_CHANS
#define MAX_CHANS
Definition:
defines.h:38
ACCUM_INFO::escan
float escan
Definition:
image.h:53
LP_IMAGE_INFO::name
char name[32]
Definition:
image.h:73
HEADER
Definition:
header.h:13
PLOT_INFO
Definition:
image.h:17
PLOT_INFO::magic
char magic[32]
Definition:
image.h:18
PLOT_INFO::markers
int markers
Definition:
image.h:20
PLOT_INFO::edrop
int edrop
Definition:
image.h:31
ACCUM_INFO::bscan
float bscan
Definition:
image.h:52
LP_IMAGE_INFO::datamin
float datamin
Definition:
image.h:95
LP_IMAGE_INFO::pinfo
struct PLOT_INFO pinfo
Definition:
image.h:102
BASELINE_INFO::doBaseLine
int doBaseLine
Definition:
image.h:8
MAX_BASELINES
#define MAX_BASELINES
Definition:
defines.h:42
PLOT_INFO::paperh
float paperh
Definition:
image.h:41
LP_IMAGE_INFO::badChans
int badChans[MAX_BAD_CHANS]
Definition:
image.h:107
PLOT_INFO::x1mode
int x1mode
Definition:
image.h:22
PLOT_INFO::yplotmode
int yplotmode
Definition:
image.h:38
BASELINE_INFO::rms
float rms
Definition:
image.h:13
MISC_HEADER_PARAMS
Definition:
image.h:57
MISC_HEADER_PARAMS::refpt
double refpt
Definition:
image.h:65
MISC_HEADER_PARAMS::deltax
double deltax
Definition:
image.h:67
LP_IMAGE_INFO::yplot2
float yplot2[MAX_CHANS]
Definition:
image.h:111
LP_IMAGE_INFO::x1data
float x1data[MAX_CHANS]
Definition:
image.h:117
LP_IMAGE_INFO::xaxisotfoff
int xaxisotfoff
Definition:
image.h:95
LP_IMAGE_INFO::head
struct HEADER head
Definition:
image.h:104
PLOT_INFO::x2mode
int x2mode
Definition:
image.h:23
PLOT_INFO::bmark
int bmark
Definition:
image.h:27
LP_IMAGE_INFO::satActive
int satActive
Definition:
image.h:81
PLOT_INFO::badchshow
int badchshow
Definition:
image.h:26
PLOT_INFO::plotmax
float plotmax
Definition:
image.h:45
PLOT_INFO::plot_noint
int plot_noint
Definition:
image.h:34
LP_IMAGE_INFO::datamax
float datamax
Definition:
image.h:98
LP_IMAGE_INFO::mode
int mode
Definition:
image.h:76
MISC_HEADER_PARAMS::tcal
double tcal
Definition:
image.h:62
LP_IMAGE_INFO::ainfo
struct ACCUM_INFO ainfo
Definition:
image.h:100
PLOT_INFO::gridMode
int gridMode
Definition:
image.h:24
BASELINE_INFO::magic
char magic[32]
Definition:
image.h:7
PLOT_INFO::plotmin
float plotmin
Definition:
image.h:44
PLOT_INFO::bplot
int bplot
Definition:
image.h:35
PLOT_INFO::mshow
int mshow
Definition:
image.h:29
MAX_PLOT_ARRAYS
#define MAX_PLOT_ARRAYS
Definition:
image.h:4
MISC_HEADER_PARAMS::restfreq
double restfreq
Definition:
image.h:60
LP_IMAGE_INFO::gplot
float gplot[MAX_CHANS]
Definition:
image.h:115
PLOT_INFO::ylower
float ylower
Definition:
image.h:42
LP_IMAGE_INFO::magic
char magic[32]
Definition:
image.h:72
LP_IMAGE_INFO::xdelay
int xdelay
Definition:
image.h:91
LP_IMAGE_INFO::shifted
int shifted
Definition:
image.h:94
PLOT_INFO::bshow
int bshow
Definition:
image.h:28
LP_IMAGE_INFO::peakChan
int peakChan
Definition:
image.h:77
MISC_HEADER_PARAMS::scan
double scan
Definition:
image.h:59
BASELINE_INFO::baselines
int baselines[MAX_BASELINES][2]
Definition:
image.h:9
BASELINE_INFO::a
float a
Definition:
image.h:11
LP_IMAGE_INFO::mhp
struct MISC_HEADER_PARAMS mhp[MAX_PLOT_ARRAYS]
Definition:
image.h:105
ACCUM_INFO::scanct
int scanct
Definition:
image.h:51
MISC_HEADER_PARAMS::freqres
double freqres
Definition:
image.h:63
LP_IMAGE_INFO::narray
int narray
Definition:
image.h:79
BASELINE_INFO
Definition:
image.h:6
LP_IMAGE_INFO::bplot
float bplot[MAX_CHANS]
Definition:
image.h:116
ACCUM_INFO
Definition:
image.h:49
MISC_HEADER_PARAMS::backend
char backend[8]
Definition:
image.h:58
PLOT_INFO::yscale
int yscale
Definition:
image.h:33
BASELINE_INFO::b
float b
Definition:
image.h:12
LP_IMAGE_INFO::title
char title[256]
Definition:
image.h:74
MISC_HEADER_PARAMS::stsys
double stsys
Definition:
image.h:61
LP_IMAGE_INFO
Definition:
image.h:71
GAUSSIAN
Definition:
gaussian.h:23
MISC_HEADER_PARAMS::refpt_vel
double refpt_vel
Definition:
image.h:66
LP_IMAGE_INFO::yplot3
float yplot3[MAX_CHANS]
Definition:
image.h:112
LP_IMAGE_INFO::ginfo
struct GAUSSIAN ginfo
Definition:
image.h:103
LP_IMAGE_INFO::yplot4
float yplot4[MAX_CHANS]
Definition:
image.h:113
include
image.h
Generated on Mon Feb 21 2022 20:37:02 for Linuxpops by
1.8.5