Skip to contents

A 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 the bad.pixs member.

spct

an object of class generic_spct or derived.

mspct

an object of class generic_mspct or 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.

Note

Following R's syntax the first pixel in the detector array has index 1.