regcntsSubs.c
/* if no bkg file is specified, use the src */
if no bkg file is specified, use the src
if no bkg file is specified use the src
void regcntsBkgDataFromSrc(Data src, Data bkg){
  bkg->x0 = src->x0;
  bkg->x1 = src->x1; 
  bkg->y0 = src->y0;
  bkg->y1 = src->y1; 
  bkg->dim1 = src->dim1;
  bkg->bitpix = src->bitpix;
  bkg->block = src->block;
  bkg->cards = src->cards;
  bkg->data = src->data;
  bkg->fromsrc = 1;
#if USE_CFITSIO
  bkg->fptr = src->fptr;
#elif USE_FUNTOOLS
  bkg->fun = src->fun;
  bkg->header = src->header;
#endif
}
void regcntsBkgDataFromSrc ( Data src , Data bkg ) { bkg -> x0 = src -> x0 ; bkg -> x1 = src -> x1 ; bkg -> y0 = src -> y0 ; bkg -> y1 = src -> y1 ; bkg -> dim1 = src -> dim1 ; bkg -> bitpix = src -> bitpix ; bkg -> block = src -> block ; bkg -> cards = src -> cards ; bkg -> data = src -> data ; bkg -> fromsrc = 1 ; #if USE_CFITSIO bkg -> fptr = src -> fptr ; #elif USE_FUNTOOLS bkg -> fun = src -> fun ; bkg -> header = src -> header ; #endif }
if no bkg file is specified, use the src
if no bkg file is specified use the src