.. _NIRBadPixelFlavorMask: [to complete] NIR Bad Pixel Flavor Mask ========================= $SetSchemaPath nir/euc-test-nir-BadPixelFlavorMask.xsd Data Product Name __________________ .. DataProductNameStart $PrintDataProductName .. DataProductNameEnd Data Product Custodian _________________________________ .. DataProductCustodianStart $PrintDataProductCustodian .. DataProductCustodianEnd Name of the Schema File ________________________ .. NameSchemaStart $PrintSchemaFilename .. NameSchemaEnd Data Product Elements ______________________ .. DataProductElementsStart $PrintDataProductElements .. DataProductElementsEnd Detailed Description of the Data Product _________________________________________ .. DetailedDescStart The NIR **Bad Pixel Flavor Mask** contains bad pixels of a single flavor for each single detector. This is a generic structure to guest different data type, to be used for all defined flavor. Available flavors are: * Disconnected * Zero QE * Bad base * Low QE * Super QE * Hot pixels * Random Telegraph Noise (RTN) Processing Element(s) creating/using the data product ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. PECreatorStart Each **Bad Pixel Flavor Mask** is created by a dedicated task according its flavor. Those tasks are inside the *NIR_BadPixelMasking* project. * **findZeroQEPixels**: finds the zero QE flavor bad pixels * **findDeadPixels**: finds the dead (dis-connected) flavor bad pixels * **findHotPixels**: finds the hot flavor bad pixels * **findHighLowBaselinePixels**: finds the high-low baseline flavor bad pixels .. PECreatorEnd Processing function using the data product ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. PFUsingStart This is an internal NIR data product, and it is used only by the NIR PF to create the :ref:`NIRBadPixelMask`. They are used as input in **makeNirBadPixels** task (under *NIR_BadPixelMasking* project). .. PFUsingEnd Data Product structure description ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. DataProductDescrStart The main elements inside the *Data* section are: * **DetectorId**: Detector Id * **ValidityRange**: Calibration file validity period estimated * **BPFlavorType**: Type of Bad Pixel flavor. * **FloatBPFitsFile** (choice): Reference to a Bad Pixel Flavor Fits File FLOAT type * **LogicBPFitsFile** (choice): Reference to a Bad Pixel Flavor Fits File LOGIC type The **BPFlavorType** corresponds to the integer *BADTYPE* keyword. Badtypes: 1=Disconnected 2=ZeroQE 3=HighNoise/RTN, 4=SnowBall, 5=Hot, 6=HighLowBaseline, 7=LowQE, 8=SuperQE .. DataProductDescrEnd FITS file description ~~~~~~~~~~~~~~~~~~~~~ .. FITSFileDescriptionStart The **Bad Pixel Flavor Mask** can guest two different type of MEF file, alternatively. This two MEF definitions differ just for their array data type that can be float or logic/boolean. The MEF file is structured in a Primary header, a data layer and a Table HDU to contain the list of input data. Primary header **************** The primary header contains keywords to identify FITS data type and some other specific keywords. *BADTYPE* identify the FITS type $PrintPrimaryHeader fit/euc-test-nir.xml nir.floatBadPixelFlavorMask MASK Extension **************** The Bad Pixel Flavor Mask header contains basic keywords and the number of flagged pixels (*NUMBAD*). .. $PrintExtensionHeader fit/euc-test-nir.xml nir.floatBadPixelFlavorMask MASK It has also a list of input file in a table $PrintCatalog fit/euc-test-nir.xml nir.floatBadPixelFlavorMask .. FITSFileDescriptionEnd .. DetailedDescEnd