Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sd_proto.h File Reference

Go to the source code of this file.

Functions

int to_helper (char *buf)
 
int to_xgraphic (char *buf)
 
int printKeySymHelp (void)
 
int do_help (char *buf)
 
int do_quit (void)
 
char * vxstrtok (char *string, char *last_token, char *delim)
 
int readMail (char *buf, int len)
 
int parseMail (char *buf)
 
int otfInit (void)
 
int main (int argc, char *argv[])
 
int myIOErrorHandler (Display *display, XErrorEvent *myerr)
 
int myErrorHandler (Display *display, XErrorEvent *myerr)
 
void signalHandler (void)
 
int exitProc (int status)
 
int dummieEventProc (XEvent *event)
 
struct WINDOW * createWindow (struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap, int which)
 
int createWindows (struct XGR_ *s, char *title, int cw, int ch, int xpos, int ypos, int bg, int usPixmap)
 
int argmatch (char *s1, char *s2, int atleast)
 
int usage (char *progname)
 
int mainFrameRepaint (void)
 
int verifyScanDone (int scn)
 
int insertScan (int scn)
 
int to_monitor (char *buf)
 
int to_rambo (char *buf)
 
int to_exec (char *buf)
 
int do_toggleFixData (char *buf)
 
int show_display (void)
 
int checkIgnoreScans (int v, double s)
 
int loadFile (int *be, int *modeid)
 
int showDisplay (void)
 
int main_loop (void)
 
int processEvent (struct XGR_ *s)
 
int set_sock_callback (int(*call)(void))
 
int synchronize (int v)
 
int determine_min_max (float *ydata, int dl, double scan)
 
int freeDataPointers (void)
 
int displaySingleOtfSpectra (void)
 
int getNumSpectra (double datalen, double noint)
 
int displayArrayGraph (double xb, double xe, double yb, double ye)
 
int displaySingleChan (double xb, double xe, double yb, double ye)
 
int stuffOtf (int plot, int *indxX, float *xArray, float *yArray)
 
int do_otf (struct HEADER *head)
 
int do_linetotalmapoff (void)
 
int do_lineotf (void)
 
int do_linedefault (void)
 
int subtractPredictedRA (float *data)
 
int scaleData (float *data)
 
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 checkBoot (struct BOOTSTRAP *b, char *fn)
 
int fixVel (struct HEADER *head)
 
int read_scan (double scan, char *filename, float **data, struct HEADER *head)
 
int modefield (int id, char *field)
 
int peekScan (double scan, char *filename, int *be, int *modeid, struct HEADER *head)
 
int xgr_graphInit (struct XGR_ *s)
 
int xgr_setNumColors (int n)
 
int xgr_setColorChoice (int c)
 
int loadGrayScale (struct XGR_ *s)
 
int flame (double a, double b, double x)
 
int loadFlameScale (struct XGR_ *s, int cindx)
 
int loadPseudoScale (struct XGR_ *s)
 
int xgr_freeWindows (struct XGR_ *s)
 
int xgr_setWindowSize (char *name, double x, double y)
 
int xgr_setCurWindow (int win, int which)
 
int xgr_pixmapToWindow (char *name)
 
int xgr_mapUnmapWindow (char *name, int map)
 
int xgr_findWindow (Display *dpy, Window win, struct WINDOW **w)
 
int xgr_putXimage (char *win_name, double fx, double fy, int w, int h, unsigned char *data)
 
int xgr_reSizeProc (Window window, int width, int height)
 
int xgr_eventProc (XEvent *event, Window window, unsigned int mask)
 
int xgr_rePaintProc (Window window)
 
struct WINDOW * xgr_getWin (Window win)
 
int xgr_hardCopy (char *win, int land, int rev, char *file)
 
int xgr_makeGif (char *win, char *file)
 
int xgr_clearScreen (void)
 
int xgr_clearArea (double x, double y, double dx, double dy)
 
int find_close_color (Display *dpy, Colormap cmap, XColor *exact_color, char *color)
 
int xgr_drawLine (float *xdata, float *ydata, int n, int color)
 
int xgr_drawLineDirect (double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color)
 
int xgr_drawPoints (double xmin, double xmax, double ymin, double ymax, float *xdata, float *ydata, int n, int color)
 
int xgr_drawBin (float *xdata, float *ydata, int n, int color)
 
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_drawBox (double x, double y, double x2, double y2, int color)
 
int xgr_setBox (double x, double y, double dx, double dy)
 
int xgr_drawFillBox (double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color)
 
int xgr_drawRectangle (double xmin, double xmax, double ymin, double ymax, double xl, double yt, double xr, double yb, int color, int bold)
 
int xgr_drawTextInGrid (double xmin, double xmax, double ymin, double ymax, double x, double y, char *msg, int color, int f)
 
int xgr_drawCircle (double xmin, double xmax, double ymin, double ymax, double x, double y, double w, double h, int color, int size)
 
int xgr_drawPosText (double x, double y, char *msg, int clr, int f)
 
int xgr_drawText (double x, double y, char *msg, int clr, int f)
 
int xgr_drawTextClear (double x, double y, char *msg, int clr, int f)
 
int xgr_drawPoint (float *xdata, float *ydata, int n, double xmin, double xmax, char *msg, int color, int f)
 
int xgr_drawOn (double x, double y, int n, double xmin, double xmax, char *msg, int color, int f)
 
int xgr_drawLabel (char *b1, char *b2, char *b3, int color)
 
int xgr_setFont (struct XGR_ *s, int f)
 
int setInValid (int w)
 
char ** findFixedFonts (Display *dpy, int *num)
 
int charcompare (char **s1, char **s2)
 
int setFrameFooter (char *msg, int lr)
 
int xgr_checkForEvents (void)
 

Function Documentation

int argmatch ( char *  s1,
char *  s2,
int  atleast 
)

Definition at line 559 of file dataserv.c.

int charcompare ( char **  s1,
char **  s2 
)

Definition at line 2458 of file xgr.c.

int checkBoot ( struct BOOTSTRAP *  b,
char *  fn 
)

Definition at line 15 of file read_scan.c.

int checkIgnoreScans ( int  v,
double  s 
)
struct WINDOW* createWindow ( struct XGR_ *  s,
char *  title,
int  cw,
int  ch,
int  xpos,
int  ypos,
int  bg,
int  usPixmap,
int  which 
)

Definition at line 415 of file dataserv.c.

int createWindows ( struct XGR_ *  s,
char *  title,
int  cw,
int  ch,
int  xpos,
int  ypos,
int  bg,
int  usPixmap 
)

Definition at line 512 of file dataserv.c.

int determine_min_max ( float *  ydata,
int  dl,
double  scan 
)
int displayArrayGraph ( double  xb,
double  xe,
double  yb,
double  ye 
)
int displaySingleChan ( double  xb,
double  xe,
double  yb,
double  ye 
)
int displaySingleOtfSpectra ( void  )

Definition at line 1419 of file specdata.c.

int do_help ( char *  buf)

Definition at line 419 of file mailparse.c.

int do_linedefault ( void  )

Definition at line 275 of file obsmodes.c.

int do_lineotf ( void  )

Definition at line 163 of file obsmodes.c.

int do_linetotalmapoff ( void  )

Definition at line 154 of file obsmodes.c.

int do_otf ( struct HEADER *  head)

Definition at line 1785 of file specdata.c.

int do_quit ( void  )

Definition at line 384 of file mailparse.c.

int do_toggleFixData ( char *  buf)

Definition at line 666 of file dataserv.c.

int dummieEventProc ( XEvent *  event)

Definition at line 388 of file dataserv.c.

int exitProc ( int  status)

Definition at line 371 of file dataserv.c.

int find_close_color ( Display *  dpy,
Colormap  cmap,
XColor *  exact_color,
char *  color 
)

Definition at line 981 of file xgr.c.

char** findFixedFonts ( Display *  dpy,
int *  num 
)

Definition at line 2351 of file xgr.c.

int fixVel ( struct HEADER *  head)

Definition at line 56 of file read_scan.c.

int flame ( double  a,
double  b,
double  x 
)

Definition at line 195 of file xgr.c.

int freeDataPointers ( void  )

Definition at line 330 of file obsmodes.c.

int getNumSpectra ( double  datalen,
double  noint 
)
int insertScan ( int  scn)

Definition at line 627 of file dataserv.c.

int loadFile ( int *  be,
int *  modeid 
)

Definition at line 1012 of file specdata.c.

int loadFlameScale ( struct XGR_ *  s,
int  cindx 
)

Definition at line 215 of file xgr.c.

int loadGrayScale ( struct XGR_ *  s)

Definition at line 168 of file xgr.c.

int loadPseudoScale ( struct XGR_ *  s)

Definition at line 279 of file xgr.c.

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 main ( int  argc,
char *  argv[] 
)

Definition at line 22 of file gpReadMouseTest.c.

int main_loop ( void  )

Definition at line 847 of file dataserv.c.

int mainFrameRepaint ( void  )

Definition at line 594 of file dataserv.c.

int modefield ( int  id,
char *  field 
)
int myErrorHandler ( Display *  display,
XErrorEvent *  myerr 
)

Definition at line 333 of file dataserv.c.

int myIOErrorHandler ( Display *  display,
XErrorEvent *  myerr 
)

Definition at line 314 of file dataserv.c.

int otfInit ( void  )

Definition at line 47 of file otf.c.

int parseMail ( char *  buf)

Definition at line 245 of file mailparse.c.

int peekScan ( double  scan,
char *  filename,
int *  be,
int *  modeid,
struct HEADER *  head 
)
int printKeySymHelp ( void  )

Definition at line 2891 of file otf.c.

int processEvent ( struct XGR_ *  s)

Definition at line 908 of file dataserv.c.

int read_scan ( double  scan,
char *  filename,
float **  data,
struct HEADER *  head 
)
int readMail ( char *  buf,
int  len 
)

Definition at line 223 of file mailparse.c.

int scaleData ( float *  data)

Definition at line 1691 of file otf.c.

int set_sock_callback ( int(*)(void)  call)
int setFrameFooter ( char *  msg,
int  lr 
)

Definition at line 2514 of file xgr.c.

int setInValid ( int  w)

Definition at line 2333 of file xgr.c.

int show_display ( void  )

Definition at line 680 of file dataserv.c.

int showDisplay ( void  )

Definition at line 690 of file dataserv.c.

void signalHandler ( void  )

Definition at line 351 of file dataserv.c.

int stuffOtf ( int  plot,
int *  indxX,
float *  xArray,
float *  yArray 
)

Definition at line 1714 of file specdata.c.

int subtractPredictedRA ( float *  data)

Definition at line 1715 of file otf.c.

int synchronize ( int  v)

Definition at line 1036 of file dataserv.c.

int to_exec ( char *  buf)

Definition at line 658 of file dataserv.c.

int to_helper ( char *  buf)

Definition at line 125 of file dataserv.c.

int to_monitor ( char *  buf)

Definition at line 641 of file dataserv.c.

int to_rambo ( char *  buf)

Definition at line 650 of file dataserv.c.

int to_xgraphic ( char *  buf)

Definition at line 139 of file dataserv.c.

int usage ( char *  progname)

Print usages and exit();

Returns
1

Definition at line 1473 of file linuxpops.c.

int verifyScanDone ( int  scn)

Definition at line 606 of file dataserv.c.

char* vxstrtok ( char *  string,
char *  last_token,
char *  delim 
)

Definition at line 655 of file mailparse.c.

int xgr_checkForEvents ( void  )

Definition at line 2547 of file xgr.c.

int xgr_clearArea ( double  x,
double  y,
double  dx,
double  dy 
)
int xgr_clearScreen ( void  )

Definition at line 921 of file xgr.c.

int xgr_drawBin ( float *  xdata,
float *  ydata,
int  n,
int  color 
)

Definition at line 1455 of file xgr.c.

int xgr_drawBox ( double  x,
double  y,
double  x2,
double  y2,
int  color 
)
int xgr_drawCircle ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  x,
double  y,
double  w,
double  h,
int  color,
int  size 
)
int xgr_drawFillBox ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  xl,
double  yt,
double  xr,
double  yb,
int  color 
)
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_drawLabel ( char *  b1,
char *  b2,
char *  b3,
int  color 
)

Definition at line 2164 of file xgr.c.

int xgr_drawLine ( float *  xdata,
float *  ydata,
int  n,
int  color 
)

Definition at line 1124 of file xgr.c.

int xgr_drawLineDirect ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
float *  xdata,
float *  ydata,
int  n,
int  color 
)
int xgr_drawOn ( double  x,
double  y,
int  n,
double  xmin,
double  xmax,
char *  msg,
int  color,
int  f 
)
int xgr_drawPoint ( float *  xdata,
float *  ydata,
int  n,
double  xmin,
double  xmax,
char *  msg,
int  color,
int  f 
)
int xgr_drawPoints ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
float *  xdata,
float *  ydata,
int  n,
int  color 
)
int xgr_drawPosText ( double  x,
double  y,
char *  msg,
int  clr,
int  f 
)
int xgr_drawRectangle ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  xl,
double  yt,
double  xr,
double  yb,
int  color,
int  bold 
)
int xgr_drawText ( double  x,
double  y,
char *  msg,
int  clr,
int  f 
)
int xgr_drawTextClear ( double  x,
double  y,
char *  msg,
int  clr,
int  f 
)
int xgr_drawTextInGrid ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  x,
double  y,
char *  msg,
int  color,
int  f 
)
int xgr_eventProc ( XEvent *  event,
Window  window,
unsigned int  mask 
)

Definition at line 762 of file xgr.c.

int xgr_findWindow ( Display *  dpy,
Window  win,
struct WINDOW **  w 
)

Definition at line 602 of file xgr.c.

int xgr_freeWindows ( struct XGR_ *  s)

Definition at line 348 of file xgr.c.

struct WINDOW* xgr_getWin ( Window  win)

Definition at line 826 of file xgr.c.

int xgr_graphInit ( struct XGR_ *  s)

Definition at line 71 of file xgr.c.

int xgr_hardCopy ( char *  win,
int  land,
int  rev,
char *  file 
)

Definition at line 851 of file xgr.c.

int xgr_makeGif ( char *  win,
char *  file 
)

Definition at line 887 of file xgr.c.

int xgr_mapUnmapWindow ( char *  name,
int  map 
)

Definition at line 568 of file xgr.c.

int xgr_pixmapToWindow ( char *  name)

Definition at line 530 of file xgr.c.

int xgr_putXimage ( char *  win_name,
double  fx,
double  fy,
int  w,
int  h,
unsigned char *  data 
)
int xgr_rePaintProc ( Window  window)

Definition at line 794 of file xgr.c.

int xgr_reSizeProc ( Window  window,
int  width,
int  height 
)

Definition at line 698 of file xgr.c.

int xgr_setBox ( double  x,
double  y,
double  dx,
double  dy 
)
int xgr_setColorChoice ( int  c)

Definition at line 106 of file xgr.c.

int xgr_setCurWindow ( int  win,
int  which 
)

Definition at line 483 of file xgr.c.

int xgr_setFont ( struct XGR_ *  s,
int  f 
)

Definition at line 2294 of file xgr.c.

int xgr_setNumColors ( int  n)

Definition at line 93 of file xgr.c.

int xgr_setWindowSize ( char *  name,
double  x,
double  y 
)