<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1N00.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="https://pds.nasa.gov/pds4/mission/mgn/v1/PDS4_MGN_1N00_1100.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<?xml-model href="https://pds.nasa.gov/pds4/cart/v1/PDS4_CART_1N00_1970.sch" schematypens="http://purl.oclc.org/dsdl/schematron"?>
 
<Product_Observational xmlns="http://pds.nasa.gov/pds4/pds/v1"
  xmlns:mgn="http://pds.nasa.gov/pds4/mission/mgn/v1"
  xmlns:cart="http://pds.nasa.gov/pds4/cart/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_1N00.xsd
     http://pds.nasa.gov/pds4/mission/mgn/v1 https://pds.nasa.gov/pds4/mission/mgn/v1/PDS4_MGN_1N00_1100.xsd
     http://pds.nasa.gov/pds4/cart/v1 https://pds.nasa.gov/pds4/cart/v1/PDS4_CART_1N00_1970.xsd">
 
  <Identification_Area>
    <logical_identifier>urn:nasa:pds:magellan_gvdr:data_gvdr:gvtidx_sinu</logical_identifier>
    <version_id>1.0</version_id>
    <title>Magellan GVDR Sinusoidal Tile Index Table: GVTIDX</title>
    <information_model_version>1.23.0.0</information_model_version>
    <product_class>Product_Observational</product_class>
  </Identification_Area>
  <Observation_Area>
    <Time_Coordinates>
       <start_date_time xsi:nil="true" nilReason="unknown"></start_date_time>
       <stop_date_time xsi:nil="true" nilReason="unknown"></stop_date_time>
    </Time_Coordinates>
    <Investigation_Area>
       <name>Magellan</name>
       <type>Mission</type>
       <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:investigation:mission.magellan</lid_reference>
          <reference_type>data_to_investigation</reference_type>
       </Internal_Reference>
    </Investigation_Area>
    <Observing_System>
      <Observing_System_Component>
        <name>The Magellan Spacecraft</name>
        <type>Host</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument_host:spacecraft.mgn</lid_reference>
          <reference_type>is_instrument_host</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
      <Observing_System_Component>
        <name>Magellan Spacecraft Radar System</name>
        <type>Instrument</type>
        <Internal_Reference>
          <lid_reference>urn:nasa:pds:context:instrument:mgn.rdrs</lid_reference>
          <reference_type>is_instrument</reference_type>
        </Internal_Reference>
      </Observing_System_Component>
    </Observing_System>
    <Target_Identification>
      <name>Venus</name>
      <type>Planet</type>
      <Internal_Reference>
        <lid_reference>urn:nasa:pds:context:target:planet.venus</lid_reference>
        <reference_type>data_to_target</reference_type>
      </Internal_Reference>
    </Target_Identification>
  
    <Mission_Area>
      <mgn:Magellan_Parameters>
        <mgn:product_type>GVDR</mgn:product_type>       
        <mgn:start_orbit_number>376</mgn:start_orbit_number>
        <mgn:stop_orbit_number>5747</mgn:stop_orbit_number>
        <mgn:producer_institution_name>Stanford Center for Radar Astronomy</mgn:producer_institution_name>
        <mgn:original_pds_volume_id>gvdr_0001</mgn:original_pds_volume_id>
      </mgn:Magellan_Parameters>
    </Mission_Area>
  
    <Discipline_Area>
      <cart:Cartography>
        <Local_Internal_Reference>
          <local_identifier_reference>Table</local_identifier_reference>
          <local_reference_type>cartography_parameters_to_image_object</local_reference_type>
        </Local_Internal_Reference>
        <cart:Spatial_Domain>
          <cart:Bounding_Coordinates>
            <cart:west_bounding_coordinate unit="deg">0.00</cart:west_bounding_coordinate>
            <cart:east_bounding_coordinate unit="deg">360.00</cart:east_bounding_coordinate>
            <cart:north_bounding_coordinate unit="deg">90.00</cart:north_bounding_coordinate>
            <cart:south_bounding_coordinate unit="deg">-90.00</cart:south_bounding_coordinate>
          </cart:Bounding_Coordinates>
        </cart:Spatial_Domain>
        <cart:Spatial_Reference_Information>
          <cart:Horizontal_Coordinate_System_Definition>
            <cart:Planar>
              <cart:Map_Projection>
                <cart:map_projection_name>Sinusoidal</cart:map_projection_name>
                <cart:Sinusoidal>
                  <cart:longitude_of_central_meridian unit="deg">0</cart:longitude_of_central_meridian>
                </cart:Sinusoidal>
              </cart:Map_Projection>
              <cart:Planar_Coordinate_Information>
                <cart:planar_coordinate_encoding_method>Coordinate Pair</cart:planar_coordinate_encoding_method>
                <cart:Coordinate_Representation>
                  <cart:pixel_resolution_x unit="km/pixel">18.225</cart:pixel_resolution_x>
                  <cart:pixel_resolution_y unit="km/pixel">18.225</cart:pixel_resolution_y>
                  <cart:pixel_scale_x unit="pixel/deg">5.79478</cart:pixel_scale_x>
                  <cart:pixel_scale_y unit="pixel/deg">5.79478</cart:pixel_scale_y>
                </cart:Coordinate_Representation>
              </cart:Planar_Coordinate_Information>
              <cart:Geo_Transformation>
                <cart:upperleft_corner_x unit="km">-9.1125</cart:upperleft_corner_x>
                <cart:upperleft_corner_y unit="km">9504.3375</cart:upperleft_corner_y>
              </cart:Geo_Transformation>
            </cart:Planar>
            <cart:Geodetic_Model>
              <cart:latitude_type>Planetocentric</cart:latitude_type>
              <cart:a_axis_radius unit="km">6051.0</cart:a_axis_radius>
              <cart:b_axis_radius unit="km">6051.0</cart:b_axis_radius>
              <cart:c_axis_radius unit="km">6051.0</cart:c_axis_radius>
              <cart:longitude_direction>Positive East</cart:longitude_direction>
            </cart:Geodetic_Model>
          </cart:Horizontal_Coordinate_System_Definition>
        </cart:Spatial_Reference_Information>
      </cart:Cartography>
    </Discipline_Area>
  </Observation_Area>
  
  <Reference_List>
    <Internal_Reference>
      <lid_reference>urn:nasa:pds:magellan_gvdr:document:gvdrsis</lid_reference>
      <reference_type>data_to_document</reference_type>
    </Internal_Reference>
    <Source_Product_Internal>
      <lidvid_reference>urn:nasa:pds:magellan_arcdr::1.0</lidvid_reference>
      <reference_type>data_to_derived_source_product</reference_type>
    </Source_Product_Internal>
    <Source_Product_External>
      <external_source_product_identifier>MGN-V-RDRS-5-SCVDR-V1.0</external_source_product_identifier>
      <reference_type>data_to_derived_source_product</reference_type>
      <doi>10.17189/1522514</doi>
      <curating_facility>GEO</curating_facility>
    </Source_Product_External>
  </Reference_List>
  
  <File_Area_Observational>
    <File>
      <file_name>gvtidx.tab</file_name>
      <creation_date_time>1994-05-10T23:12:00.000</creation_date_time>
    </File>
    <Table_Binary>
      <local_identifier>Table</local_identifier>
      <offset unit="byte">0</offset>
      <records>2178</records>
      <description>
        This file is the tile index, the starting point of all pixel lookup operations. The description below includes 
        a discussion of the organization of an entire GVDR image as well as instructions for use of this file.                               
        
        The GVDR is a pixel-based map product containing scattering properties of the surface of the planet Venus. Each 
        pixel contains a summary of all Magellan observations of surface scattering properties. Since some pixels were 
        observed more than once or in several modes, the amount and type of information available for each pixel is              
        variable. The information for each pixel is stored in four separate files -- one for each unique data type.  
        Each table has a fixed structure. Pixels observed more than once may have multiple entries in some tables; 
        pixels never observed will not appear at all. This arrangement results in efficient storage of pixel data.                     
        
        In addition, solely in the interest of efficient physical access, the pixels are further organized into 
        rectangular tiles. Within each of the four tables, all the pixels from a given tile are stored in consecutive 
        rows. The storage order of both pixels within tiles and tiles within the entire image is row-major, or scanline 
        format. All the pixels in the upper left tile are stored first, then all the pixels in the tile to its right, 
        and so on. This scheme ensures that pixels located near one another on the planet are stored together in the 
        data file.                                                              
        
        Two index files provide the row numbers of the observations corresponding to a given pixel. The GVTIDX, or tile 
        index file, tells the rows at which each tile begins in the other files, and the GVPIDX, or pixel index file, 
        tells where each pixel begins relative to the start of its tile.                                                          
        
        The procedure for finding all observations associated with a given pixel is the following:                                                     
        
        1.  Determine which tile the pixel belongs to using the tiling information in the GVHDR file.                                       
        
        2.  Look up the tile in the GVTIDX file (the two-dimensional array of tiles is stored in row-major, or 
        scanline, order). Obtain the starting rows of this tile in the other five files: GVPIDX, GVXIF, GVRDF, GVADF, 
        and GVANF.                                      
        
        3.  Look up the pixel in the GVPIDX file, using the row number just found in the GVTIDX file as the address of 
        the first pixel within the tile. Within each tile, the pixels are also stored in row-major, or scanline, order.                                    
        
        4.  The entries in the row of the GVPIDX table are the starting rows and number of rows in the four data files: 
        GVXIF, GVRDF, GVADF and GVANF. The starting rows in the GVPIDX file are relative to the tile starting rows 
        obtained from the GVTIDX file, so add these two numbers together.                                          
        
        5.  Look up the rows within the data files themselves.                   
        
        All of this is done automatically by the software provided in the SOFTWARE directory.
      </description>
      <Record_Binary>
        <fields>9</fields>
        <groups>0</groups>
        <record_length unit="byte">36</record_length>
        <Field_Binary>
          <name>Pixel Tile Start</name>
          <field_number>1</field_number>
          <field_location unit="byte">1</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The row in the GVPIDX file containing the first pixel in this tile, with the first row numbered as 0. This 
            will be a multiple of the number of pixels in a tile, since tiles are either written in their entirety to 
            the pixel index file or not written at all.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>XIF Tile Start</name>
          <field_number>2</field_number>
          <field_location unit="byte">5</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The row in the GVXIF table containing the first sample of the first pixel in this tile, with the first row          
            numbered as 0.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>RDF Tile Start</name>
          <field_number>3</field_number>
          <field_location unit="byte">9</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The row in the GVRDF table containing the first sample of the first pixel in this tile, with the first row          
            numbered as 0.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>ADF Tile Start</name>
          <field_number>4</field_number>
          <field_location unit="byte">13</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The row in the GVADF table containing the first sample of the first pixel in this tile, with the first row          
            numbered as 0.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>ANF Tile Start</name>
          <field_number>5</field_number>
          <field_location unit="byte">17</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The row in the GVANF table containing the first sample of the first pixel in this tile, with the first row          
            numbered as 0.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>XIF Tile Samples</name>
          <field_number>6</field_number>
          <field_location unit="byte">21</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The number of rows in the GVXIF table that correspond to pixels within this tile. The first such row is             
            numbered 'XIF Tile Start', and the last such row is numbered 'XIF Tile Start' + 'XIF Tile Samples' - 1.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>RDF Tile Samples</name>
          <field_number>7</field_number>
          <field_location unit="byte">25</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The number of rows in the GVRDF table that correspond to pixels within this tile. The first such row is             
            numbered 'RDF Tile Start', and the last such row is numbered 'RDF Tile Start' + 'RDF Tile Samples' - 1.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>ADF Tile Samples</name>
          <field_number>8</field_number>
          <field_location unit="byte">29</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The number of rows in the GVADF table that correspond to pixels within this tile. The first such row is             
            numbered 'ADF Tile Start', and the last such row is numbered 'ADF Tile Start' + 'ADF Tile Samples' - 1.
          </description>
        </Field_Binary>
        <Field_Binary>
          <name>ANF Tile Samples</name>
          <field_number>9</field_number>
          <field_location unit="byte">33</field_location>
          <data_type>UnsignedMSB4</data_type>
          <field_length unit="byte">4</field_length>
          <description>
            The number of rows in the GVANF table that correspond to pixels within this tile. The first such row is             
            numbered 'ANF Tile Start', and the last such row is numbered 'ANF Tile Start' + 'ANF Tile Samples' - 1.
          </description>
        </Field_Binary>
      </Record_Binary> 
    </Table_Binary>
  </File_Area_Observational>
  <File_Area_Observational_Supplemental>
    <File>
      <file_name>gvtidx.lbl</file_name>
    </File>
    <Stream_Text>
      <offset unit="byte">0</offset>
      <parsing_standard_id>PDS3</parsing_standard_id>
      <description>Original PDS3 label</description>
      <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
    </Stream_Text>
  </File_Area_Observational_Supplemental>
  <File_Area_Observational_Supplemental>
    <File>
      <file_name>gvtidx.fmt</file_name>
    </File>
    <Stream_Text>
      <offset unit="byte">0</offset>
      <parsing_standard_id>PDS3</parsing_standard_id>
      <description>Original PDS3 format file</description>
      <record_delimiter>Carriage-Return Line-Feed</record_delimiter>
    </Stream_Text>
  </File_Area_Observational_Supplemental>
</Product_Observational>
