Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
specplot.c File Reference
#include "ds_extern.h"
#include "dataserv.bmp"
#include "sp_proto.h"

Go to the source code of this file.

Classes

struct  MAIL_PARSE
 
struct  STURCT_KEYSYMS
 

Macros

#define ROW0   (0.96)
 
#define ROW1   (0.92)
 
#define ROW2   (0.88)
 
#define ROW3   (0.84)
 
#define DATASPREAD   (0.000001)
 
#define MAX_KEYSYMS   (sizeof(keysyms) / sizeof(struct STURCT_KEYSYMS))
 

Functions

int insque ()
 
int remque ()
 
int to_helper (char *buf)
 
int to_dataserv (char *buf)
 
int do_quit ()
 
int printKeySymHelp ()
 
int do_help (char *buf)
 
int doSpecWinRepaint ()
 
int doSpecWinReSize ()
 
int putChanTemp (int c, float t)
 
int checkKeyPress (XEvent *event)
 
int doSpecPlotWinEvent (XEvent *event, unsigned int mask)
 
char * vxstrtok (char *string, char *last_token, char *delim)
 
int readMail (char *buf, int len)
 
int parseMail (char *buf)
 
int myIOErrorHandler (Display *display, XErrorEvent *myerr)
 
int myErrorHandler (Display *display, XErrorEvent *myerr)
 
void signalHandler ()
 
int exitProc (int status)
 
int processEvent (struct XGR_ *s)
 
XImage * createXimage (Display *display, int w, int h, int depth)
 
int determine_min_max (float *ydata, int dl, float scan)
 
int putHeader (struct DS_IMAGE_INFO *image)
 
int display_image (float xb, float xe, float yb, float ye, struct DS_IMAGE_INFO *im)
 
int doSpecPlot (struct DS_IMAGE_INFO *im)
 
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 main_loop ()
 
int set_sock_callback (int(*call)())
 
int main (int argc, argv)
 

Variables

int debug = 0
 
int zerodata = 0
 
int globalUsPixmap = 1
 
int(* sock_callback )() = NULL
 
char inMsg [16384]
 
float startRes
 
float scanNum
 
float datamax
 
float datamin
 
float globalStart
 
float globalStop
 
struct DS_IMAGE_INFO last_image
 
char * months []
 
int lockScale
 
struct XGR_HEAD xgr_head
 
struct XGR_ * server
 
char deadServer [256]
 
char prgName [256]
 
char localHost [256]
 
char tfile [256]
 
char title [256]
 
char mainFrameTitle [256]
 
struct SOCK * dataserv
 
struct SOCK * helper
 
long frame_mask = KeyPressMask | ExposureMask | StructureNotifyMask
 
struct OTF_STRUCT * myotf
 
struct MAIL_PARSE parse_table []
 
struct STURCT_KEYSYMS keysyms []
 

Macro Definition Documentation

#define DATASPREAD   (0.000001)

Definition at line 11 of file specplot.c.

#define MAX_KEYSYMS   (sizeof(keysyms) / sizeof(struct STURCT_KEYSYMS))

Definition at line 84 of file specplot.c.

#define ROW0   (0.96)

Definition at line 7 of file specplot.c.

#define ROW1   (0.92)

Definition at line 8 of file specplot.c.

#define ROW2   (0.88)

Definition at line 9 of file specplot.c.

#define ROW3   (0.84)

Definition at line 10 of file specplot.c.

Function Documentation

int checkKeyPress ( XEvent *  event)

Definition at line 257 of file specplot.c.

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 1059 of file specplot.c.

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

Definition at line 1160 of file specplot.c.

XImage* createXimage ( Display *  display,
int  w,
int  h,
int  depth 
)

Definition at line 747 of file specplot.c.

int determine_min_max ( float *  ydata,
int  dl,
float  scan 
)

Definition at line 785 of file specplot.c.

int display_image ( float  xb,
float  xe,
float  yb,
float  ye,
struct DS_IMAGE_INFO *  im 
)

Definition at line 883 of file specplot.c.

int do_help ( char *  buf)

Definition at line 169 of file specplot.c.

int do_quit ( void  )

Definition at line 114 of file specplot.c.

int doSpecPlot ( struct DS_IMAGE_INFO *  im)

Definition at line 964 of file specplot.c.

int doSpecPlotWinEvent ( XEvent *  event,
unsigned int  mask 
)

Definition at line 404 of file specplot.c.

int doSpecWinRepaint ( void  )

Definition at line 211 of file specplot.c.

int doSpecWinReSize ( void  )

Definition at line 227 of file specplot.c.

int exitProc ( int  status)

Definition at line 666 of file specplot.c.

int insque ( )
int main ( int  argc,
argv   
)

Definition at line 1300 of file specplot.c.

int main_loop ( void  )

Definition at line 1230 of file specplot.c.

int myErrorHandler ( Display *  display,
XErrorEvent *  myerr 
)

Definition at line 628 of file specplot.c.

int myIOErrorHandler ( Display *  display,
XErrorEvent *  myerr 
)

Definition at line 609 of file specplot.c.

int parseMail ( char *  buf)

Definition at line 574 of file specplot.c.

int printKeySymHelp ( void  )

Definition at line 121 of file specplot.c.

int processEvent ( struct XGR_ *  s)

Definition at line 675 of file specplot.c.

int putChanTemp ( int  c,
float  t 
)

Definition at line 238 of file specplot.c.

int putHeader ( struct DS_IMAGE_INFO *  image)

Definition at line 819 of file specplot.c.

int readMail ( char *  buf,
int  len 
)

Definition at line 539 of file specplot.c.

int remque ( )
int set_sock_callback ( int (*)()  call)

Definition at line 1291 of file specplot.c.

void signalHandler ( void  )

Definition at line 647 of file specplot.c.

int to_dataserv ( char *  buf)

Definition at line 100 of file specplot.c.

int to_helper ( char *  buf)

Definition at line 86 of file specplot.c.

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

Definition at line 482 of file specplot.c.

Variable Documentation

float datamax

Definition at line 22 of file specplot.c.

float datamin

Definition at line 22 of file specplot.c.

struct SOCK* dataserv

Definition at line 38 of file specplot.c.

char deadServer[256]

Definition at line 34 of file specplot.c.

int debug = 0

Definition at line 13 of file specplot.c.

long frame_mask = KeyPressMask | ExposureMask | StructureNotifyMask

Definition at line 41 of file specplot.c.

float globalStart

Definition at line 22 of file specplot.c.

float globalStop

Definition at line 22 of file specplot.c.

int globalUsPixmap = 1

Definition at line 15 of file specplot.c.

struct SOCK * helper

Definition at line 38 of file specplot.c.

char inMsg[16384]

Definition at line 18 of file specplot.c.

struct STURCT_KEYSYMS keysyms[]
Initial value:
= {
{ XK_Up, 1, "Up-Arrow", "Move Integration Region Up" },
{ XK_Down, 1, "Down-Arrow", "Move Integration Region Down" },
{ XK_Up, 1, "<Control> Up-Arrow", "Move Upper Integration Channel Up" },
{ XK_Down, 1, "<Control> Down-Arrow", "Move Upper Integration Channel Down" },
{ XK_Up, 1, "<shift> Up-Arrow", "Move Lower Integration Channel Up" },
{ XK_Down, 1, "<shift> Down-Arrow", "Move Lower Integration Channel Down" },
{ XK_p, 1, "<control> + p", "Screen Capture Spectrum Plot" }
}

Definition at line 74 of file specplot.c.

struct DS_IMAGE_INFO last_image

Definition at line 23 of file specplot.c.

char localHost[256]

Definition at line 34 of file specplot.c.

int lockScale

Definition at line 31 of file xgr.c.

char mainFrameTitle[256]

Definition at line 34 of file specplot.c.

char* months[]
Initial value:
= { "Jan","Feb","Mar","Apr","May","Jun",
"Jul","Aug","Sep","Oct","Nov","Dec" }

Definition at line 25 of file specplot.c.

struct OTF_STRUCT* myotf

Definition at line 43 of file specplot.c.

struct MAIL_PARSE parse_table[]
Initial value:
= {
{ "help", 0, 0, 0, 0, NULL, NULL, 4, do_help, "Displays this list"},
{ "quit", 0, 0, 0, 0, NULL, NULL, 4, do_quit, "Exit program"},
{ NULL, 0, 0, 0, 0, NULL, NULL, 0, (void *)0, NULL }
}
int do_help(char *buf)
Definition: mailparse.c:419
int do_quit(void)
Definition: mailparse.c:384

Definition at line 59 of file specplot.c.

char prgName[256]

Definition at line 34 of file specplot.c.

float scanNum

Definition at line 22 of file specplot.c.

struct XGR_* server

Definition at line 30 of file specplot.c.

int(* sock_callback)() = NULL

Definition at line 17 of file specplot.c.

float startRes

Definition at line 22 of file specplot.c.

char tfile[256]

Definition at line 34 of file specplot.c.

char title[256]

Definition at line 34 of file specplot.c.

struct XGR_HEAD xgr_head

Definition at line 36 of file xgr.c.

int zerodata = 0

Definition at line 14 of file specplot.c.