3D Spectrum, Axis_Bin_Set

<?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"?>
<?xml-model href="https://pds.nasa.gov/pds4/sp/v1/PDS4_SP_1L00_1320.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>

<!--
    This "label" is intended only to demonstrate how to use certain features of the Spectral
    Dictionary, and pretty much nothing else. It is not a real label in any sense, even though
    it should produce no errors when validated against the PDS schema. A real label would have
    references to additional dictionaries, for example, from the mission, for geometry, and/or
    for any other related discipline or local namespaces. Any "data" you see here is fictitious,
    and provided merely to remove any validation errors that might otherwise occur.

    Note, in particular, that any conscientious reviewer would consider the data structure classes
    to be inadequate without appropriate descriptions, extrema, null data indicators, and similar
    essential metadata.

    This label demonstrates:
       - Using <sp:Spectral_Characteristics> for a "3D" array spectrum;
       - Using the <sp:Rectangular_FOV> to describe the aperture; and
       - Using the <sp:Axis_Bin_Set> class to explicitly define the bin center and
         width applying to each plane (i.e., every pixel in the plane) of a stack
         of images.
-->

<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:sp="http://pds.nasa.gov/pds4/sp/v1"
    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/sp/v1  http://pds.nasa.gov/pds4/sp/v1/PDS4_SP_1L00_1320.xsd">
    <Identification_Area>
        <logical_identifier>urn:nasa:pds:bundle:collection:product</logical_identifier>
        <version_id>1.0</version_id>
        <title>Test Label 1 for Spectral Dictionary - Valid Label</title>
        <information_model_version>1.21.0.0</information_model_version>
        <product_class>Product_Observational</product_class>
    </Identification_Area>

    <Observation_Area>
        <Time_Coordinates>
            <start_date_time xsi:nil="true" nilReason="inapplicable"/>
            <stop_date_time xsi:nil="true" nilReason="inapplicable"/>
        </Time_Coordinates>

        <Investigation_Area>
            <name>None</name>
            <type>Individual Investigation</type>
            <Internal_Reference>
                <lid_reference>urn:nasa:pds:context:investigation:individual.none</lid_reference>
                <reference_type>data_to_investigation</reference_type>
            </Internal_Reference>
        </Investigation_Area>
        <Observing_System>
            <Observing_System_Component>
                <name>None</name>
                <type>Telescope</type>
            </Observing_System_Component>
        </Observing_System>
        <Target_Identification>
            <name>None</name>
            <type>Comet</type>
        </Target_Identification>

        <Discipline_Area>

            <!-- Bin Definitions using Axis_Bin_Set -->

            <sp:Spectral_Characteristics>
                <Local_Internal_Reference>
                    <local_identifier_reference>RGBSpec</local_identifier_reference>
                    <local_reference_type>spectral_characteristics_to_array_object</local_reference_type>
                </Local_Internal_Reference>
                <sp:description>
                    The spectrum in this case is a shallow cube - only three bands corresponding
                    to Red, Green, and Blue.
                </sp:description>
                <sp:spectrum_format>3D</sp:spectrum_format>
                <sp:spectral_bin_type>wavenumber</sp:spectral_bin_type>

                <sp:Observation_Parameters>
                    <sp:number_of_exposures>1</sp:number_of_exposures>
                    <sp:net_integration_time unit="s">1</sp:net_integration_time>
                    <sp:resolution_limit_wavenumber unit="1/nm">100</sp:resolution_limit_wavenumber>
                </sp:Observation_Parameters>

                <sp:Field_of_View>
                    <sp:description>
                        This FOV is square aligned with the image.
                    </sp:description>
                    <sp:Rectangular_FOV>
                        <sp:width_angle unit="arcsec">20</sp:width_angle>
                        <sp:length_angle unit="arcsec">20</sp:length_angle>
                        <sp:body_positive_pole_position_angle unit="deg">0</sp:body_positive_pole_position_angle>
                    </sp:Rectangular_FOV>
                </sp:Field_of_View>

                <sp:Bin_Description>
                    <sp:bin_profile_description>
                        Bin profiles were determined during ground-testing with known sources.
                    </sp:bin_profile_description>
                    <sp:Axis_Bin_Set_Wavenumber>
                        <sp:axis_name>Band</sp:axis_name>
                        <sp:Bin_Wavenumber>
                            <sp:bin_sequence_number>1</sp:bin_sequence_number>
                            <sp:center_wavenumber unit="1/cm">0.1</sp:center_wavenumber>
                            <sp:bin_width_wavenumber unit="1/cm">0.035</sp:bin_width_wavenumber>
                        </sp:Bin_Wavenumber>
                        <sp:Bin_Wavenumber>
                            <sp:bin_sequence_number>2</sp:bin_sequence_number>
                            <sp:center_wavenumber unit="1/cm">0.15</sp:center_wavenumber>
                            <sp:bin_width_wavenumber unit="1/cm">0.2</sp:bin_width_wavenumber>
                        </sp:Bin_Wavenumber>
                        <sp:Bin_Wavenumber>
                            <sp:bin_sequence_number>3</sp:bin_sequence_number>
                            <sp:center_wavenumber unit="1/cm">0.35</sp:center_wavenumber>
                            <sp:bin_width_wavenumber unit="1/cm">0.3</sp:bin_width_wavenumber>
                        </sp:Bin_Wavenumber>
                    </sp:Axis_Bin_Set_Wavenumber>
                </sp:Bin_Description>
            </sp:Spectral_Characteristics>

        </Discipline_Area>
    </Observation_Area>

    <File_Area_Observational>
        <File>
            <file_name>No.Data</file_name>
        </File>

        <!-- Shallow spectral cube with separately defined bins ("planes") -->

        <Array_3D_Spectrum>
            <local_identifier>RGBSpec</local_identifier>
            <offset unit="byte">13000000</offset>
            <axes>3</axes>
            <axis_index_order>Last Index Fastest</axis_index_order>
            <Element_Array>
                <data_type>IEEE754LSBSingle</data_type>
            </Element_Array>
            <Axis_Array>
                <axis_name>Right Ascension</axis_name>
                <elements>1000</elements>
                <sequence_number>3</sequence_number>
            </Axis_Array>
            <Axis_Array>
                <axis_name>Declination</axis_name>
                <elements>1020</elements>
                <sequence_number>2</sequence_number>
            </Axis_Array>
            <Axis_Array>
                <axis_name>Band</axis_name>
                <elements>3</elements>
                <sequence_number>1</sequence_number>
            </Axis_Array>
        </Array_3D_Spectrum>

    </File_Area_Observational>
</Product_Observational>