Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

extract/lib/dump.c File Reference

Routines to be included in C_iolibs. More...

Go to the source code of this file.

Functions

int dump_dbgArray (void *array, int type, int npts, char *dbgname, SPECTRUM *refspec)
int dump_spec_mem (SPECTRUM *spectrum, char *name, char *ident, char *unit, int fclass)
void put_tiger_arrays (TIGERfile *frame, int no_lens, void *signal, void *noise, int data_type, int npix, double start)
 Store arrays as cube spectra in signal and/or noise channels.

int dump_2Darray (void **array, int data_type, int npix[], char *name)
 Dump a 2D-array in an image (starts={0,0}, steps={1,1}).


Detailed Description

Routines to be included in C_iolibs.

Copyright:
(c) 2002 INPL
Date:
Tue Sep 27 16:39:30 2005
Author:
Yannick Copin <y.copin@ipnl.in2p3.fr>

Author
ycopin
Version:
Revision
1.12
Id
dump.c,v 1.12 2005/10/05 22:44:30 ycopin Exp

Definition in file dump.c.


Function Documentation

int dump_dbgArray void *  array,
int  type,
int  npts,
char *  dbgname,
SPECTRUM *  refspec
 

Definition at line 19 of file dump.c.

Referenced by main().

int dump_spec_mem SPECTRUM *  spectrum,
char *  name,
char *  ident,
char *  unit,
int  fclass
 

Dump a memory spectrum (as created with create_spec_mem) to disk

Parameters:
spectrum spectrum structure to be dumped
name spectrum filename
ident identifier
unit units
fclass file class
Returns:
status 0 if OK

Definition at line 64 of file dump.c.

Referenced by main().

void put_tiger_arrays TIGERfile *  frame,
int  no_lens,
void *  signal,
void *  noise,
int  data_type,
int  npix,
double  start
 

Store arrays as cube spectra in signal and/or noise channels.

Parameters:
frame destination cube
no_lens destination lens
signal array to be stored in signal, of type data_type (NULL if none)
noise array to be stored in noise, of type data_type (NULL if none)
data_type arrays data-type (INT, FLOAT, etc., not necessarily the same as frame)
npix number of points in signal and noise arrays
start start coord. of signal and noise arrays
Warning:
According to the I/O library (at least in the TIGER format), if a datacube spaxel has both signal and noise spectra, all the spaxels of this datacube should have both.

Definition at line 109 of file dump.c.

Referenced by main().

int dump_2Darray void **  array,
int  data_type,
int  npix[],
char *  name
 

Dump a 2D-array in an image (starts={0,0}, steps={1,1}).

Parameters:
array Input 2D-array
data_type Array data_type
npix Array size (npix[0] x npix[1])
name Name of the output image
Returns:
Creation status
Note:
There's a fundamental incompatibility between the image and 2D-array data ordering: images have i index running faster, while 2D-arrays have j index running faster. Hence, e.g., two very similar routines, nllsqfit_2Dgauss and nllsqfit_2Dgauss_ima.

Definition at line 174 of file dump.c.

Referenced by extract_arc(), and Fit_Xpeak().


Generated on Wed Oct 26 23:59:58 2005 for Snifs by doxygen 1.3.5