<?xml version="1.0" encoding="utf-8" standalone="no"?>
<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1L00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="https://pds.nasa.gov/pds4/proc/v1/PDS4_PROC_1L00_1300.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="https://pds.nasa.gov/pds4/mission/clps/v1/PDS4_CLPS_1L00_1100.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>

<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1"
		       xmlns:pds="http://pds.nasa.gov/pds4/pds/v1"
		       xmlns:proc="http://pds.nasa.gov/pds4/proc/v1"
			   xmlns:clps="http://pds.nasa.gov/pds4/mission/clps/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  
					   http://pds.nasa.gov/pds4/proc/v1 
					   https://pds.nasa.gov/pds4/proc/v1/PDS4_PROC_1L00_1300.xsd 
					   http://pds.nasa.gov/pds4/mission/clps/v1
					   https://pds.nasa.gov/pds4/mission/clps/v1/PDS4_CLPS_1L00_1100.xsd">
  
  <Identification_Area>
    <logical_identifier>urn:nasa:pds:clps_to_2ab_nirvss_spc:data:240113-024457066-spc-sw-pp</logical_identifier>
    <version_id>1.0</version_id>
    <title>CLPS_TO_2AB NIRVSS SPC Partially Processed - 240113-024457066-spc-sw-pp</title>
    <information_model_version>1.21.0.0</information_model_version>
    <product_class>Product_Observational</product_class>
    <Modification_History>
      <Modification_Detail>
	<modification_date>2024-07-19</modification_date>
	<version_id>1.0</version_id>
	 <description>Initial Version</description>
      </Modification_Detail>
    </Modification_History>
  </Identification_Area>
  <Observation_Area>
    <Time_Coordinates>
      <start_date_time>2024-01-13T02:44:57.066Z</start_date_time>
      <stop_date_time>2024-01-13T03:32:32.510Z</stop_date_time>
    </Time_Coordinates>
	  <Primary_Result_Summary>
		  <purpose>Checkout</purpose>
		  <processing_level>Partially Processed</processing_level>
		  <Science_Facets>
			  <wavelength_range>Infrared</wavelength_range>
			  <domain>Surface</domain>
			  <discipline_name>Geosciences</discipline_name>
		  </Science_Facets>
	  </Primary_Result_Summary>
	  <Investigation_Area>
      <name>CLPS Task Order 2AB</name>
      <type>Mission</type>
      <Internal_Reference>
	<lid_reference>urn:nasa:pds:context:investigation:mission.clps_to_2ab</lid_reference>
	<reference_type>data_to_investigation</reference_type>
	<comment>This is the PDS4 logical identifier for the CLPS_TO_2AB Mission.</comment>
      </Internal_Reference>
    </Investigation_Area>
    <Observing_System>
      <Observing_System_Component>
	<name>CLPS Task Order 2AB Peregrine Lunar Lander</name>
	<type>Host</type>
	<Internal_Reference>
	  <lid_reference>urn:nasa:pds:context:instrument_host:spacecraft.clps_to_2ab_pll</lid_reference>
	  <reference_type>is_instrument_host</reference_type>
	  <comment>This is the PDS4 logical identifier for the CLPS_TO_2AB spacecraft.</comment>
	</Internal_Reference>
      </Observing_System_Component>
      <Observing_System_Component>
	<name>NIRVSS SPC</name>
	<type>Instrument</type>
	<Internal_Reference>
	  <lid_reference>urn:nasa:pds:context:instrument:clps_to_2ab_pll.nirvss</lid_reference>
	  <reference_type>is_instrument</reference_type>
	  <comment>This is the PDS4 logical identifier for the NIRVSS Spectrometer onboard the CLPS_TO_2AB spacecraft.</comment>
	</Internal_Reference>
      </Observing_System_Component>
    </Observing_System>
    <Target_Identification>
      <name>Moon</name>
      <type>Satellite</type>
      <Internal_Reference>
	<lid_reference>urn:nasa:pds:context:target:satellite.earth.moon</lid_reference>
	<reference_type>data_to_target</reference_type>
	<comment>This is the PDS4 logical identifier for the body - Moon.</comment>
      </Internal_Reference>
    </Target_Identification>
	  <Mission_Area>
		  <clps:CLPS_Parameters>
			  <clps:CLPS_Delivery_Information>
				  <clps:nasa_delivery_name>TO_2AB</clps:nasa_delivery_name>
				  <clps:vendor>Astrobotic</clps:vendor>
				  <clps:vendor_mission_name>Peregrine Mission 1</clps:vendor_mission_name>
				  <clps:lunar_lander_name>Peregrine Lunar Lander</clps:lunar_lander_name>
				  <clps:project_scientist>Paul Niles</clps:project_scientist>
			  </clps:CLPS_Delivery_Information>
			  <clps:CLPS_Observation_Information>
				  <clps:release_number>0001</clps:release_number>
				  <clps:mission_phase_name>CRUISE AND APPROACH</clps:mission_phase_name>
				  <clps:producer_institution_name>NASA Ames Research Center</clps:producer_institution_name>
			  </clps:CLPS_Observation_Information>
		  </clps:CLPS_Parameters>
	  </Mission_Area>
    <Discipline_Area>
      <proc:Processing_Information>
	<Local_Internal_Reference>
	  <local_identifier_reference>data_partially_processed</local_identifier_reference>
	  <local_reference_type>processing_information_to_data_object</local_reference_type>
	</Local_Internal_Reference>
	<proc:Process>
	  <proc:Software>
	    <proc:name>CLPS_TO_2AB NIRVSS Pipeline</proc:name>
	    <proc:software_version_id>Version 1.0</proc:software_version_id>
	  </proc:Software>
	</proc:Process>
      </proc:Processing_Information>
    </Discipline_Area>
  </Observation_Area>
  <Reference_List>
    <Internal_Reference>
      <lid_reference>urn:nasa:pds:clps_to_2ab_nirvss_spc:document:nirvss_users_guide</lid_reference>
      <reference_type>data_to_document</reference_type>
    </Internal_Reference>
	  <Source_Product_Internal>
		  <lidvid_reference>urn:nasa:pds:clps_to_2ab_nirvss_spc:data:240113-024457066-spc-sw-raw::1.0</lidvid_reference>
		  <reference_type>data_to_raw_source_product</reference_type>
	  </Source_Product_Internal>
  </Reference_List>
  <File_Area_Observational>
    <File>
      <file_name>240113-024457066-spc-sw-pp.csv</file_name>
      <comment> This is a partially processed NIRVSS SPC SW spectral file. It contains SW spectral measurements and associated metadata for each measurement.
      </comment>
    </File>
    <Header>
      <offset unit="byte">0</offset>
      <object_length unit="byte">222</object_length>
      <parsing_standard_id>PDS DSV 1</parsing_standard_id>
    </Header>
	 <Table_Delimited>
		<name>Wavelengths</name>
		<offset unit="byte">222</offset>
	        <object_length unit="byte">9455</object_length>
		<parsing_standard_id>PDS DSV 1</parsing_standard_id>
		<records>1</records>
		<record_delimiter>Carriage-Return Line-Feed</record_delimiter>
		<field_delimiter>Comma</field_delimiter>
		<Record_Delimited>
			<fields>0</fields>
			<groups>1</groups>
			<Group_Field_Delimited>
				<repetitions>1200</repetitions>
				<fields>1</fields>
				<groups>0</groups>
				<Field_Delimited>
					<name>Wavelength</name>
					<data_type>ASCII_Real</data_type>
					<unit>nm</unit>
				</Field_Delimited>
			</Group_Field_Delimited>
		</Record_Delimited>
	  </Table_Delimited>
	  <Table_Delimited>
      <name>SPC Partially Processed</name>
      <local_identifier>data_partially_processed</local_identifier>
      <offset unit="byte">9679</offset>
      <object_length unit="byte">410408</object_length>
      <parsing_standard_id>PDS DSV 1</parsing_standard_id>
      <records>165</records>
      <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
      <field_delimiter>Comma</field_delimiter>
      <Record_Delimited>
	<fields>15</fields>
	<groups>1</groups> 
		  <Field_Delimited>
			  <name>PacketTimeasDate</name>
			  <field_number>1</field_number>
			  <data_type>ASCII_Date_Time_YMD_UTC</data_type>
			  <unit>UTC</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>AcqTimeasDate</name>
			  <field_number>2</field_number>
			  <data_type>ASCII_Date_Time_YMD_UTC</data_type>
			  <unit>UTC</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>epochTime</name>
			  <field_number>3</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>seconds</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>millisecondsEpoch</name>
			  <field_number>4</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>milliseconds</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>spectrumNumber</name>
			  <field_number>5</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>value</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>telemetry_id</name>
			  <field_number>6</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>value</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>instrument_state</name>
			  <field_number>7</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>value</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>gain</name>
			  <field_number>8</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>value</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>rf_active</name>
			  <field_number>9</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>value</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>startWavelength</name>
			  <field_number>10</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>value</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>stopWavelength</name>
			  <field_number>11</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>value</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>increment</name>
			  <field_number>12</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>value</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>numberOfAverages</name>
			  <field_number>13</field_number>
			  <data_type>ASCII_Integer</data_type>
			  <unit>value</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>SW_tec_temperature_setpoint</name>
			  <field_number>14</field_number>
			  <data_type>ASCII_Real</data_type>
			  <unit>degC</unit>
		  </Field_Delimited>
		  <Field_Delimited>
			  <name>SW_detector_temp </name>
			  <field_number>15</field_number>
			  <data_type>ASCII_Real</data_type>
			  <unit>degC</unit>
		  </Field_Delimited>

		  <Group_Field_Delimited>
			  <name>PROCESSED_SPECTRUM</name>
			  <repetitions>1200</repetitions>
			  <fields>1</fields>
			  <groups>0</groups>
			  <description>The spectrum consists of 1200 comma-separated raw signal values in volts  assigned to wavelength calibration in nm.</description>
			<Field_Delimited>
			  <name>Spectral value</name>
			  <field_number>1</field_number>
			  <data_type>ASCII_String</data_type>
			  <unit>Volts</unit>
			</Field_Delimited>
		  </Group_Field_Delimited>


	  </Record_Delimited>
      </Table_Delimited>
    </File_Area_Observational>
  </Product_Observational>
