Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Routines for bidimensional IMAGES i/o


Functions

int create_frame (IMAGE2D *frame, char *name, int *npix, double *start, double *step, short datatype, char *ident, char *unit)
int header_frame (IMAGE2D *frame, char *name, char *mode)
int open_frame (IMAGE2D *frame, char *name, char *mode)
int close_frame (IMAGE2D *frame)
int delete_frame (IMAGE2D *frame)

Function Documentation

int create_frame IMAGE2D frame,
char *  name,
int *  npix,
double *  start,
double *  step,
short  datatype,
char *  ident,
char *  unit
 

creates a new 2D frame according to specifications

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

Definition at line 2350 of file iolib.c.

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

Referenced by convert_image().

int header_frame IMAGE2D frame,
char *  name,
char *  mode
 

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

Parameters:
frame [IMAGE2D *] image structure
name [char *] frame name
mode [char *] open mode (Input,Ouput,IO)

Definition at line 2470 of file iolib.c.

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

Referenced by file_type().

int open_frame IMAGE2D frame,
char *  name,
char *  mode
 

opens a 2D frame and updates the image structure items

Parameters:
frame [IMAGE2D *] image structure
name [char *] frame name
mode [char *] open mode (Input,Ouput,IO)

Definition at line 2643 of file iolib.c.

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

Referenced by convert_image().

int close_frame IMAGE2D frame  ) 
 

closes a currently active 2D frame

Parameters:
frame [IMAGE2D *] image structure

Definition at line 2874 of file iolib.c.

References IO_Format::basic_io, IMAGE2D::data, IMAGE2D::data_format, IMAGE2D::data_type, DOUBLE, ERR_WRIT, IMAGE2D::external_info, FITS_A_FORMAT, FITS_B_FORMAT, FLOAT, free_frame_mem(), get_datatype_code(), get_tiger_errcode(), Handle_Error(), I_MODE, image_minmax(), IMAGE2D::imno, INT, IO_MODE, IMAGE2D::iomode, IRAF_FORMAT, lg_name, LONG, IMAGE2D::max, MIDAS_FORMAT, IMAGE2D::min, IMAGE2D::name, IMAGE2D::nx, IMAGE2D::ny, O_MODE, OutputIO, SHORT, STSDAS_FORMAT, TK, WR_desc(), and WR_history().

Referenced by convert_image(), and file_type().

int delete_frame IMAGE2D frame  ) 
 

deletes a 2D frame

Parameters:
frame [IMAGE2D *] image structure

Definition at line 3006 of file iolib.c.

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

Referenced by create_frame().


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