HOPS
HOPS class reference
Functions
mk4_util.h File Reference
#include <stdarg.h>
#include <sys/times.h>
#include "msg.h"
#include "account.h"
#include "fileset.h"
#include "fstruct.h"
#include "general.h"
#include "mk4_typedefs.h"

Go to the source code of this file.

Functions

void clear_date (date_struct *)
 
int confirm (char *)
 
void datec_to_datef (struct datec *, struct datef *)
 
void datef_to_datec (struct datef *, struct datec *)
 
short day_of_datef (struct datef)
 
double dmax (double, double)
 
double dmin (double, double)
 
void double_reverse (double *)
 
double dwin (double, double, double)
 
void environment (void)
 
void float_reverse (float *)
 
int get_abs_path (char[], char[])
 
int hptoie (int *, int *, int)
 
int hptoie4 (float *, float *)
 
int hptoie8 (double *, double *)
 
int imax (int, int)
 
int imin (int, int)
 
void int_reverse (int *)
 
void int_to_time (int, int *, int *, int *, int *, int *)
 
int ismk4 (char *, int)
 
int iwin (int, int, int)
 
void long_reverse (long *)
 
int report_times (struct time_account *, int, struct tms *, int, double)
 
void report_wallclock (int, int)
 
int root_belong (char *, char *)
 
char * root_id (int, int, int, int, int)
 
void sexigesimal2hrdeg (const struct sky_coord *c, float *ra, float *dec)
 
void short_reverse (short *)
 
int sort_names (fstruct *, int)
 
void syntax (char *)
 
double time_to_double (struct date)
 
int time_to_int (int, int, int, int, int)
 
void uint_reverse (unsigned int *)
 
void unsig_reverse (unsigned short *)
 
void version (char *)
 

Function Documentation

◆ clear_date()

void clear_date ( date_struct timetag)

◆ confirm()

int confirm ( char *  string)

◆ datec_to_datef()

void datec_to_datef ( struct datec input,
struct datef output 
)

◆ datef_to_datec()

void datef_to_datec ( struct datef input,
struct datec output 
)

◆ day_of_datef()

short day_of_datef ( struct datef  date)

◆ dmax()

double dmax ( double  a,
double  b 
)

◆ dmin()

double dmin ( double  a,
double  b 
)

◆ double_reverse()

void double_reverse ( double *  j)

◆ dwin()

double dwin ( double  value,
double  lower,
double  upper 
)

◆ environment()

void environment ( void  )

◆ float_reverse()

void float_reverse ( float *  j)

◆ get_abs_path()

int get_abs_path ( char  input[],
char  rootname[] 
)

◆ hptoie()

int hptoie ( int *  input,
int *  output,
int  type 
)

◆ hptoie4()

int hptoie4 ( float *  finput,
float *  foutput 
)

◆ hptoie8()

int hptoie8 ( double *  dinput,
double *  doutput 
)

◆ imax()

int imax ( int  i,
int  j 
)

◆ imin()

int imin ( int  i,
int  j 
)

◆ int_reverse()

void int_reverse ( int *  j)

◆ int_to_time()

void int_to_time ( int  tim,
int *  year,
int *  day,
int *  hour,
int *  min,
int *  sec 
)

◆ ismk4()

int ismk4 ( char *  name,
int  type 
)

◆ iwin()

int iwin ( int  value,
int  lower,
int  upper 
)

◆ long_reverse()

void long_reverse ( long *  j)

◆ report_times()

int report_times ( struct time_account t_acc,
int  nseg,
struct tms *  buf,
int  real,
double  time_unit 
)

◆ report_wallclock()

void report_wallclock ( int  npass,
int  totpass 
)

◆ root_belong()

int root_belong ( char *  rootname,
char *  dataname 
)

◆ root_id()

char* root_id ( int  year,
int  day,
int  hour,
int  min,
int  sec 
)

◆ sexigesimal2hrdeg()

void sexigesimal2hrdeg ( const struct sky_coord c,
float *  ra,
float *  dec 
)

◆ short_reverse()

void short_reverse ( short *  i)

◆ sort_names()

int sort_names ( fstruct files,
int  nfiles 
)

◆ syntax()

void syntax ( char *  headurl)

◆ time_to_double()

double time_to_double ( struct date  mk4_date)

◆ time_to_int()

int time_to_int ( int  year,
int  day,
int  hour,
int  min,
int  sec 
)

◆ uint_reverse()

void uint_reverse ( unsigned int *  j)

◆ unsig_reverse()

void unsig_reverse ( unsigned short *  i)

◆ version()

void version ( char *  headurl)