Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sd_proto.h
Go to the documentation of this file.
1 
2 /* specdata.c */
3 int to_helper(char *buf);
4 int to_xgraphic(char *buf);
5 int printKeySymHelp(void);
6 int do_help(char *buf);
7 int do_quit(void);
8 char *vxstrtok(char *string, char *last_token, char *delim);
9 int readMail(char *buf, int len);
10 int parseMail(char *buf);
11 int otfInit(void);
12 int main(int argc, char *argv[]);
13 int myIOErrorHandler(Display *display, XErrorEvent *myerr);
14 int myErrorHandler(Display *display, XErrorEvent *myerr);
15 void signalHandler(void);
16 int exitProc(int status);
17 int dummieEventProc(XEvent *event);
18 struct WINDOW *createWindow(struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap, int which);
19 int createWindows(struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap);
20 int argmatch(char *s1, char *s2, int atleast);
21 int usage(char *progname);
22 int mainFrameRepaint(void);
23 int verifyScanDone(int scn);
24 int insertScan(int scn);
25 int to_monitor(char *buf);
26 int to_rambo(char *buf);
27 int to_exec(char *buf);
28 int do_toggleFixData(char *buf);
29 int show_display(void);
30 int checkIgnoreScans(int v, double s);
31 int loadFile(int *be, int *modeid);
32 int showDisplay(void);
33 int main_loop(void);
34 int processEvent(struct XGR_ *s);
35 int set_sock_callback(int (*call)(void));
36 int synchronize(int v);
37 int determine_min_max(float *ydata, int dl, double scan);
38 int freeDataPointers(void);
39 int displaySingleOtfSpectra(void);
40 int getNumSpectra(double datalen, double noint);
41 int displayArrayGraph(double xb, double xe, double yb, double ye);
42 int displaySingleChan(double xb, double xe, double yb, double ye);
43 int stuffOtf(int plot, int *indxX, float *xArray, float *yArray);
44 int do_otf(struct HEADER *head);
45 int do_linetotalmapoff(void);
46 int do_lineotf(void);
47 int do_linedefault(void);
48 int subtractPredictedRA(float *data);
49 int scaleData(float *data);
50 int lsqfit(float x[], float y[], int bdata, int ndata, float sig[], int mwt, float *a, float *b, float *siga, float *sigb, float *chi2, float *q);
51 /* read_scan.c */
52 int checkBoot(struct BOOTSTRAP *b, char *fn);
53 int fixVel(struct HEADER *head);
54 int read_scan(double scan, char *filename, float **data, struct HEADER *head);
55 int modefield(int id, char *field);
56 int peekScan(double scan, char *filename, int *be, int *modeid, struct HEADER *head);
57 /* xgr.c */
58 int xgr_graphInit(struct XGR_ *s);
59 int xgr_setNumColors(int n);
60 int xgr_setColorChoice(int c);
61 int loadGrayScale(struct XGR_ *s);
62 int flame(double a, double b, double x);
63 int loadFlameScale(struct XGR_ *s, int cindx);
64 int loadPseudoScale(struct XGR_ *s);
65 int xgr_freeWindows(struct XGR_ *s);
66 int xgr_setWindowSize(char *name, double x, double y);
67 int xgr_setCurWindow(int win, int which);
68 int xgr_pixmapToWindow(char *name);
69 int xgr_mapUnmapWindow(char *name, int map);
70 int xgr_findWindow(Display *dpy, Window win, struct WINDOW **w);
71 int xgr_putXimage(char *win_name, double fx, double fy, int w, int h, unsigned char *data);
72 int xgr_reSizeProc(Window window, int width, int height);
73 int xgr_eventProc(XEvent *event, Window window, unsigned int mask);
74 int xgr_rePaintProc(Window window);
75 struct WINDOW *xgr_getWin(Window win);
76 int xgr_hardCopy(char *win, int land, int rev, char *file);
77 int xgr_makeGif(char *win, char *file);
78 int xgr_clearScreen(void);
79 int xgr_clearArea(double x, double y, double dx, double dy);
80 int find_close_color(Display *dpy, Colormap cmap, XColor *exact_color, char *color);
81 int xgr_drawLine(float *xdata, float *ydata, int n, int color);
82 int xgr_drawLineDirect(double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color);
83 int xgr_drawPoints(double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color);
84 int xgr_drawBin(float *xdata, float *ydata, int n, int color);
85 int xgr_drawGrid(double f1b, double f1e, double f2b, double f2e, int n1, int n2, int dx, int dy, int tick, int label, int clr1, int clr2, int format);
86 int xgr_drawBox(double x, double y, double x2, double y2, int color);
87 int xgr_setBox(double x, double y, double dx, double dy);
88 int xgr_drawFillBox(double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color);
89 int xgr_drawRectangle(double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color, int bold);
90 int xgr_drawTextInGrid(double xmin, double xmax, double ymin, double ymax, double x, double y, char *msg, int color, int f);
91 int xgr_drawCircle(double xmin, double xmax, double ymin, double ymax, double x, double y, double w, double h, int color, int size);
92 int xgr_drawPosText(double x, double y, char *msg, int clr, int f);
93 int xgr_drawText(double x, double y, char *msg, int clr, int f);
94 int xgr_drawTextClear(double x, double y, char *msg, int clr, int f);
95 int xgr_drawPoint(float *xdata, float *ydata, int n, double xmin, double xmax, char *msg, int color, int f);
96 int xgr_drawOn(double x, double y, int n, double xmin, double xmax, char *msg, int color, int f);
97 int xgr_drawLabel(char *b1, char *b2, char *b3, int color);
98 int xgr_setFont(struct XGR_ *s, int f);
99 int setInValid(int w);
100 char **findFixedFonts(Display *dpy, int *num);
101 int charcompare(char **s1, char **s2);
102 int setFrameFooter(char *msg, int lr);
103 int xgr_checkForEvents(void);
104 
105 #ifdef X_H
106 extern XImage *createXimage(Display *display, int w, int h, int depth);
107 #endif
int loadFile()
Definition: io.c:440
int to_rambo(char *buf)
Definition: dataserv.c:650
int main(void)
Definition: gsl_try_2.c:176
int xgr_drawGrid(double f1b, double f1e, double f2b, double f2e, int n1, int n2, int dx, int dy, int tick, int label, int clr1, int clr2, int format)
int xgr_drawLine(float *xdata, float *ydata, int n, int color)
Definition: xgr.c:1124
int xgr_drawBin(float *xdata, float *ydata, int n, int color)
Definition: xgr.c:1455
int printKeySymHelp(void)
Definition: otf.c:2891
int xgr_drawPosText(double x, double y, char *msg, int clr, int f)
int find_close_color(Display *dpy, Colormap cmap, XColor *exact_color, char *color)
Definition: xgr.c:981
int xgr_drawBox(double x, double y, double x2, double y2, int color)
int xgr_drawLabel(char *b1, char *b2, char *b3, int color)
Definition: xgr.c:2164
int xgr_makeGif(char *win, char *file)
Definition: xgr.c:887
int parseMail(char *buf)
Definition: mailparse.c:245
int myErrorHandler(Display *display, XErrorEvent *myerr)
Definition: dataserv.c:333
int to_monitor(char *buf)
Definition: dataserv.c:641
int scan
int datalen
Definition: dataserv.c:33
int xgr_drawTextInGrid(double xmin, double xmax, double ymin, double ymax, double x, double y, char *msg, int color, int f)
int xgr_drawText(double x, double y, char *msg, int clr, int f)
int freeDataPointers(void)
Definition: obsmodes.c:330
int determine_min_max(float *ydata, int dl, double scan)
int do_lineotf(void)
Definition: obsmodes.c:163
int read_scan()
char filename[256]
Definition: dataserv.c:49
int verifyScanDone(int scn)
Definition: dataserv.c:606
Definition: header.h:13
int xgr_freeWindows(struct XGR_ *s)
Definition: xgr.c:348
int xgr_putXimage(char *win_name, double fx, double fy, int w, int h, unsigned char *data)
int to_exec(char *buf)
Definition: dataserv.c:658
int stuffOtf(int plot, int *indxX, float *xArray, float *yArray)
Definition: specdata.c:1714
int mainFrameRepaint(void)
Definition: dataserv.c:594
int xgr_drawLineDirect(double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color)
int usPixmap
Definition: xgr.h:53
int flame(double a, double b, double x)
Definition: xgr.c:195
int modefield(int id, char *field)
int dummieEventProc(XEvent *event)
Definition: dataserv.c:388
int getNumSpectra(double datalen, double noint)
int xgr_setNumColors(int n)
Definition: xgr.c:93
XImage * createXimage(Display *display, int w, int h, int depth)
Definition: otf.c:4520
int do_help(char *buf)
Definition: mailparse.c:419
#define dy(i)
int lsqfit(float x[], float y[], int bdata, int ndata, float sig[], int mwt, float *a, float *b, float *siga, float *sigb, float *chi2, float *q)
int do_linedefault(void)
Definition: obsmodes.c:275
int displaySingleOtfSpectra(void)
Definition: specdata.c:1419
int xgr_drawFillBox(double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color)
struct WINDOW * xgr_getWin(Window win)
Definition: xgr.c:826
int setInValid(int w)
Definition: xgr.c:2333
int xgr_hardCopy(char *win, int land, int rev, char *file)
Definition: xgr.c:851
int do_linetotalmapoff(void)
Definition: obsmodes.c:154
int xgr_setWindowSize(char *name, double x, double y)
int xgr_drawPoint(float *xdata, float *ydata, int n, double xmin, double xmax, char *msg, int color, int f)
int checkIgnoreScans(int v, double s)
int otfInit(int init)
Definition: otf.c:423
int exitProc(int status)
Definition: dataserv.c:371
int loadGrayScale(struct XGR_ *s)
Definition: xgr.c:168
Definition: xgr.h:48
Definition: xgr.h:75
int xgr_findWindow(Display *dpy, Window win, struct WINDOW **w)
Definition: xgr.c:602
int displayArrayGraph(double xb, double xe, double yb, double ye)
int subtractPredictedRA(float *data)
Definition: otf.c:1715
int charcompare(char **s1, char **s2)
Definition: xgr.c:2458
int xgr_drawPoints(double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color)
int xgr_graphInit(struct XGR_ *s)
Definition: xgr.c:71
char title[256]
Definition: specplot.c:34
int xgr_reSizeProc(Window window, int width, int height)
Definition: xgr.c:698
int xgr_drawTextClear(double x, double y, char *msg, int clr, int f)
int xgr_eventProc(XEvent *event, Window window, unsigned int mask)
Definition: xgr.c:762
int displaySingleChan(double xb, double xe, double yb, double ye)
int main_loop(void)
Definition: dataserv.c:847
int usage(char *name)
Definition: linuxpops.c:1473
int do_toggleFixData(char *buf)
Definition: dataserv.c:666
Window win
Definition: xgr.h:52
int loadFlameScale(struct XGR_ *s, int cindx)
Definition: xgr.c:215
int insertScan(int scn)
Definition: dataserv.c:627
int loadPseudoScale(struct XGR_ *s)
Definition: xgr.c:279
int argmatch(char *s1, char *s2, int atleast)
Definition: dataserv.c:559
int synchronize(int v)
Definition: dataserv.c:1036
int xgr_setFont(struct XGR_ *s, int f)
Definition: xgr.c:2294
int fixVel(struct HEADER *head)
Definition: read_scan.c:56
int set_sock_callback(int(*call)(void))
float bdata[MAX_ATM_ELEMENTS]
Definition: atm.c:94
int xgr_setColorChoice(int c)
Definition: xgr.c:106
float xdata[MAX_ATM_ELEMENTS]
Definition: atm.c:90
int readMail(char *buf, int len)
Definition: mailparse.c:223
Definition: sdd.h:4
int checkBoot(struct BOOTSTRAP *b, char *fn)
Definition: read_scan.c:15
int do_otf(float *data, struct HEADER *head, float *offdata, float *gainsdata)
Definition: otf.c:1006
int peekScan(double scan, char *filename, int *be, int *modeid, struct HEADER *head)
int xgr_pixmapToWindow(char *name)
Definition: xgr.c:530
int setFrameFooter(char *msg, int lr)
Definition: xgr.c:2514
int myIOErrorHandler(Display *display, XErrorEvent *myerr)
Definition: dataserv.c:314
int xgr_clearArea(double x, double y, double dx, double dy)
int xgr_setBox(double x, double y, double dx, double dy)
int xgr_drawCircle(double xmin, double xmax, double ymin, double ymax, double x, double y, double w, double h, int color, int size)
char ** findFixedFonts(Display *dpy, int *num)
Definition: xgr.c:2351
char * vxstrtok(char *string, char *last_token, char *delim)
Definition: mailparse.c:655
int to_xgraphic(char *buf)
Definition: dataserv.c:139
int xgr_drawOn(double x, double y, int n, double xmin, double xmax, char *msg, int color, int f)
float ydata[MAX_ATM_ELEMENTS]
Definition: atm.c:91
int showDisplay(void)
Definition: dataserv.c:690
struct WINDOW * createWindow(struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap, int which)
Definition: dataserv.c:415
int scaleData(float *data)
Definition: otf.c:1691
int xgr_mapUnmapWindow(char *name, int map)
Definition: xgr.c:568
void signalHandler(void)
Definition: dataserv.c:351
int xgr_drawRectangle(double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color, int bold)
int do_quit(void)
Definition: mailparse.c:384
#define dx(i)
int show_display(void)
Definition: dataserv.c:680
int to_helper(char *buf)
Definition: dataserv.c:125
int xgr_rePaintProc(Window window)
Definition: xgr.c:794
int xgr_checkForEvents(void)
Definition: xgr.c:2547
int createWindows(struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap)
Definition: dataserv.c:512
int xgr_clearScreen(void)
Definition: xgr.c:921
int processEvent(struct XGR_ *s)
Definition: dataserv.c:908
int xgr_setCurWindow(int win, int which)
Definition: xgr.c:483