|
MUSE Pipeline Reference Manual
0.18.5
|
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... | |
muse_pixtable_erase_slice: Erase a slice of one IFU from a MUSE pixel table.
Command line arguments:
PIXTABLE_INIFUSLICEPIXTABLE_OUTReturn values:
0 1 2 31050
|
static |
Erase pixel table rows related to one slice of one IFU.
| aPixtable | the pixel table |
| aIFU | the IFU number |
| aSlice | the slice number |
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
| return CPL_ERROR_NULL_INPUT | aPixtable is NULL |
| return CPL_ERROR_DATA_NOT_FOUND | no rows found in aPixtable |
| return CPL_ERROR_ILLEGAL_INPUT | aPixtable 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 |
Fix the exposure ranges in the header of a pixel table.
| aPixtable | the pixel table |
| CPL_ERROR_NONE | on 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().
1.8.6