<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1L00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>

<Product_Ancillary
  xmlns="http://pds.nasa.gov/pds4/pds/v1"
  xmlns:pds="http://pds.nasa.gov/pds4/pds/v1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://pds.nasa.gov/pds4/pds/v1 https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1L00.xsd">
  <Identification_Area>
    <logical_identifier>urn:nasa:pds:kplo-shadowcam:calibration:gain_factors</logical_identifier>
    <version_id>1.0</version_id>
    <title>Gain Factors</title>
    <information_model_version>1.21.0.0</information_model_version>
    <product_class>Product_Ancillary</product_class>
    <Modification_History>
      <Modification_Detail>
        <modification_date>2024-02-24</modification_date>
        <version_id>1.0</version_id>
        <description>
          Initial PDS4 label
        </description>
      </Modification_Detail>
    </Modification_History>
  </Identification_Area>
  <Context_Area>
    <Investigation_Area>
      <name>KOREA PATHFINDER LUNAR ORBITER</name>
      <type>Mission</type>
      <Internal_Reference>
        <lid_reference>urn:kari:kpds:context:investigation:mission.kplo</lid_reference>
        <reference_type>ancillary_to_investigation</reference_type>
        <comment>This is the PDS4 logical identifier for KPLO</comment>
      </Internal_Reference>
    </Investigation_Area>
    <Observing_System>
      <Observing_System_Component>
        <name>Korea Pathfinder Lunar Orbiter (Danuri)</name>
        <type>Host</type>
        <Internal_Reference>
          <lid_reference>urn:kari:kpds:context:instrument_host:spacecraft.kplo</lid_reference>
          <reference_type>is_instrument_host</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
      <Observing_System_Component>
        <name>SHADOWCAM</name>
        <type>Instrument</type>
        <Internal_Reference>
          <lid_reference>urn:kari:kpds:context:instrument:kplo.shc</lid_reference>
          <reference_type>is_instrument</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
    </Observing_System>
  </Context_Area>
  <Reference_List>
    <External_Reference>
      <doi>10.5140/JASS.2023.40.4.149</doi>
      <reference_text>
	Mark Southwick Robinson, Scott Michael Brylow, Michael Alan Caplinger,
	Lynn Marie Carter, Mattew John Clark, Brett Wilcox Denevi,
	Nicholas Michael Estes, David Carl Humm, Prasun Mahanti,
	Douglas Arden Peckham, Michael Andrew Ravine, Jacob Andrieu Schaffner,
	Emerson Jacob Speyerer, Robert Vernon Wagner
      </reference_text>
      <description>ShadowCam Instrument and Investigation Overview</description>
    </External_Reference>
    <External_Reference>
      <doi>10.5140/JASS.2023.40.4.173</doi>
      <reference_text>
	David Carl Humm, Mallory Janet Kinczyk, Scott Michael Brylow,
	Robert Vernon Wagner, Emerson Jacob Speyerer, Nicholas Michael Estes,
	Prasun Mahanti, Aaron Kyle Boyd, Mark Southwick Robinson
      </reference_text>
      <description>Calibration of ShadowCam</description>
    </External_Reference>
  </Reference_List>
  <File_Area_Ancillary>
    <File>
      <file_name>gain_factors.csv</file_name>
      <file_size unit="byte">2149</file_size>
      <md5_checksum>d21c851f21f6055f47028ca15329b206</md5_checksum>
      <comment>
        This is a CSV with the gain factor coefficients. Images in flight are collected using gains of 48 for channels 0, 1, and 2 and 38 for channels 3, 4, and 5. This is the reference gain for ShadowCam.  If other gains end up being used sometime during the mission, relative gain factors will be calculated for the calibration pipeline to normalize to these values.
      </comment>
    </File>
    <Header>
      <offset unit="byte">0</offset>
      <object_length unit="byte">247</object_length>
      <parsing_standard_id>7-Bit ASCII Text</parsing_standard_id>
      <description>The first 15 lines are internal comments describing the file.</description>
    </Header>
    <Table_Delimited>
      <name>Flat Field Coefficients</name>
      <offset unit="byte">248</offset>
      <parsing_standard_id>PDS DSV 1</parsing_standard_id>
      <records>64</records>
      <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
      <field_delimiter>Comma</field_delimiter>
      <Record_Delimited>
        <fields>13</fields>
        <groups>0</groups>
        <Field_Delimited>
          <name>gain_code</name>
          <field_number>1</field_number>
          <data_type>ASCII_NonNegative_Integer</data_type>
          <description>
            Gain code
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI A Channel 0</name>
          <field_number>2</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI A channel 0
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI A Channel 1</name>
          <field_number>3</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI A channel 1
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI A Channel 2</name>
          <field_number>4</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI A channel 2
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI A Channel 3</name>
          <field_number>5</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI A channel 3
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI A Channel 4</name>
          <field_number>6</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI A channel 4
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI A Channel 5</name>
          <field_number>7</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI A channel 5
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI B Channel 0</name>
          <field_number>8</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI B channel 0
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI B Channel 1</name>
          <field_number>9</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI B channel 1
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI B Channel 2</name>
          <field_number>10</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI B channel 2
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI B Channel 3</name>
          <field_number>11</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI B channel 3
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI B Channel 4</name>
          <field_number>12</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI B channel 4
          </description>
        </Field_Delimited>
        <Field_Delimited>
          <name>TDI B Channel 5</name>
          <field_number>13</field_number>
          <data_type>ASCII_Real</data_type>
          <description>
            Relative factor for TDI B channel 5
          </description>
        </Field_Delimited>
      </Record_Delimited>
    </Table_Delimited>
  </File_Area_Ancillary>
</Product_Ancillary>
