Daily_QC
Classes | Functions
misc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bad_values
 
struct  bad_daily_values
 
struct  max_min
 
struct  rec
 
struct  gp
 
struct  stim
 
struct  sens_ok
 
struct  stn_values
 
struct  stn_rec
 
struct  sens_rec
 
struct  save_rec
 
struct  hrap_data
 
struct  map
 
struct  rain
 
struct  stn
 
struct  rtn
 
struct  pdata
 
struct  rdata
 
struct  station
 
struct  Cur
 
struct  save
 
struct  abogus
 
struct  bogus
 
struct  area
 
struct  stream
 
struct  graph
 
struct  flood
 
struct  wx
 
struct  fparms
 
struct  mappoints
 
struct  maplayer
 
struct  MenuItem
 
struct  dval
 
struct  HRAP
 
struct  nexrad
 
struct  coord
 
struct  nexcoord
 
struct  top
 
struct  topo
 
struct  isoh
 
struct  h_grid
 
struct  gdata
 
struct  hdata
 
struct  hrap_grid
 
struct  gage
 
struct  pcp
 
struct  display_set
 

Functions

char * pars_argv (char **, char *)
 
char * pars_line (char *, char *, char *)
 
char * strno (char *, char)
 
int strdec (char *, int)
 
int draw_back (Pixmap, int, int)
 
int strfind (char *, char *)
 
struct HRAP HrapToLatLong (struct HRAP)
 
struct HRAP LatLongToHrap (float, float)
 
void get_NEXRAD_pixels (int, int, float, float, int)
 
void plot_NEXRAD (Pixmap, struct nexrad *, int, int)
 
void redraw_topo_legend (Drawable)
 
void redraw_edit_legend (Drawable, int, int, int)
 
void clear_pix_map (Pixmap)
 
void get_area_menu (FILE *)
 
void read_maps (char *)
 
Widget AttachToCascade (Widget, char *, Widget)
 
void get_topo_coord (char *)
 
void get_topo_pixels (int, int, float, float)
 
void calculate_NEXRAD (int, int)
 
float get_isohyet (int, int)
 
float get_lisohyet (float, float)
 
void berror (Widget, char *)
 
void plot_rain (Drawable, int, int, int)
 
void change_display_mode (Widget, XtPointer, XmDrawingAreaCallbackStruct *)
 
void map_select (Widget, XtPointer, XmDrawingAreaCallbackStruct *)
 
void change_scale (Widget, XtPointer, XmDrawingAreaCallbackStruct *)
 
void area_select (Widget, XtPointer)
 
void change_method (Widget, XtPointer, XmDrawingAreaCallbackStruct *)
 
void point_define (Widget, XtPointer, XmDrawingAreaCallbackStruct *)
 
void area_define (Widget, XtPointer, XmDrawingAreaCallbackStruct *)
 
void kill_widget (Widget, XtPointer, XtPointer)
 
void check_date (Widget, XtPointer, XtPointer)
 
void move_field (Widget, XtPointer, XtPointer)
 
void input_time (Widget, XtPointer, XtPointer)
 
void input_time_step (Widget, XtPointer, XtPointer)
 
void get_isohyet_coord (char *)
 
void redraw_map (int, int, unsigned int)
 
void draw_map (Drawable, int, int)
 
void get_NEXRAD_coord (void)
 
void read_NEXRAD (char *, struct nexrad *)
 
Widget BuildPulldownToggleMenu (Widget, char *, char, struct MenuItem *)
 
Widget BuildPulldownPushMenu (Widget, char *, char, struct MenuItem *)
 
void plot_qpf_points (Pixmap, int, int, int)
 
void plot_qpf_area (Pixmap pixm, int, int, int)
 
void move_area (int, int, int)
 
void plot_isoh (Pixmap, int, int)
 
void contour_isoh (Pixmap, int, int)
 
int macmartintest (double[500][2], int, double *)
 
void change_pcpn_legend (int, int)
 
void plot_topo (Pixmap, int, int)
 
void contour_topo (Pixmap, int, int)
 
void plot_pcpn (Pixmap pixm, int, int, char *, int)
 
void contour_pcpn (Pixmap pixm, int, int, char *, int)
 
void change_topo_legend (int, int)
 
void topo_select (void)
 
void change_topo (void)
 
void change_isohyet (void)
 
void change_NEXRAD (void)
 
void change_qpf (void)
 
void send_expose (void)
 
void redraw_isohyet_legend (Drawable)
 
void change_isohyet_legend (int, int)
 
void isohyet_select (void)
 
void Flush_Xbuffer (void)
 
void raster_select (void)
 
void foreground_select (void)
 
void write_screen (void)
 
void clear_drawable (Drawable)
 
void bogus_points (int, int, unsigned int, int)
 
void bogus_area (int, int, unsigned int, int)
 
void get_hrap_coord (double, double, double)
 
void change_edit_legend (Widget, XtPointer, XtPointer)
 
void render_qpf (int, char *)
 
void change_qpf_edit_legend (Widget, XtPointer, XtPointer)
 
void redraw_pcpn_legend (Drawable)
 
void get_lat_lon (int, int, float *, float *)
 
void get_isoh_pixels (int, int, float, float)
 
void Create_Colors (Display *)
 
void Create_Drawing_Colors (Display *)
 
void get_coord (double, double, double)
 
void get_topo (char *)
 
int read_qpf (time_t, int, int)
 
void create_area_menu (void)
 
void edit_stations (int, int, unsigned int)
 
void plot_stations (Pixmap, int, int, int)
 
void get_station_list (char *)
 
void change_legend_display (int, int)
 
void redraw_legend_display (Drawable)
 
void get_NEXRAD_data (time_t, int, char *)
 
void get_precipitation_data (time_t, int)
 
int read_precip_a (char *, time_t, int)
 
int read_precip_b (char *, time_t, int)
 
int read_monthly_precip_a (char *, int)
 
int read_monthly_precip_b (char *, int)
 
void make_map (int)
 
void area_callback (Widget, XtPointer, XtPointer)
 
void change_edit_stations (void)
 
void make_qpf_widget (void)
 
void change_rain (Widget, XtPointer, XmDrawingAreaCallbackStruct *)
 
void estimate_daily_stations (int)
 
void estimate_missing_stations (int)
 
void quality_control_stations (int)
 
void get_frzlvl_data (int)
 
void sum_qpf (void)
 
void render_pcp (int, int, int)
 
void make_pmap (void)
 
void plot_map (Pixmap, int, int, int)
 
void read_file (char *, int, struct pcp *)
 
void write_file (char *, int, struct pcp *)
 
void get_basin_data (char *, char *)
 
void make_fmap_file (void)
 
int hb5_search (int, char *, struct stn_rec *)
 
void make_sensor_list (struct stn_rec, struct sens_rec *, int)
 
struct stim get_new_date (struct stim)
 
void get_units (char *, char *)
 
void get_acronym (char *, char *)
 
void display_group_widgets (int)
 
void draw_area (int, int, int, int, int, int)
 
struct max_min get_max_min (struct stn_values *, int)
 
float get_delta_valu (int)
 
int get_delta_time (time_t, time_t)
 
void display_group_graphs (int)
 
int values_search (char *, char *, struct stim, struct stim, struct stn_values *)
 
int name_search (int, char *, struct stn_rec *)
 
int get_sensor_list (char *, struct sens_rec *)
 
void print_draw (int)
 
double get_best_stage (struct stn_values *, int)
 
double rh_to_dew (double, double)
 
double dew_to_rh (double, double)
 
double cel_to_far (double)
 
double far_to_cel (double)
 
void to_stage (char *, char, char, struct stn_values *, int)
 
long ouptime (int, int, int, int, int, int)
 
void time_series (int, int, unsigned int, char *)
 
void XmtWaitUntilMapped (Widget)
 
int sum_qpf_grids (int, int, int)
 
int read_map (char *, int)
 
int write_map (char *, int, time_t)
 
int get_bad_recs (char *, char *, struct sens_ok *)
 
char get_quality (struct sens_ok *, int, int, int)
 

Function Documentation

◆ area_callback()

void area_callback ( Widget  w,
XtPointer  client_data,
XtPointer  call_data 
)

Definition at line 1080 of file daily_qc.c.

◆ area_define()

void area_define ( Widget  ,
XtPointer  ,
XmDrawingAreaCallbackStruct *   
)

◆ area_select()

void area_select ( Widget  w,
XtPointer  data 
)

Definition at line 2247 of file daily_qc.c.

◆ AttachToCascade()

Widget AttachToCascade ( Widget  parent,
char *  label,
Widget  sub_menu 
)

Definition at line 1225 of file daily_qc.c.

◆ berror()

void berror ( Widget  widget,
char *  string 
)

Definition at line 6411 of file daily_qc.c.

◆ bogus_area()

void bogus_area ( int  ,
int  ,
unsigned int  ,
int   
)

◆ bogus_points()

void bogus_points ( int  ,
int  ,
unsigned int  ,
int   
)

◆ BuildPulldownPushMenu()

Widget BuildPulldownPushMenu ( Widget  parent,
char *  menu_title,
char  menu_mnemonic,
struct MenuItem items 
)

Definition at line 1115 of file daily_qc.c.

◆ BuildPulldownToggleMenu()

Widget BuildPulldownToggleMenu ( Widget  parent,
char *  menu_title,
char  menu_mnemonic,
struct MenuItem items 
)

Definition at line 1143 of file daily_qc.c.

◆ calculate_NEXRAD()

void calculate_NEXRAD ( int  ,
int   
)

◆ cel_to_far()

double cel_to_far ( double  )

◆ change_display_mode()

void change_display_mode ( Widget  ,
XtPointer  ,
XmDrawingAreaCallbackStruct *   
)

◆ change_edit_legend()

void change_edit_legend ( Widget  ,
XtPointer  ,
XtPointer   
)

◆ change_edit_stations()

void change_edit_stations ( void  )

Definition at line 3077 of file daily_qc.c.

◆ change_isohyet()

void change_isohyet ( void  )

◆ change_isohyet_legend()

void change_isohyet_legend ( int  ,
int   
)

◆ change_legend_display()

void change_legend_display ( int  ,
int   
)
Here is the caller graph for this function:

◆ change_method()

void change_method ( Widget  w,
XtPointer  data,
XmDrawingAreaCallbackStruct *  call_data 
)

Definition at line 2239 of file daily_qc.c.

◆ change_NEXRAD()

void change_NEXRAD ( void  )

◆ change_pcpn_legend()

void change_pcpn_legend ( int  ,
int   
)
Here is the caller graph for this function:

◆ change_qpf()

void change_qpf ( void  )

◆ change_qpf_edit_legend()

void change_qpf_edit_legend ( Widget  ,
XtPointer  ,
XtPointer   
)

◆ change_rain()

void change_rain ( Widget  ,
XtPointer  ,
XmDrawingAreaCallbackStruct *   
)

◆ change_scale()

void change_scale ( Widget  ,
XtPointer  ,
XmDrawingAreaCallbackStruct *   
)

◆ change_topo()

void change_topo ( void  )

◆ change_topo_legend()

void change_topo_legend ( int  ,
int   
)
Here is the caller graph for this function:

◆ check_date()

void check_date ( Widget  ,
XtPointer  ,
XtPointer   
)

◆ clear_drawable()

void clear_drawable ( Drawable  pixw)

Definition at line 1607 of file daily_qc.c.

◆ clear_pix_map()

void clear_pix_map ( Pixmap  )

◆ contour_isoh()

void contour_isoh ( Pixmap  ,
int  ,
int   
)

◆ contour_pcpn()

void contour_pcpn ( Pixmap  pixm,
int  ,
int  ,
char *  ,
int   
)
Here is the caller graph for this function:

◆ contour_topo()

void contour_topo ( Pixmap  ,
int  ,
int   
)
Here is the caller graph for this function:

◆ create_area_menu()

void create_area_menu ( void  )

Definition at line 913 of file daily_qc.c.

◆ Create_Colors()

void Create_Colors ( Display *  pdisplay)

Definition at line 1240 of file daily_qc.c.

◆ Create_Drawing_Colors()

void Create_Drawing_Colors ( Display *  )

◆ dew_to_rh()

double dew_to_rh ( double  ,
double   
)

◆ display_group_graphs()

void display_group_graphs ( int  )

◆ display_group_widgets()

void display_group_widgets ( int  )

◆ draw_area()

void draw_area ( int  k,
int  m,
int  xs,
int  ys,
int  xz,
int  yz 
)

Definition at line 306 of file display_data.c.

◆ draw_back()

int draw_back ( Pixmap  ,
int  ,
int   
)

◆ draw_map()

void draw_map ( Drawable  ,
int  ,
int   
)
Here is the caller graph for this function:

◆ edit_stations()

void edit_stations ( int  win_x,
int  win_y,
unsigned int  win_button 
)

Definition at line 14 of file edit_stations.c.

◆ estimate_daily_stations()

void estimate_daily_stations ( int  j)

Definition at line 4 of file estimate_daily_stations.c.

◆ estimate_missing_stations()

void estimate_missing_stations ( int  j)

Definition at line 4 of file estimate_missing_stations.c.

◆ far_to_cel()

double far_to_cel ( double  )

◆ Flush_Xbuffer()

void Flush_Xbuffer ( void  )

◆ foreground_select()

void foreground_select ( void  )

Definition at line 5912 of file daily_qc.c.

◆ get_acronym()

void get_acronym ( char *  ibuf,
char *  sbuf 
)

Definition at line 1653 of file display_data.c.

◆ get_area_menu()

void get_area_menu ( FILE *  )
Here is the caller graph for this function:

◆ get_bad_recs()

int get_bad_recs ( char *  ,
char *  ,
struct sens_ok  
)

◆ get_basin_data()

void get_basin_data ( char *  ,
char *   
)
Here is the caller graph for this function:

◆ get_best_stage()

double get_best_stage ( struct stn_values ,
int   
)

◆ get_coord()

void get_coord ( double  ,
double  ,
double   
)

◆ get_delta_time()

int get_delta_time ( time_t  lbtim,
time_t  letim 
)

Definition at line 1203 of file display_data.c.

◆ get_delta_valu()

float get_delta_valu ( int  diff)

Definition at line 1242 of file display_data.c.

◆ get_frzlvl_data()

void get_frzlvl_data ( int  ii)

Definition at line 8 of file get_frzlvl_data.c.

◆ get_hrap_coord()

void get_hrap_coord ( double  ,
double  ,
double   
)

◆ get_isoh_pixels()

void get_isoh_pixels ( int  ,
int  ,
float  ,
float   
)

◆ get_isohyet()

float get_isohyet ( int  ,
int   
)

◆ get_isohyet_coord()

void get_isohyet_coord ( char *  )

◆ get_lat_lon()

void get_lat_lon ( int  ,
int  ,
float *  ,
float *   
)

◆ get_lisohyet()

float get_lisohyet ( float  ,
float   
)
Here is the caller graph for this function:

◆ get_max_min()

struct max_min get_max_min ( struct stn_values stn_values,
int  inum 
)

Definition at line 306 of file display_data.c.

Here is the caller graph for this function:

◆ get_new_date()

struct stim get_new_date ( struct stim  )

◆ get_NEXRAD_coord()

void get_NEXRAD_coord ( void  )

◆ get_NEXRAD_data()

void get_NEXRAD_data ( time_t  ,
int  ,
char *   
)

◆ get_NEXRAD_pixels()

void get_NEXRAD_pixels ( int  ,
int  ,
float  ,
float  ,
int   
)

◆ get_precipitation_data()

void get_precipitation_data ( time_t  ,
int   
)

◆ get_quality()

char get_quality ( struct sens_ok ,
int  ,
int  ,
int   
)

◆ get_sensor_list()

int get_sensor_list ( char *  ,
struct sens_rec  
)

◆ get_station_list()

void get_station_list ( char *  )
Here is the caller graph for this function:

◆ get_topo()

void get_topo ( char *  )

◆ get_topo_coord()

void get_topo_coord ( char *  )

◆ get_topo_pixels()

void get_topo_pixels ( int  ,
int  ,
float  ,
float   
)

◆ get_units()

void get_units ( char *  ibuf,
char *  sbuf 
)

Definition at line 1611 of file display_data.c.

◆ hb5_search()

int hb5_search ( int  ,
char *  ,
struct stn_rec  
)

◆ HrapToLatLong()

struct HRAP HrapToLatLong ( struct HRAP  )
Here is the caller graph for this function:

◆ input_time()

void input_time ( Widget  ,
XtPointer  ,
XtPointer   
)

◆ input_time_step()

void input_time_step ( Widget  ,
XtPointer  ,
XtPointer   
)

◆ isohyet_select()

void isohyet_select ( void  )

Definition at line 5969 of file daily_qc.c.

◆ kill_widget()

void kill_widget ( Widget  widget,
XtPointer  client_data,
XtPointer  call_data 
)

Definition at line 6473 of file daily_qc.c.

◆ LatLongToHrap()

struct HRAP LatLongToHrap ( float  ,
float   
)
Here is the caller graph for this function:

◆ macmartintest()

int macmartintest ( double  [500][2],
int  ,
double *   
)
Here is the caller graph for this function:

◆ make_fmap_file()

void make_fmap_file ( void  )

◆ make_map()

void make_map ( int  )
Here is the caller graph for this function:

◆ make_pmap()

void make_pmap ( void  )

◆ make_qpf_widget()

void make_qpf_widget ( void  )

◆ make_sensor_list()

void make_sensor_list ( struct stn_rec  ,
struct sens_rec ,
int   
)

◆ map_select()

void map_select ( Widget  ,
XtPointer  ,
XmDrawingAreaCallbackStruct *   
)

◆ move_area()

void move_area ( int  ,
int  ,
int   
)

◆ move_field()

void move_field ( Widget  ,
XtPointer  ,
XtPointer   
)

◆ name_search()

int name_search ( int  ,
char *  ,
struct stn_rec  
)

◆ ouptime()

long ouptime ( int  ,
int  ,
int  ,
int  ,
int  ,
int   
)
Here is the caller graph for this function:

◆ pars_argv()

char* pars_argv ( char **  ,
char *   
)

◆ pars_line()

char* pars_line ( char *  ,
char *  ,
char *   
)
Here is the caller graph for this function:

◆ plot_isoh()

void plot_isoh ( Pixmap  ,
int  ,
int   
)

◆ plot_map()

void plot_map ( Pixmap  ,
int  ,
int  ,
int   
)
Here is the caller graph for this function:

◆ plot_NEXRAD()

void plot_NEXRAD ( Pixmap  ,
struct nexrad ,
int  ,
int   
)

◆ plot_pcpn()

void plot_pcpn ( Pixmap  pixm,
int  ,
int  ,
char *  ,
int   
)
Here is the caller graph for this function:

◆ plot_qpf_area()

void plot_qpf_area ( Pixmap  pixm,
int  ,
int  ,
int   
)

◆ plot_qpf_points()

void plot_qpf_points ( Pixmap  ,
int  ,
int  ,
int   
)

◆ plot_rain()

void plot_rain ( Drawable  ,
int  ,
int  ,
int   
)

◆ plot_stations()

void plot_stations ( Pixmap  ,
int  ,
int  ,
int   
)
Here is the caller graph for this function:

◆ plot_topo()

void plot_topo ( Pixmap  ,
int  ,
int   
)
Here is the caller graph for this function:

◆ point_define()

void point_define ( Widget  ,
XtPointer  ,
XmDrawingAreaCallbackStruct *   
)

◆ print_draw()

void print_draw ( int  )

◆ quality_control_stations()

void quality_control_stations ( int  j)

Definition at line 4 of file bu.c.

◆ raster_select()

void raster_select ( void  )

◆ read_file()

void read_file ( char *  ,
int  ,
struct pcp  
)

◆ read_map()

int read_map ( char *  ,
int   
)

◆ read_maps()

void read_maps ( char *  )

◆ read_monthly_precip_a()

int read_monthly_precip_a ( char *  ,
int   
)

◆ read_monthly_precip_b()

int read_monthly_precip_b ( char *  ,
int   
)

◆ read_NEXRAD()

void read_NEXRAD ( char *  ,
struct nexrad  
)

◆ read_precip_a()

int read_precip_a ( char *  fname,
time_t  tget,
int  i 
)

Definition at line 3 of file read_precip_a.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_precip_b()

int read_precip_b ( char *  fname,
time_t  tget,
int  i 
)

Definition at line 4 of file read_precip_b.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_qpf()

int read_qpf ( time_t  ,
int  ,
int   
)

◆ redraw_edit_legend()

void redraw_edit_legend ( Drawable  ,
int  ,
int  ,
int   
)

◆ redraw_isohyet_legend()

void redraw_isohyet_legend ( Drawable  )
Here is the caller graph for this function:

◆ redraw_legend_display()

void redraw_legend_display ( Drawable  )
Here is the caller graph for this function:

◆ redraw_map()

void redraw_map ( int  ,
int  ,
unsigned int   
)
Here is the caller graph for this function:

◆ redraw_pcpn_legend()

void redraw_pcpn_legend ( Drawable  )
Here is the caller graph for this function:

◆ redraw_topo_legend()

void redraw_topo_legend ( Drawable  )
Here is the caller graph for this function:

◆ render_pcp()

void render_pcp ( int  ,
int  ,
int   
)
Here is the caller graph for this function:

◆ render_qpf()

void render_qpf ( int  ,
char *   
)

◆ rh_to_dew()

double rh_to_dew ( double  ,
double   
)

◆ send_expose()

void send_expose ( void  )

Definition at line 6117 of file daily_qc.c.

◆ strdec()

int strdec ( char *  ,
int   
)

◆ strfind()

int strfind ( char *  ,
char *   
)

◆ strno()

char* strno ( char *  ,
char   
)

◆ sum_qpf()

void sum_qpf ( void  )

◆ sum_qpf_grids()

int sum_qpf_grids ( int  ,
int  ,
int   
)

◆ time_series()

void time_series ( int  ,
int  ,
unsigned int  ,
char *   
)

◆ to_stage()

void to_stage ( char *  hb5,
char  pe1,
char  pe2,
struct stn_values stn_values,
int  inum 
)

Definition at line 1791 of file display_data.c.

◆ topo_select()

void topo_select ( void  )

Definition at line 5923 of file daily_qc.c.

◆ values_search()

int values_search ( char *  ,
char *  ,
struct stim  ,
struct stim  ,
struct stn_values  
)

◆ write_file()

void write_file ( char *  ,
int  ,
struct pcp  
)
Here is the caller graph for this function:

◆ write_map()

int write_map ( char *  ,
int  ,
time_t   
)

◆ write_screen()

void write_screen ( void  )

Definition at line 1623 of file daily_qc.c.

◆ XmtWaitUntilMapped()

void XmtWaitUntilMapped ( Widget  )
Here is the caller graph for this function: