MUSE Pipeline Reference Manual  0.18.5
Functions
Tool muse_pixtable_erase_slice

muse_pixtable_erase_slice: Erase a slice of one IFU from a MUSE pixel table. More...

Functions

static cpl_error_code muse_pixtable_fix_exp_headers (muse_pixtable *aPixtable)
 Fix the exposure ranges in the header of a pixel table. More...
 
static cpl_error_code muse_pixtable_erase_ifu_slice (muse_pixtable *aPixtable, unsigned char aIFU, unsigned short aSlice)
 Erase pixel table rows related to one slice of one IFU. More...
 

Detailed Description

muse_pixtable_erase_slice: Erase a slice of one IFU from a MUSE pixel table.

Command line arguments:

Return values:

Function Documentation

static cpl_error_code muse_pixtable_erase_ifu_slice ( muse_pixtable aPixtable,
unsigned char  aIFU,
unsigned short  aSlice 
)
static

Erase pixel table rows related to one slice of one IFU.

Parameters
aPixtablethe pixel table
aIFUthe IFU number
aSlicethe slice number
Returns
CPL_ERROR_NONE on success, another CPL error code on failure.

This function selects all rows in the given pixel table which originated in aIFU and aSlice. Then all selected slices are erased.

XXX temporarily added directly here, in the tool, to not mess up the API to become a real function in muse_pixtable on the trunk

Exceptions
return CPL_ERROR_NULL_INPUTaPixtable is NULL
return CPL_ERROR_DATA_NOT_FOUNDno rows found in aPixtable
return CPL_ERROR_ILLEGAL_INPUTaPixtable contains data from more than one exposure

Definition at line 143 of file muse_pixtable_erase_slice.c.

References muse_pixtable_compute_limits(), muse_pixtable_fix_exp_headers(), muse_pixtable_get_nrow(), muse_pixtable_origin_get_ifu(), muse_pixtable_origin_get_slice(), and muse_pixtable::table.

static cpl_error_code muse_pixtable_fix_exp_headers ( muse_pixtable aPixtable)
static

Fix the exposure ranges in the header of a pixel table.

Parameters
aPixtablethe pixel table
Return values
CPL_ERROR_NONEon success, another cpl_error_code on failure.

This function assumes that all selected rows are going to be erased, and resets the header keywords MUSE_HDR_PT_EXP_FST and MUSE_HDR_PT_EXP_LST accordingly.

XXX temporarily added directly here, in the tool, to not mess up the API

Definition at line 73 of file muse_pixtable_erase_slice.c.

References muse_pixtable::header, muse_cplpropertylist_update_long_long(), MUSE_HDR_PT_EXP_FST, MUSE_HDR_PT_EXP_LST, and muse_pixtable::table.

Referenced by muse_pixtable_erase_ifu_slice().