Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Routines for E3D FRAMES i/o


Functions

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)

Function Documentation

int create_E3D_file E3D_file frame,
char *  name,
int  npix,
double  start,
double  step,
short  datatype,
char *  ident,
char *  unit
 

creates a new E3D frame according to specifications

Parameters:
frame [E3D_file *] E3D file structure
name [char *] file name
npix [int ] nb of pixels (if common bounds, else -1)
start [double ] start value for lambda (if common bounds)
step [double ] step value for lambda
datatype [short ] type of data storage
ident [char *] identifier
unit [char *] units

Definition at line 99 of file 3D_iolib.c.

References append_datacube_extension(), append_tbl_extension(), IO_Format::basic_io, CHAR, close_table(), E3D_file::common_bounds, E3D_file::common_parameters, confirme_erase(), CREAT_FILE_PERM, create_col(), create_table(), E3D_file::crop, E3D_file::cunit, E3D_file::data_format, E3D_file::data_offset, E3D_file::data_type, IO_Format::datacubes, delete_E3D_file(), E3D_ADC, E3D_COL_FLAG, E3D_COL_GRP, E3D_COL_ID, E3D_COL_IDX, E3D_COL_NPIX, E3D_COL_NSPAX, E3D_COL_SPAXID, E3D_COL_XPOS, E3D_COL_YPOS, E3D_DATA, E3D_VERS, ERR_CREAT, ERR_FORMAT, ERR_WRIT, EURO3D_FORMAT, exist(), E3D_file::external_info, E3D_file::extra_hd_off, E3D_file::file_type, first_blk(), FLOAT, E3D_file::groups, Handle_Error(), HEADER_LENGTH, E3D_file::history, E3D_file::ident, E3D_file::imno, E3D_file::iomode, lg_ident, lg_name, lg_unit, lg_version, LONG, E3D_file::name, E3D_file::nbspec, E3D_file::ngroups, E3D_file::noise, O_MODE, OPEN_FILE_PERM, OutputIO, remove_file_extension(), E3D_file::signal, E3D_file::step, E3D_file::swapbytes, E3D_file::table_name, TIGER_FORMAT, E3D_file::version, and WR_desc().

Referenced by convert_datacube(), and create_tiger_frame().

int open_E3D_file E3D_file frame,
char *  name,
char *  mode
 

opens a E3D frame and updates the structure items

Parameters:
frame [E3D_file *] E3D file structure
name [char *] frame name
mode [char *] open mode (Input,Ouput,IO)

Definition at line 237 of file 3D_iolib.c.

References GROUP::airmass, alloc_new_desc(), GROUP::angle, append_datacube_extension(), IO_Format::basic_io, CHAR, close_table(), E3D_file::common_bounds, E3D_file::common_parameters, E3D_file::crop, E3D_file::cunit, E3D_file::data_format, E3D_file::data_offset, E3Dspec_desc::data_offset, E3D_file::data_type, Descriptor::data_type, IO_Format::datacubes, Descriptor::descr_name, Descriptor::descr_value, disable_user_warnings(), DOUBLE, E3D_COL_AIRM, E3D_COL_ANGLE, E3D_COL_GRP, E3D_COL_HUM, E3D_COL_ID, E3D_COL_IDX, E3D_COL_INT, E3D_COL_NPIX, E3D_COL_PANG, E3D_COL_PRES, E3D_COL_PWAVE, E3D_COL_SHAPE, E3D_COL_SIZE1, E3D_COL_SIZE2, E3D_COL_TEMP, E3D_DATA, E3D_GRP, E3D_KW_REFPIX, E3D_KW_START, E3D_KW_STEP, E3D_KW_UNITS, E3D_TIGER_EXT, E3D_VERS, E3Dspec_desc::end, ERR_BAD_COL, ERR_BAD_TYPE, ERR_FORMAT, ERR_OPEN, ERR_READ, ERR_TBL_EXT, EURO3D_FORMAT, E3D_file::external_info, Anyfile::external_info, E3D_file::extra_hd_off, E3D_file::file_type, first_blk(), get_col_info(), get_col_ref(), get_iomode_code(), get_path(), GROUP::groupId, E3D_file::groups, Handle_Error(), HEADER_LENGTH, E3D_file::history, I_MODE, E3D_file::ident, E3D_file::imno, Anyfile::imno, InputIO, IO_MODE, E3D_file::iomode, LENS_UNDEF, lg_hist, lg_ident, lg_label, lg_name, lg_unit, lg_version, LONG, max, MAXFLOAT, min, E3D_file::name, Descriptor::nb_values, E3D_file::nbspec, E3D_file::ngroups, E3D_file::noise, E3Dspec_desc::npix, O_MODE, OPEN_FILE_PERM, open_table(), GROUP::parang, GROUP::poswav, GROUP::pressure, RD_desc(), RD_tbl(), read_DOS(), GROUP::rel_humidity, remove_path(), restore_user_warnings(), TABLE::row, set_bigendian(), set_common_bounds(), GROUP::shape, E3D_file::signal, GROUP::size1, GROUP::size2, sizeof_item(), E3Dspec_desc::specId, E3Dspec_desc::start, E3D_file::step, E3D_file::swapbytes, E3D_file::table_name, GROUP::temperature, TIGER_FORMAT, and E3D_file::version.

Referenced by convert_datacube().

int close_E3D_file E3D_file frame  ) 
 

closes a currently active E3D frame

Parameters:
frame [E3D_file *] E3D file structure

Definition at line 716 of file 3D_iolib.c.

References GROUP::airmass, GROUP::angle, append_tbl_extension(), IO_Format::basic_io, CHAR, close_table(), E3D_file::common_bounds, create_col(), create_table(), E3D_file::data_format, E3D_file::data_offset, E3Dspec_desc::data_offset, E3D_file::data_type, Descriptor::data_type, Descr_Items::descr_list, Descriptor::descr_name, Descriptor::descr_value, E3D_COL_AIRM, E3D_COL_ANGLE, E3D_COL_GRP, E3D_COL_HUM, E3D_COL_PANG, E3D_COL_PRES, E3D_COL_PWAVE, E3D_COL_SHAPE, E3D_COL_SIZE1, E3D_COL_SIZE2, E3D_COL_TEMP, E3D_GRP, E3Dspec_desc::end, ERR_BAD_COL, ERR_FORMAT, ERR_TBL_EXT, EURO3D_FORMAT, exist(), E3D_file::external_info, E3D_file::extra_hd_off, FLOAT, free_all_desc(), GROUP::groupId, E3D_file::groups, Handle_Error(), HEADER_LENGTH, I_MODE, E3D_file::imno, IO_MODE, E3D_file::iomode, LENS_UNDEF, lg_label, lg_name, LONG, max, min, E3D_file::name, Descr_Items::nb_descr, Descriptor::nb_values, E3D_file::nbspec, E3D_file::ngroups, E3D_file::noise, E3Dspec_desc::npix, O_MODE, open_table(), OutputIO, GROUP::parang, GROUP::poswav, GROUP::pressure, GROUP::rel_humidity, remove_path(), set_common_bounds(), GROUP::shape, E3D_file::signal, GROUP::size1, GROUP::size2, sizeof_item(), E3Dspec_desc::specId, E3Dspec_desc::start, E3D_file::step, E3D_file::swapbytes, E3D_file::table_name, GROUP::temperature, TIGER_FORMAT, TK, WR_history(), WR_tbl(), and write_DOS().

Referenced by close_tiger_frame(), convert_datacube(), and delete_E3D_file().

int delete_E3D_file E3D_file frame  ) 
 

closes and deletes a currently active E3D frame

Parameters:
frame [E3D_file *] E3D file structure

Definition at line 1003 of file 3D_iolib.c.

References append_datacube_extension(), close_E3D_file(), IO_Format::datacubes, Handle_Error(), E3D_file::imno, InputIO, lg_name, and E3D_file::name.

Referenced by create_E3D_file().


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