
Add bad pixel information to an instrument description
Source:R/oo-instrument.R
set_descriptor_bad_pixs.RdA integer vector of indexes to bad pixels in the instrument array is stored in the instrument descriptor.
Usage
set_descriptor_bad_pixs(descriptor, bad.pixs)
update_spct_bad_pixs(spct, bad.pixs)
update_mspct_bad_pixs(mspct, bad.pixs)Arguments
- descriptor
list as returned by function
get_oo_descriptor- bad.pixs
numeric vector of positional indexes corresponding to individual pixels in the instrument array, or an object of class
"instr_desc"from where to copy thebad.pixsmember.- spct
an object of class
generic_spctor derived.- mspct
an object of class
generic_mspctor derived.
Value
A copy of the argument passed to descriptor, spct or
mspct with the descriptor with indexes to bad pixels set to the
new values.
Details
When a descriptor contains indexes to bad pixels, data from these array pixels will is replaced by interpolation when a acquired data is converted into physical units. Although the indexes to bad pixels are normally set when a new calibration is stored in a descriptor, new bad pixels can develop later or some bad pixels can be identified at a later time even if present. The current method is used when creating a descriptor but it is also useful when a descriptor needs to be updated.
See also
Other Functions and methods related to instrument descriptors:
get_oo_descriptor(),
set_descriptor_entrance_optics(),
set_descriptor_integ_time(),
set_descriptor_irrad_mult(),
set_descriptor_nl(),
set_descriptor_wl()