Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Routines for tridimensional IMAGES i/o


Functions

int create_cube (IMAGE3D *cube, char *name, int *npix, double *start, double *step, short datatype, char *ident, char *unit)
int header_cube (IMAGE3D *cube, char *name, char *mode)
int open_cube (IMAGE3D *cube, char *name, char *mode)
int close_cube (IMAGE3D *cube)
int delete_cube (IMAGE3D *cube)

Function Documentation

int create_cube IMAGE3D cube,
char *  name,
int *  npix,
double *  start,
double *  step,
short  datatype,
char *  ident,
char *  unit
 

creates a new 3D frame according to specifications

Parameters:
cube [IMAGE3D *] cube structure
name [char *] cube file name
npix [int *] number of pixels in each dim.
start [double *] start coordinates in x, y and z
step [double *] step values in x, y and z dim.
datatype [short ] type of data storage
ident [char *] identifier
unit [char *] units

Definition at line 5010 of file iolib.c.

References alloc_cube_mem(), append_ima_extension(), IO_Format::basic_io, CHAR, confirme_erase(), IMAGE3D::cunit, IMAGE3D::data, IMAGE3D::data_format, IMAGE3D::data_type, delete_cube(), IMAGE3D::endx, IMAGE3D::endy, IMAGE3D::endz, ERR_WRIT, exist(), IMAGE3D::external_info, IMAGE3D::file_type, first_blk(), FITS_A_FORMAT, FITS_B_FORMAT, fits_bitpix(), get_datatype_code(), get_iomode_code(), get_tiger_errcode(), Handle_Error(), IMAGE3D::history, IMAGE3D::ident, IMA_TYPE, IMAGE3D::imno, IMAGE3D::iomode, lg_ident, lg_name, lg_unit, IMAGE3D::max, MIDAS_FORMAT, IMAGE3D::min, IMAGE3D::name, IMAGE3D::nx, IMAGE3D::ny, IMAGE3D::nz, O_MODE, OutputIO, IMAGE3D::startx, IMAGE3D::starty, IMAGE3D::startz, IMAGE3D::stepx, IMAGE3D::stepy, IMAGE3D::stepz, and WR_desc().

int header_cube IMAGE3D cube,
char *  name,
char *  mode
 

updates the cube structure items (does not map data !)

Parameters:
cube [IMAGE3D *] cube structure
name [char *] cube name
mode [char *] open mode (Input,Ouput,IO)

Definition at line 5133 of file iolib.c.

References append_ima_extension(), IO_Format::basic_io, CHAR, IMAGE3D::cunit, IMAGE3D::data, IMAGE3D::data_format, IMAGE3D::data_type, decode_datatype(), disable_user_warnings(), DOUBLE, IMAGE3D::endx, IMAGE3D::endy, IMAGE3D::endz, ERR_ACCESS, ERR_IMA_HEAD, ERR_OPEN, ERR_READ, exist(), IMAGE3D::external_info, IMAGE3D::file_type, first_blk(), FITS_A_FORMAT, FITS_B_FORMAT, FLOAT, get_iomode_code(), get_tiger_errcode(), Handle_Error(), IMAGE3D::history, I_MODE, IMAGE3D::ident, IMA_TYPE, IMAGE3D::imno, InputIO, INT, IO_MODE, IMAGE3D::iomode, lg_hist, lg_ident, lg_name, lg_unit, IMAGE3D::max, MIDAS_FORMAT, IMAGE3D::min, IMAGE3D::name, IMAGE3D::nx, IMAGE3D::ny, IMAGE3D::nz, O_MODE, RD_desc(), restore_user_warnings(), IMAGE3D::startx, IMAGE3D::starty, IMAGE3D::startz, IMAGE3D::stepx, IMAGE3D::stepy, and IMAGE3D::stepz.

int open_cube IMAGE3D cube,
char *  name,
char *  mode
 

opens a 3D frame and updates the cube structure items

Parameters:
cube [IMAGE3D *] cube structure
name [char *] cube name
mode [char *] open mode (Input,Ouput,IO)

Definition at line 5316 of file iolib.c.

References alloc_cube_mem(), append_ima_extension(), IO_Format::basic_io, CHAR, cube_minmax(), IMAGE3D::cunit, IMAGE3D::data, IMAGE3D::data_format, IMAGE3D::data_type, decode_datatype(), disable_user_warnings(), DOUBLE, IMAGE3D::endx, IMAGE3D::endy, IMAGE3D::endz, ERR_ACCESS, ERR_ALLOC, ERR_IMA_HEAD, ERR_OPEN, ERR_READ, exist(), IMAGE3D::external_info, IMAGE3D::file_type, first_blk(), FITS_A_FORMAT, FITS_B_FORMAT, FLOAT, get_iomode_code(), get_tiger_errcode(), Handle_Error(), IMAGE3D::history, I_MODE, IMAGE3D::ident, IMA_TYPE, IMAGE3D::imno, InputIO, INT, IO_MODE, IMAGE3D::iomode, lg_hist, lg_ident, lg_name, lg_unit, LONG, IMAGE3D::max, MIDAS_FORMAT, IMAGE3D::min, IMAGE3D::name, IMAGE3D::nx, IMAGE3D::ny, IMAGE3D::nz, O_MODE, RD_desc(), restore_user_warnings(), SHORT, IMAGE3D::startx, IMAGE3D::starty, IMAGE3D::startz, IMAGE3D::stepx, IMAGE3D::stepy, and IMAGE3D::stepz.

int close_cube IMAGE3D cube  ) 
 

closes a currently active 3D cube

Parameters:
cube [IMAGE3D *] cube structure

Definition at line 5558 of file iolib.c.

References IO_Format::basic_io, cube_minmax(), IMAGE3D::data, IMAGE3D::data_format, IMAGE3D::data_type, ERR_WRIT, IMAGE3D::external_info, FITS_A_FORMAT, FITS_B_FORMAT, FLOAT, free_cube_mem(), get_datatype_code(), get_tiger_errcode(), Handle_Error(), I_MODE, IMAGE3D::imno, IO_MODE, IMAGE3D::iomode, lg_name, IMAGE3D::max, MIDAS_FORMAT, IMAGE3D::min, IMAGE3D::name, IMAGE3D::nx, IMAGE3D::ny, IMAGE3D::nz, O_MODE, OutputIO, TK, WR_desc(), and WR_history().

int delete_cube IMAGE3D cube  ) 
 

deletes a 3D cube

Parameters:
cube [IMAGE2D *] cube structure

Definition at line 5688 of file iolib.c.

References IO_Format::basic_io, IMAGE3D::data_format, IMAGE3D::external_info, FITS_A_FORMAT, FITS_B_FORMAT, free_cube_mem(), get_iomode_code(), get_tiger_errcode(), Handle_Error(), I_MODE, InputIO, IRAF_FORMAT, lg_name, MIDAS_FORMAT, IMAGE3D::name, and STSDAS_FORMAT.

Referenced by create_cube().


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