Main Page   Modules   Data Structures   File List   Data Fields   Globals  

C_libs/io/3D_io/3D_iolib.c File Reference

3D files i/o More...

#include <IFU_io.h>
#include <data_io.h>
#include <values.h>
#include "../cfitsio/fitsio.h"
#include "../cfitsio/longnam.h"

Go to the source code of this file.

Defines

#define CREAT_FILE_PERM   0666
#define OPEN_FILE_PERM   0644
#define DATA_UNDEF   -MAXSHORT
#define LENS_UNDEF   -MAXINT
#define find_lens(frame, type_of_spec, specId, i)
#define HEADER_LENGTH
#define extract_E3D_slice_noalloc(type_of_slice)

Functions

void confirme_erase (char *name)
int create_E3D_file (E3D_file *frame, char *name, int npix, double start, double step, short datatype, char *ident, char *unit)
int open_E3D_file (E3D_file *frame, char *name, char *mode)
int close_E3D_file (E3D_file *frame)
int delete_E3D_file (E3D_file *frame)
int init_new_E3D_spec (E3D_file *frame, SPECTRUM *spectrum, int npix, double start)
int extract_E3D_spec (E3D_file *frame, SPECTRUM *spectrum, E3Dspec_desc **type_of_spec, int specId)
int get_E3D_spec (E3D_file *frame, SPECTRUM *signal, SPECTRUM *noise, int specId)
int save_E3D_spec (E3D_file *frame, SPECTRUM *spectrum, E3Dspec_desc **type_of_spec, int specId)
int put_E3D_spec (E3D_file *frame, SPECTRUM *signal, SPECTRUM *noise, int specId)
int delete_E3D_spec (E3D_file *frame, int specId)
int get_E3D_spaxels (E3D_file *frame, int specId, SPAXEL **spaxels)
int put_E3D_spaxels (E3D_file *frame, int specId, int nspax, SPAXEL *spaxels)
int exist_group_ID (E3D_file *frame, int groupID)
int get_E3D_groups (E3D_file *frame, int specId, GROUP **groups)
int put_E3D_groups (E3D_file *frame, int ngroups, GROUP *groups)
int delete_E3D_group (E3D_file *frame, int groupID)
int get_E3D_row (E3D_file *frame, int specId, SPECTRUM *signal, SPECTRUM *noise, int *nspax, SPAXEL **spaxels, int *ngroups, GROUP **groups)
int put_E3D_row (E3D_file *frame, int specId, SPECTRUM *signal, SPECTRUM *noise, int nspax, SPAXEL *spaxels, int ngroups, GROUP *groups)
int get_E3D_frame (E3D_file *E3Dframe, IMAGE2D *signal, IMAGE2D *noise)
int has_common_bounds (E3D_file *frame)
int get_common_param (E3D_file *frame, int *npix, double *start, double *end)
int set_common_bounds (E3D_file *frame)
int exist_statistical_error (E3D_file *frame)
int exist_spec_ID (E3D_file *frame, int specId)
int set_ID_and_coordinates (E3D_file *frame, int nbl, int *specId, float *xlens, float *ylens)
int get_ID_and_coordinates (E3D_file *frame, int *specId, float *xlens, float *ylens)
int get_spectra_ID (E3D_file *frame, int *specId)
int alloc_slice_mem (SLICE *slice, short type, int npts)
int free_slice_mem (SLICE *slice)
int init_new_E3D_slice (E3D_file *frame, SLICE *slice)
int extract_E3D_slice (E3D_file *frame, SLICE *slice, E3Dspec_desc **type_of_slice, int index)
int get_E3D_slice (E3D_file *frame, SLICE *signal, SLICE *noise, int index)
int save_E3D_slice (E3D_file *frame, SLICE *slice, E3Dspec_desc **type_of_slice, int index)
int put_E3D_slice (E3D_file *frame, SLICE *signal, SLICE *noise, int index)

Variables

int ASK
IO_Format InputIO
IO_Format OutputIO


Detailed Description

3D files i/o

Author:
A. Pecontal
Version:
4.0 1994-Jul-22 : creation, AR

4.1 2002-Dec-02 : convert to E3D fits format

4.2 2003-Mar-06 : modify common bounds processing in init_new_E3D_spec

4.3 2003-Apr-08 : change save_E3D_slice so specId in slices are taken into account

Copyright:
(c) 1992 Observatoire de Lyon - St Genis-Laval (France)

Definition in file 3D_iolib.c.


Define Documentation

#define CREAT_FILE_PERM   0666
 

Definition at line 25 of file 3D_iolib.c.

Referenced by create_E3D_file(), and save_3D_max().

#define OPEN_FILE_PERM   0644
 

Definition at line 26 of file 3D_iolib.c.

Referenced by create_E3D_file(), get_assoc_table_name(), load_3D_max(), and open_E3D_file().

#define DATA_UNDEF   -MAXSHORT
 

Definition at line 27 of file 3D_iolib.c.

Referenced by extract_E3D_slice(), and save_E3D_slice().

#define LENS_UNDEF   -MAXINT
 

Definition at line 28 of file 3D_iolib.c.

Referenced by close_E3D_file(), open_E3D_file(), and save_E3D_spec().

#define find_lens frame,
type_of_spec,
specId,
 ) 
 

Value:

if (frame->type_of_spec == NULL) *(i) = -1; \
        else { \
        for (*(i)=0; *(i)<frame->nbspec \
                && frame->type_of_spec[*(i)].specId != specId \
                && frame->type_of_spec[*(i)].specId != LENS_UNDEF; (*(i))++); \
        if ((frame->type_of_spec[*(i)].specId == LENS_UNDEF) \
                || (*(i) == frame->nbspec)) \
                *(i) = -1; \
        }

Definition at line 30 of file 3D_iolib.c.

Referenced by delete_E3D_spec(), delete_tiger_spec(), exist_spec_ID(), extract_E3D_spec(), get_E3D_groups(), get_E3D_spaxels(), put_E3D_spaxels(), and save_E3D_slice().


Variable Documentation

int ASK
 

Definition at line 22 of file 3D_iolib.c.

Referenced by disable_erase_flag(), parse_arg(), restore_erase_flag(), and save_3D_max().

IO_Format InputIO
 

Definition at line 23 of file 3D_iolib.c.

Referenced by create_table(), delete_cube(), delete_E3D_file(), delete_frame(), delete_spec(), delete_table(), exit_session(), file_format(), get_assoc_table_name(), get_E3D_frame(), get_ID_and_coordinates(), get_lenses_coord(), get_lenses_no_from_table(), header_cube(), header_frame(), header_spec(), init_new_E3D_slice(), init_session(), open_cube(), open_E3D_file(), open_frame(), open_spec(), open_table(), set_ID_and_coordinates(), set_inputformat(), and set_lenses_coord().

IO_Format OutputIO
 

Definition at line 23 of file 3D_iolib.c.

Referenced by close_cube(), close_E3D_file(), close_frame(), close_spec(), create_cube(), create_E3D_file(), create_frame(), create_spec(), create_spec_mem(), create_table(), exit_session(), init_session(), set_lens_coordinates(), and set_outputformat().


Generated on Tue Jul 1 17:35:46 2003 for IFU_C_iolibs by doxygen1.3