cfitsio  3390
Macros | Functions | Variables
fpackutil.c File Reference
#include <time.h>
#include <float.h>
#include <signal.h>
#include <ctype.h>
#include <math.h>
#include "fitsio.h"
#include "fpack.h"
Include dependency graph for fpackutil.c:

Macros

#define NINT(x)   ((x >= 0.) ? (int) (x + 0.5) : (int) (x - 0.5))
 
#define NSHRT(x)   ((x >= 0.) ? (short) (x + 0.5) : (short) (x - 0.5))
 
#define CLOCKTICKS   1000000
 

Functions

int fp_msg (char *msg)
 
int fp_noop (void)
 
void fp_abort_output (fitsfile *infptr, fitsfile *outfptr, int stat)
 
int fp_version (void)
 
int fp_access (char *filename)
 
int fp_tmpnam (char *suffix, char *rootname, char *tmpnam)
 
int fp_init (fpstate *fpptr)
 
int fp_list (int argc, char *argv[], fpstate fpvar)
 
int fp_info_hdu (fitsfile *infptr)
 
int fp_preflight (int argc, char *argv[], int unpack, fpstate *fpptr)
 
int fp_loop (int argc, char *argv[], int unpack, fpstate fpvar)
 
int fp_pack (char *infits, char *outfits, fpstate fpvar, int *islossless)
 
int fp_unpack (char *infits, char *outfits, fpstate fpvar)
 
int fp_test (char *infits, char *outfits, char *outfits2, fpstate fpvar)
 
int fp_pack_hdu (fitsfile *infptr, fitsfile *outfptr, fpstate fpvar, int *islossless, int *status)
 
int fp_unpack_hdu (fitsfile *infptr, fitsfile *outfptr, fpstate fpvar, int *status)
 
int fits_read_image_speed (fitsfile *infptr, float *whole_elapse, float *whole_cpu, float *row_elapse, float *row_cpu, int *status)
 
int fp_test_hdu (fitsfile *infptr, fitsfile *outfptr, fitsfile *outfptr2, fpstate fpvar, int *status)
 
int fp_test_table (fitsfile *infptr, fitsfile *outfptr, fitsfile *outfptr2, fpstate fpvar, int *status)
 
int marktime (int *status)
 
int gettime (float *elapse, float *elapscpu, int *status)
 
int fp_i2stat (fitsfile *infptr, int naxis, long *naxes, imgstats *imagestats, int *status)
 
int fp_i4stat (fitsfile *infptr, int naxis, long *naxes, imgstats *imagestats, int *status)
 
int fp_r4stat (fitsfile *infptr, int naxis, long *naxes, imgstats *imagestats, int *status)
 
int fp_i2rescale (fitsfile *infptr, int naxis, long *naxes, double rescale, fitsfile *outfptr, int *status)
 
int fp_i4rescale (fitsfile *infptr, int naxis, long *naxes, double rescale, fitsfile *outfptr, int *status)
 
void abort_fpack (int sig)
 

Variables

char tempfilename [SZ_STR]
 
char tempfilename2 [SZ_STR]
 
char tempfilename3 [SZ_STR]
 
clock_t scpu
 
clock_t ecpu
 
long startsec
 
int startmilli
 
FILE * outreport
 
int XSAMPLE = 4100
 
int YSAMPLE = 4100
 

Macro Definition Documentation

#define CLOCKTICKS   1000000
#define NINT (   x)    ((x >= 0.) ? (int) (x + 0.5) : (int) (x - 0.5))
#define NSHRT (   x)    ((x >= 0.) ? (short) (x + 0.5) : (short) (x - 0.5))

Function Documentation

void abort_fpack ( int  sig)

Here is the caller graph for this function:

int fits_read_image_speed ( fitsfile infptr,
float *  whole_elapse,
float *  whole_cpu,
float *  row_elapse,
float *  row_cpu,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void fp_abort_output ( fitsfile infptr,
fitsfile outfptr,
int  stat 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_access ( char *  filename)

Here is the caller graph for this function:

int fp_i2rescale ( fitsfile infptr,
int  naxis,
long *  naxes,
double  rescale,
fitsfile outfptr,
int *  status 
)

Here is the caller graph for this function:

int fp_i2stat ( fitsfile infptr,
int  naxis,
long *  naxes,
imgstats imagestats,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_i4rescale ( fitsfile infptr,
int  naxis,
long *  naxes,
double  rescale,
fitsfile outfptr,
int *  status 
)

Here is the caller graph for this function:

int fp_i4stat ( fitsfile infptr,
int  naxis,
long *  naxes,
imgstats imagestats,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_info_hdu ( fitsfile infptr)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_init ( fpstate fpptr)

Here is the caller graph for this function:

int fp_list ( int  argc,
char *  argv[],
fpstate  fpvar 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_loop ( int  argc,
char *  argv[],
int  unpack,
fpstate  fpvar 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_msg ( char *  msg)

Here is the caller graph for this function:

int fp_noop ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_pack ( char *  infits,
char *  outfits,
fpstate  fpvar,
int *  islossless 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_pack_hdu ( fitsfile infptr,
fitsfile outfptr,
fpstate  fpvar,
int *  islossless,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_preflight ( int  argc,
char *  argv[],
int  unpack,
fpstate fpptr 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_r4stat ( fitsfile infptr,
int  naxis,
long *  naxes,
imgstats imagestats,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_test ( char *  infits,
char *  outfits,
char *  outfits2,
fpstate  fpvar 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_test_hdu ( fitsfile infptr,
fitsfile outfptr,
fitsfile outfptr2,
fpstate  fpvar,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_test_table ( fitsfile infptr,
fitsfile outfptr,
fitsfile outfptr2,
fpstate  fpvar,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_tmpnam ( char *  suffix,
char *  rootname,
char *  tmpnam 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_unpack ( char *  infits,
char *  outfits,
fpstate  fpvar 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_unpack_hdu ( fitsfile infptr,
fitsfile outfptr,
fpstate  fpvar,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int fp_version ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

int gettime ( float *  elapse,
float *  elapscpu,
int *  status 
)

Here is the caller graph for this function:

int marktime ( int *  status)

Here is the caller graph for this function:

Variable Documentation

clock_t ecpu
FILE* outreport
clock_t scpu
int startmilli
long startsec
char tempfilename[SZ_STR]
char tempfilename2[SZ_STR]
char tempfilename3[SZ_STR]
int XSAMPLE = 4100
int YSAMPLE = 4100