+=============================================================================+
|                                                                             |
|              L1B EV 1km File Specification -- MODIS/AQUA                    |
|                           V5.0.1, 2006-07-03                                |
|       Effective for all higher numbered versions until superceded           |
|                                                                             |
+=============================================================================+

   This document specifies the format for the MODIS/AQUA Level 1B 1km
   earth-view (EV) subsampled product. The product is implemented in an HDF
   file.

   DETECTOR ORDER CONVENTION FOR DETECTOR DEPENDENT DATA:
   The "SBRS" detector order convention refers to the numbering of detectors
   on each focal plane assembly as defined by the manufacturer.  In this
   convention, the numbering of detectors is opposite in direction from the
   satellite track direction.  The "product" detector order convention is the
   reverse of the SBRS convention.  The product detector order convention was
   defined to allow consecutive scans to be laid down on an image with the
   last detector of one scan abutting the first detector of the next scan.
   ALL DATA ITEMS WITHIN THIS FILE FOLLOW THE "PRODUCT" DETECTOR ORDER
   CONVENTION.

  +=====================================================================+
  |                                                                     |
  |  Contents:                                                          |
  |                                                                     |
  |       I)  Global Metadata                                           |
  |                                                                     |
  |      II)  Instrument and Uncertainty SDSs                           |
  |                                                                     |
  |     III)  Band-Subsetting SDSs                                      |
  |                                                                     |
  |      IV)  Geolocation SDSs                                          |
  |                                                                     |
  +=====================================================================+

  ______
 /\     \ +---------------------------------------------------------------+
/  \     \| +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ |
\   \_____\ |  I)  Global Metadata                                      | |
 \  /     / +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ |
  \/_____/+---------------------------------------------------------------+

   Description:
     This section contains granule-level metadata (i.e. ECS metadata, product
     granule metadata, QA granule metadata, HDF-EOS swath metadata, and
     L1B swath metadata).

   Contents:
     1.1) ECS Standard Core Granule Metadata
     1.2) ECS Standard Archive Granule Metadata
     1.3) MODIS Level 1B Product Granule Metadata
     1.4) MODIS Level 1B QA Granule Metadata
          1.4.1) QA Granule Metadata stored as global attributes
          1.4.2) QA Granule Metadata stored as SDSs
     1.5) Level 1B HDF-EOS SWATH Metadata
     1.6) Level 1B Swath Metadata

   For attributes dimensioned 38 (number of bands), the band order is:
       1, 2, 3, .. , 13lo, 13hi, 14lo, 14hi, 15, .. , 36.
   For the reflective bands, total of 22, the order is:
       1, 2, 3, .. , 13lo, 13hi, 14lo, 14hi, .. , 19, 26.
   The order of the 490 detectors follows the order of the 38 bands described
   earlier. Within each band, the order of detectors is product order.

+=============================================================================+
|                                                                             |
|  1.1) ECS Standard Core Granule Metadata                                    |
|       Stored (as One ECS PVL String) in global attribute: CoreMetadata.0    |
|                                                                             |
+=============================================================================+
|                                                                             |
| Name                                        Example                         |
+-----------------------------------------------------------------------------+
| LOCALGRANULEID                              "MYD02SSH.A2001103.1555.002.    |
|                                             2001108115306.hdf"  (Aqua)      |
+-----------------------------------------------------------------------------+
| PRODUCTIONDATETIME                          "1998-06-01T15:53:08.000Z"      |
+-----------------------------------------------------------------------------+
| DAYNIGHTFLAG                                "Day" or "Night" or "Both"      |
+-----------------------------------------------------------------------------+
| REPROCESSINGACTUAL                          "processed once"                |
+-----------------------------------------------------------------------------+
| REPROCESSINGPLANNED                         "further update is anticipated" |
+-----------------------------------------------------------------------------+
| SIZEMBECSDATAGRANULE                        (set by "DSS")                  |
+-----------------------------------------------------------------------------+
| AUTOMATICQUALITYFLAGEXPLANATION.1           "not being investigated"        |
+-----------------------------------------------------------------------------+
| AUTOMATICQUALITYFLAG.1                      "Passed"                        |
+-----------------------------------------------------------------------------+
| OPERATIONALQUALITYFLAGEXPLANATION.1         (set by "DAAC")                 |
+-----------------------------------------------------------------------------+
| OPERATIONALQUALITYFLAG.1                    (set by "DAAC")                 |
+-----------------------------------------------------------------------------+
| SCIENCEQUALITYFLAGEXPLANATION.1             (set by "DP")                   |
+-----------------------------------------------------------------------------+
| SCIENCEQUALITYFLAG.1                        "Not Investigated"              |
+-----------------------------------------------------------------------------+
| QAPERCENTMISSINGDATA.1                      0                               |
+-----------------------------------------------------------------------------+
| PARAMETERNAME.1                             "EV_1KM_RefSB"                  |
+-----------------------------------------------------------------------------+
| EQUATORCROSSINGDATE.1                       "1996-08-05"                    |
+-----------------------------------------------------------------------------+
| EQUATORCROSSINGTIME.1                       "15:55:45.854788"               |
+-----------------------------------------------------------------------------+
| ORBITNUMBER.1                               88                              |
+-----------------------------------------------------------------------------+
| EQUATORCROSSINGLONGITUDE.1                  -73.021282                      |
+-----------------------------------------------------------------------------+
| VERSIONID                                   1                               |
+-----------------------------------------------------------------------------+
| SHORTNAME                                   "MYD02SSH"   (Aqua)             |
+-----------------------------------------------------------------------------+
| INPUTPOINTER	"LGID:MYD01:005:MYD01.A2006166.0035.005.2006166105010.hdf",   |
|		"LGID:MYD01:005:MYD01.A2006166.0040.005.2006166105211.hdf",   |
|		"LGID:MYD01:005:MYD01.A2006166.0045.005.2006166105256.hdf",   |
|		"MYD02_Reflective_LUTs.hdf.V5.0.7.12.coeff",                  |
|		"MYD02_Emissive_LUTs.hdf.V5.0.7.12.coeff",                    |
|		"MYD02_QA_LUTs.hdf.V5.0.7.12.coeff"                           |
+-----------------------------------------------------------------------------+
| GRINGPOINTLONGITUDE.1                       (-86.567558, -59.389000,        |
|                                              -59.836601, -86.653564)        |
+-----------------------------------------------------------------------------+
| GRINGPOINTLATITUDE.1                        (41.644032, 37.729759,          |
|                                              36.824055, 40.686016)          |
+-----------------------------------------------------------------------------+
| GRINGPOINTSEQUENCENO.1                      (1, 2, 3, 4)                    |
+-----------------------------------------------------------------------------+
| EXCLUSIONGRINGFLAG.1                        "N"                             |
+-----------------------------------------------------------------------------+
| RANGEENDINGDATE                             "1996-08-05"                    |
+-----------------------------------------------------------------------------+
| RANGEENDINGTIME                             "15:56:00.626488"               |
+-----------------------------------------------------------------------------+
| RANGEBEGINNINGDATE                          "1996-08-05"                    |
+-----------------------------------------------------------------------------+
| RANGEBEGINNINGTIME                          "15:55:45.854788"               |
+-----------------------------------------------------------------------------+
| PGEVERSION                                  "2.1.1"                         |
+-----------------------------------------------------------------------------+
| LOCALVERSIONID			      "5.0.1"                         |
+-----------------------------------------------------------------------------+
| ANCILLARYINPUTPOINTER.1						      |
|		"LGID:MOD03:005:MOD03.A2006166.0040.005.2006166105501.hdf"    |
+-----------------------------------------------------------------------------+
| ANCILLARYINPUTTYPE.1                        "Geolocation"                   |
+-----------------------------------------------------------------------------+
| ADDITIONALATTRIBUTENAME.1                   "PROCESSVERSION"                |
+-----------------------------------------------------------------------------+
| PARAMETERVALUE.1                            "5.0.0"                         |
+-----------------------------------------------------------------------------+
| ASSOCIATEDPLATFORMSHORTNAME.1               "Aqua"                          |
+-----------------------------------------------------------------------------+
| ASSOCIATEDINSTRUMENTSHORTNAME.1             "MODIS"                         |
+-----------------------------------------------------------------------------+
| ASSOCIATEDSENSORSHORTNAME.1                 "MODIS"                         |
+=============================================================================+

+=============================================================================+
|                                                                             |
|  1.2) ECS Standard Archive Granule Metadata                                 |
|       Stored (as HDF ECS PVL string) in global attribute: ArchiveMetadata.0 |
|                                                                             |
+=============================================================================+
|                                                                             |
| Name                                        Example                         |
+-----------------------------------------------------------------------------+
| ALGORITHMPACKAGEACCEPTANCEDATE              "2002-05-10"                    |
+-----------------------------------------------------------------------------+
| ALGORITHMPACKAGEMATURITYCODE                "post-launch"                   |
+-----------------------------------------------------------------------------+
| ALGORITHMPACKAGENAME                        "MODIS/Aqua 5km Subsampling"    |
+-----------------------------------------------------------------------------+
| ALGORITHMPACKAGEVERSION                     "3.1.0"                         |
+-----------------------------------------------------------------------------+
| INSTRUMENTNAME                              "Moderate-Resolution Imaging    |
|                                              SpectroRadiometer"             |
+-----------------------------------------------------------------------------+
| PROCESSINGCENTER                            "GSFC"                          |
+-----------------------------------------------------------------------------+
| EASTBOUNDINGCOORDINATE                      40.000000                       |
+-----------------------------------------------------------------------------+
| WESTBOUNDINGCOORDINATE                      15.000000                       |
+-----------------------------------------------------------------------------+
| NORTHBOUNDINGCOORDINATE                     25.000000                       |
+-----------------------------------------------------------------------------+
| SOUTHBOUNDINGCOORDINATE                     10.000000                       |
+-----------------------------------------------------------------------------+
| DESCRREVISION                               "5.0"                           |
+-----------------------------------------------------------------------------+
| PRODUCTIONHISTORY             "PGE93:5.0.1;PGE02:5.0.7.12:PGE01:5.0.23"     |
+-----------------------------------------------------------------------------+
| LONGNAME      "MODIS/Aqua Level1B subsampled Calibrated Radiances 5km"      |
+-----------------------------------------------------------------------------+
| PROCESSINGENVIRONMENT                       "IRIX64"                        |
+=============================================================================+

+=============================================================================+
|                                                                             |
|  1.3) MODIS Level 1B Product Granule Metadata                               |
|       Stored as global attributes.                                          |
|                                                                             |
+=============================================================================+
|                                                                             |
| Name                               | Type    |Count| Example                |
+------------------------------------+---------+-----+------------------------+
| Number of Scans                    | int32   |   1 |  203 (see note 1)      |
+------------------------------------+---------+-----+------------------------+
| Number of Day mode scans           | int32   |   1 |  203                   |
+------------------------------------+---------+-----+------------------------+
| Number of Night mode scans         | int32   |   1 |  0                     |
+------------------------------------+---------+-----+------------------------+
| Incomplete Scans                   | int32   |   1 |  14                    |
+------------------------------------+---------+-----+------------------------+
| Max Earth View Frames              | int32   |   1 |  1354                  |
+------------------------------------+---------+-----+------------------------+
| %Valid EV Observations             | float32 |  38 |  98.2, 87.1, ...       |
+------------------------------------+---------+-----+------------------------+
| %Saturated EV Observations         | float32 |  38 |  1.4, 0.2, ...         |
+------------------------------------+---------+-----+------------------------+
| Electronics Redundancy Vector      | uint32  |   2 |  (see table 1 below)   |
+------------------------------------+---------+-----+------------------------+
| Electronics Configuration Change   | uint32  |   2 |  (see table 1 below)   |
+------------------------------------+---------+-----+------------------------+
| Reflective LUT Serial Number and   | char8   |  21 | "R001 1998:01:28:12:00"|
| Date of Last Change                |         |     | (RNNN YYYY:MM:DD:HH:MM)|
+------------------------------------+---------+-----+------------------------+
| Emissive LUT Serial Number and     | char8   |  21 | "E001 1998:01:28:12:00"|
| Date of Last Change                |         |     | (ENNN YYYY:MM:DD:HH:MM)|
+------------------------------------+---------+-----+------------------------+
| QA LUT Serial Number and           | char8   |  21 | "Q001 1998:01:28:12:00"|
| Date of Last Change                |         |     | (QNNN YYYY:MM:DD:HH:MM)|
+------------------------------------+---------+-----+------------------------+
| Focal Plane Set Point State        | int8    |   1 | 0=Running uncontrolled |
|                                    |         |     | 1=Set Point is 83 deg  |
|                                    |         |     | 2=Set Point is 85 deg  |
|                                    |         |     | 3=Set Point is 88 deg  |
+=============================================================================+
Note 1.  Usage of "Number of Scans":  The value of the global attribute
         "Number of Scans" is used in the dimensioning of many of the data
         items within this product.  In later descriptions of the dimensions
         of data items, the shortened string "nscans" is used to represent
         the value of the attribute "Number of Scans".  This value will
         typically be 203 or 204 during operations.
         However, the file format supports any value greater than zero.

+============================================================================+
| Table 1.                                                                   |
| "Electronics Redundancy Vector" and "Electronics Configuration Change"     |
|    (bit 0 is the least significant bit in the uint32 word)                 |
| The Electronics Redundancy Vector gives the final valid value for          |
|    the corresponding telemetry point within the granule.                   |
|    Values are 0=OFF and 1=ON.                                              |
| The Electronics Configuration Change identifies if any change occurred     |
|    within the granule for the corresponding telemetry point.               |
|    Values are 0 = no change, 1 = change.                                   |
+----------------------------------------------------------------------------+
| Word | Bit |             System                        | Telemetry point   |
+======+=====+===========================================+===================+
|  0   |  0  |  BB - Blackbody A                         | CR_BB_A_PWR_ON    |
|  0   |  1  |  BB - Blackbody B                         | CR_BB_B_PWR_ON    |
|  0   |  2  |  CE - Calibrator Electronics A            | CR_CE_A_ON        |
|  0   |  3  |  CE - Calibrator Electronics B            | CR_CE_B_ON        |
|  0   |  4  |  CP - Command & Telemetry Processor A     | CR_CP_A_ON_M      |
|  0   |  5  |  CP - Command & Telemetry Processor B     | CR_CP_B_ON_M      |
|  0   |  6  |  FI - FDDI Formatter A                    | CR_FI_A_ON        |
|  0   |  7  |  FI - FDDI Formatter B                    | CR_FI_B_ON        |
|  0   |  8  |  FO - FIFO Memory, Block 1                | CR_FO_BLK1_ON     |
|  0   |  9  |  FO - FIFO Memory, Block 2                | CR_FO_BLK2_ON     |
|  0   | 10  |  FO - FIFO Memory, Block 3                | CR_FO_BLK3_ON     |
|  0   | 11  |  FO - FIFO Memory, Block 4                | CR_FO_BLK4_ON     |
|  0   | 12  |  FR - Formatter A                         | CR_FR_A_ON        |
|  0   | 13  |  FR - Formatter B                         | CR_FR_B_ON        |
|  0   | 14  |  FR - PC DCR                              | CS_FR_PC_DCR_ON   |
|  0   | 15  |  FR - PV DCR                              | CS_FR_PV_DCR_ON   |
|  0   | 16  |  PC - PC Bands ADCs A                     | CR_PCLW_A_ON      |
|  0   | 17  |  PC - PC Bands ADCs B                     | CR_PCLW_B_ON      |
|  0   | 18  |  PV - PV FPA, LWIR ADCs A                 | CR_PVLW_A_ON      |
|  0   | 19  |  PV - PV FPA, LWIR ADCs B                 | CR_PVLW_B_ON      |
|  0   | 20  |  PV - PV FPA, SMIR ADCs A                 | CR_PVSM_A_ON      |
|  0   | 21  |  PV - PV FPA, SMIR ADCs B                 | CR_PVSM_B_ON      |
|  0   | 22  |  PV - PV FPA, NIR ADCs A                  | CR_PVNIR_A_ON     |
|  0   | 23  |  PV - PV FPA, NIR ADCs B                  | CR_PVNIR_B_ON     |
|  0   | 24  |  PV - PV FPA, VIS ADC A                   | CR_PVVIS_A_ON     |
|  0   | 25  |  PV - PV FPA, VIS ADC B                   | CR_PVVIS_B_ON     |
|  0   | 26  |  PV - PV LWIR ECAL A                      | CR_PVLWA_ECAL_ON  |
|  0   | 27  |  PV - PV LWIR ECAL B                      | CR_PVLWB_ECAL_ON  |
|  0   | 28  |  PV - PV NIR ECAL A                       | CR_PVNIRA_ECALON  |
|  0   | 29  |  PV - PV NIR ECAL B                       | CR_PVNIRB_ECALON  |
|  0   | 30  |  PV - PV SMIR ECAL A                      | CR_PVSMA_ECAL_ON  |
|  0   | 31  |  PV - PV SMIR ECAL B                      | CR_PVSMB_ECAL_ON  |
+------+-----+-------------------------------------------+-------------------+
|  1   |  0  |  PV - PV VIS ECAL A                       | CR_PVVISA_ECALON  |
|  1   |  1  |  PV - PV VIS ECAL B                       | CR_PVVISB_ECALON  |
|  1   |  2  |  RC - SMIR Temp. Control Heater           | CR_RC_SMHTR_ON    |
|  1   |  3  |  RC - LWIR Temp. Control Heater           | CR_RC_LWHTR_ON    |
|  1   |  4  |  SA - Scan Mirror Assembly A              | CR_SA_A_SCAN_ON   |
|  1   |  5  |  SA - Scan Mirror Assembly B              | CR_SA_B_SCAN_ON   |
|  1   |  6  |  SM - SD Stability Monitor A              | CR_SM_SDSM_A_ON   |
|  1   |  7  |  SM - SD Stability Monitor B              | CR_SM_SDSM_B_ON   |
|  1   |  8  |  SR - Spectroradiometric Assy (SRCA) A    | CR_SR_A_ON        |
|  1   |  9  |  SR - Spectroradiometric Assy (SRCA) B    | CR_SR_B_ON        |
|  1   | 10  |  TG - Timing Generator A                  | CR_TG_A_ON        |
|  1   | 11  |  TG - Timing Generator B                  | CR_TG_B_ON        |
+------+-----+-------------------------------------------+-------------------+
|  1   |12-31|  (Unused)                                                     |
+============================================================================+
Note:  When the most significant bit of the second word is set to 1, this
denotes that at least one of the telemetry fields had no valid values found.

+=============================================================================+
|                                                                             |
|  1.4)  MODIS Level 1B QA Granule Metadata                                   |
|                                                                             |
+=============================================================================+

+=============================================================================+
|                                                                             |
|  1.4.1) MODIS Level 1B QA Granule Metadata                                  |
|         stored as global attributes.                                        |
|                                                                             |
+=============================================================================+
|                                                                             |
| Name                                     | Type  |Count| Example            |
+------------------------------------------+-------+-----+--------------------+
| Doors and Screens Configuration          | int8  |   1 | 2                  |
+------------------------------------------+-------+-----+--------------------+
| Reflective Bands With Bad Data           | int8  |  22 | 1,0,0,1...         |
+------------------------------------------+-------+-----+--------------------+
| Emissive Bands With Bad Data             | int8  |  16 | 1,0,0,1...         |
+------------------------------------------+-------+-----+--------------------+
| Noise in Black Body Thermistors          | uint8 |  12 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in Average BB Temperature          | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in LWIR FPA Temperature            | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in MWIR FPA Temperature            | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in Scan Mirror Thermistor #1       | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in Scan Mirror Thermistor #2       | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in Scan Mirror Thermistor Average  | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in Instrument Temperature          | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in Cavity Temperature              | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in Temperature of NIR FPA          | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Noise in Temperature of Vis FPA          | uint8 |   1 | 10                 |
+------------------------------------------+-------+-----+--------------------+
| Dead Detector List                       | int8  | 490 | 1=True or 0=False  |
+------------------------------------------+-------+-----+--------------------+
| Noisy Detector List                      | int8  | 490 | 1=True or 0=False  |
+------------------------------------------+-------+-----+--------------------+
| Detector Quality Flag                    | uint8 | 490 | (See table below)  |
+------------------------------------------+-------+-----+--------------------+
| Earth-Sun Distance                       |float32|   1 | 1.0045             |
+------------------------------------------+-------+-----+--------------------+
| Solar Irradiance on RSB Detectors over pi|float32| 330 | 511.459,511.46,... |
+------------------------------------------+-------+-----+--------------------+
| % L1A EV All Scan Data are Missing       |float32|   1 | 1.301              |
+------------------------------------------+-------+-----+--------------------+
| % L1A EV RSB DN Not in Day Mode          |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| % L1A EV DN Missing Within Scan          |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| % Dead Detector EV Data                  |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| % Sector Rotation EV Data                |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| % Saturated EV Data                      |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| % TEB EV Data With Moon in SVP           |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| % EV Data Where Cannot Compute BG DN     |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| % RSB EV Data With dn** Below Scale      |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| % EV Data Where Nadir Door Closed        |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| % EV Data Not Calibrated                 |float32| 490 | 1.301, 0.012, ...  |
+------------------------------------------+-------+-----+--------------------+
| Bit QA Flags Last Value                  | uint32|   1 | 0                  |
+------------------------------------------+-------+-----+--------------------+
| Bit QA Flags Change                      | uint32|   1 | 0                  |
+------------------------------------------+-------+-----+--------------------+
| Granule Average QA Values                |float32|  50 | 290.004,289.984,...|
+=============================================================================+

+================================================================+
|  Detector Quality Flag                                         |
|  bitmask, each bit has value: 1=True or 0=False                |
|                                                                |
|  Bit |                       Meaning                           |
|======+=========================================================+
|   0  |                    Noisy Detector                       |
| (LSB)|   (same value as in attribute "Noisy Detector List")    |
|------+---------------------------------------------------------+
|   1  |                     Dead Detector                       |
|      |   (same value as in attribute "Dead Detector List")     |
|------+---------------------------------------------------------+
|   2  |                  Out-of-Family Gain                     |
|------+---------------------------------------------------------+
|   3  |                     Dynamic Range                       |
|------+---------------------------------------------------------+
|   4  |        Detector saturates on calibration source         |
|------+---------------------------------------------------------+
|   5  |             High calibration fit residuals              |
|------+---------------------------------------------------------+
|   6  |                 Electrical Crosstalk                    |
|------+---------------------------------------------------------+
|   7  |                          TBD                            |
+======+=========================================================+

The following abbreviations are used for the dimensions in the Granule
Metadata list.  Note: the first four dimensions listed below are redundant
with Band_250M, Band_500M, Band_1KM_RefSB, and Band_1KM_Emissive, respectively.

Short
Name	Actual Dimension Name           Value
======	==========================      ======
n250	number of 250m bands               2
n500	number of 500m bands               5
nemisv	numer of emissive bands           16
nreflv	number of reflective bands        15
ndet	detectors per 1KM band            10
2*ndet	detectors per 500 M band          20
4*ndet	detectors per 500 M band          40

+=============================================================================+
|                                                                             |
|  1.4.2) MODIS Level 1B QA Granule Metadata                                  |
|         stored as SDSs.                                                     |
|                                                                             |
+=============================================================================+
|                                                                             |
| Name                               |  Type  | Dimensions       | Example    |
+------------------------------------+--------+------------------+------------+
| Noise in Thermal Detectors         |  uint8 | [nemisv][ndet]   |  8,6,4...  |
+------------------------------------+--------+------------------+------------+
| Change in relative responses of    |        |                  |            |
| thermal detectors                  |  uint8 | [nemisv][ndet]   |  10,6,8... |
+------------------------------------+--------+------------------+------------+
| DC Restore Change for Thermal Bands|  int8  | [nscans]         |  0,0,1 ... |
|				     |	      | [nemisv][ndet]	 |	      |
+------------------------------------+--------+------------------+------------+
| DC Restore Change for Reflective   |        | [nscans]         |            |
| 250m Bands                         |  int8  | [n250][4*ndet]   |  0,0,1...  |
+------------------------------------+--------+------------------+------------+
| DC Restore Change for Reflective   |        | [nscans]         |            |
| 500m Bands                         |  int8  | [n500][2*ndet]   |  0,0,1...  |
+------------------------------------+--------+------------------+------------+
| DC Restore Change for Reflective   |        | [nscans]         |            |
| 1km Bands                          |  int8  | [nreflv][ndet]   |  0,0,1...  |
+=============================================================================+

+=============================================================================+
|                                                                             |
|  1.5)  Level 1B HDF-EOS SWATH Metadata                                      |
|        Stored as global attribute: StructMetadata.0                         |
|                                                                             |
+=============================================================================+
|                                                                             |
|GROUP=SwathStructure                                                         |
| GROUP=SWATH_1                                                               |
|                                                                             |
|  SwathName="MODIS_SWATH_Type_L1B"                                           |
|                                                                             |
|   GROUP=Dimension                                                           |
|   +-------------+---------------------+-----------------+                   |
|   | Object      | DimensionName       | Size            |                   |
|   +-------------+---------------------+-----------------+                   |
|   | Dimension_1 | "2*nscans"          | 2*nscans        |                   |
|   | Dimension_2 | "1KM_geo_dim"       | 271             |                   |
|   | Dimension_3 | "Band_1KM_RefSB"    | 15              |                   |
|   | Dimension_4 | "10*nscans"         | 2*nscans        |                   |
|   | Dimension_5 | "Max_EV_frames"     | 271             |                   |
|   | Dimension_6 | "Band_1KM_Emissive" | 16              |                   |
|   | Dimension_7 | "Band_250M"         | 2               |                   |
|   | Dimension_8 | "Band_500M"         | 5               |                   |
|   +-------------+---------------------+-----------------+                   |
|   Note: Dimension_8, "1KM_geo_dim", is computed as Max_EV_frames/5+1        |
|   Note: "10*nscans" and "Max_EV_frames" are retained from the full-sized    |
|   input file, but are given values inconsistent with their names, in order  |
|   to correctly describe the subsetted output file.                          |
|                                                                             |
|   GROUP=DimensionMap                                                        |
|   +----------------+---------------------+-----------------+--------+------+|
|   | Object         | GeoDimension        | DataDimension   | Offset | Inc. ||
|   +----------------+---------------------+-----------------+--------+------+|
|   | DimensionMap_1 | "2*nscans"          | "10*nscans"     |   0    |  1   ||
|   | DimensionMap_2 | "1KM_geo_dim"       | "Max_EV_frames" |   0    |  1   ||
|   +----------------+---------------------+-----------------+--------+------+|
|                                                                             |
|   GROUP=GeoField                                                            |
|   +-----------+------------+--------------+--------------------------------+|
|   |Object     |GeoFieldName| DataType     | DimList                        ||
|   +-----------+------------+--------------+--------------------------------+|
|   |GeoField_1 |"Latitude"  | DFNT_FLOAT32 |("2*nscans","1KM_geo_dim")      ||
|   |GeoField_2 |"Longitude" | DFNT_FLOAT32 |("2*nscans","1KM_geo_dim")      ||
|   +-----------+------------+--------------+--------------------------------+|
|                                                                             |
|   GROUP=DataField                                                           |
|   +-------------+-----------------------+-------------+--------------------+|
|   | Object      | DataFieldName         | DataType    | DimList            ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_1 | "EV_1KM_RefSB"        | DFNT_UINT16 |("Band_1KM_RefSB",  ||
|   |             |                       |             | "10*nscans",       ||
|   |             |                       |             | "Max_EV_frames")   ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_2 | "EV_1KM_RefSB_        | DFNT_UINT8  |("Band_1KM_RefSB",  ||
|   |             |  Uncert_Indexes"      |             | "10*nscans",       ||
|   |             |                       |             | "Max_EV_frames")   ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_3 | "EV_1KM_Emissive"     | DFNT_UINT16 | ("Band_1KM_        ||
|   |             |                       |             |       Emissive",   ||
|   |             |                       |             |  "10*nscans",      ||
|   |             |                       |             |  "Max_EV_frames")  ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_4 | "EV_1KM_Emissive_     | DFNT_UINT8  | ("Band_1KM_        ||
|   |             |  Uncert_Indexes"      |             |       Emissive",   ||
|   |             |                       |             |  "10*nscans",      ||
|   |             |                       |             |  "Max_EV_frames")  ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_5 | "EV_250_Aggr1km_RefSB"| DFNT_UINT16 | ("Band_250M",      ||
|   |             |                       |             |  "10*nscans",      ||
|   |             |                       |             |  "Max_EV_frames")  ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_6 | "EV_250_Aggr1km_      | DFNT_UINT8  | ("Band_250M",      ||
|   |             |  RefSB_Uncert_Indexes"|             |  "10*nscans",      ||
|   |             |                       |             |  "Max_EV_frames")  ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_7 | "EV_250_Aggr1km_      | DFNT_INT8   | ("Band_250M",      ||
|   |             |  RefSB_Samples_Used"  |             |  "10*nscans",      ||
|   |             |                       |             |  "Max_EV_frames")  ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_8 | "EV_500_Aggr1km_RefSB"| DFNT_UINT16 | ("Band_500M",      ||
|   |             |                       |             |  "10*nscans",      ||
|   |             |                       |             |  "Max_EV_frames")  ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_9 | "EV_500_Aggr1km_      | DFNT_UINT8  | ("Band_500M",      ||
|   |             |  RefSB_Uncert_Indexes"|             |  "10*nscans",      ||
|   |             |                       |             |  "Max_EV_frames")  ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_10| "EV_500_Aggr1km_      | DFNT_INT8   | ("Band_500M",      ||
|   |             |  RefSB_Samples_Used"  |             |  "10*nscans",      ||
|   |             |                       |             |  "Max_EV_frames")  ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_11| "Height"              | DFNT_INT16  |("2*nscans",        ||
|   |             |                       |             | "1KM_geo_dim")     ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_12| "SensorZenith"        | DFNT_INT16  |("2*nscans",        ||
|   |             |                       |             | "1KM_geo_dim")     ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_13| "SensorAzimuth"       | DFNT_INT16  |("2*nscans",        ||
|   |             |                       |             | "1KM_geo_dim")     ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_14| "Range"               | DFNT_UINT16 |("2*nscans",        ||
|   |             |                       |             | "1KM_geo_dim")     ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_15| "SolarZenith"         | DFNT_INT16  |("2*nscans",        ||
|   |             |                       |             | "1KM_geo_dim")     ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_16| "SolarAzimuth"        | DFNT_INT16  |("2*nscans",        ||
|   |             |                       |             | "1KM_geo_dim")     ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_17| "gflags"              | DFNT_UINT8  |("2*nscans",        ||
|   |             |                       |             | "1KM_geo_dim")     ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_18| "Band_250M"           | DFNT_FLOAT32| ("Band_250M")      ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_19| "Band_500M"           | DFNT_FLOAT32| ("Band_500M")      ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_20| "Band_1KM_RefSB"      | DFNT_FLOAT32|("Band_1KM_RefSB")  ||
|   +-------------+-----------------------+-------------+--------------------+|
|   | DataField_21| "Band_1KM_Emissive"   | DFNT_FLOAT32| ("Band_1KM_        ||
|   |             |                       |             |       Emissive")   ||
|   +-------------+-----------------------+-------------+--------------------+|
|                                                                             |
+=============================================================================+

+=============================================================================+
|                                                                             |
|  1.6) Level 1B Swath Metadata                                               |
|                                                                             |
|  These data are stored as a single HDF Vdata table having the name          |
|  "Level 1B Swath Metadata".  The number of records is equal to nscans       |
|  (determined by the "Number of Scans" global attribute).  The table         |
|  below describes the fields of this Vdata object.                           |
|                                                                             |
+=============================================================================+
|                                                                             |
|  Field Name                    |  Type   |Order| Range                      |
+--------------------------------+---------+-----+----------------------------+
|  Scan Number                   |  int32  |  1  | 1 to 204                   |
+--------------------------------+---------+-----+----------------------------+
|  Complete Scan Flag            |  int32  |  1  | 1=Complete, 0=Incomplete   |
+--------------------------------+---------+-----+----------------------------+
|  Scan Type                     |  char8  |  4  | "D   "=day,                |
|                                |         |     | "N   "=night,              |
|                                |         |     | "M   "=mixed,              |
|                                |         |     | "O   "=other               |
+--------------------------------+---------+-----+----------------------------+
|  Mirror Side                   | int32   |  1  | 0  or  1                   |
+--------------------------------+---------+-----+----------------------------+
|  EV Sector Start Time          | float64 |  1  | TAI time (number of sec.   |
|                                |         |     |           since 1/1/93)    |
+--------------------------------+---------+-----+----------------------------+
|  EV_Frames                     | int32   |  1  | 1354    (constant)         |
+--------------------------------+---------+-----+----------------------------+
|  Nadir_Frame_Number            | int32   |  1  | 677     (constant)         |
+--------------------------------+---------+-----+----------------------------+
|  Latitude of Nadir Frame       | float32 |  1  | -90.0 to 90.0 degrees      |
+--------------------------------+---------+-----+----------------------------+
|  Longitude of Nadir Frame      | float32 |  1  | -180.0 to 180.0 degrees    |
+--------------------------------+---------+-----+----------------------------+
|  Solar Azimuth of Nadir Frame  | float32 |  1  | -180.0 to 180.0 degrees    |
+--------------------------------+---------+-----+----------------------------+
|  Solar Zenith of Nadir Frame   | float32 |  1  | 0.0 to 180.0 degrees       |
+--------------------------------+---------+-----+----------------------------+
|  No. OBC BB thermistor outliers| int32   |  1  | 0 to 12                    |
+--------------------------------+---------+-----+----------------------------+
|  Bit QA Flags                  | uint32  |  1  | (see table below)          |
+--------------------------------+---------+-----+----------------------------+
|  Sector Rotation Angle         | float32 |  1  | 0.0 to 360.0 degrees       |
+================================+=========+=====+============================+

+=============================================================================+
|                                                                             |
|  1.7) Level 1B Swath Metadata Stored as global attributes.                  |
|                                                                             |
+=============================================================================+
|                                                                             |
| Name                                                        |Type   |#|const|
+-------------------------------------------------------------+-------+-+-----+
| HDFEOS_FractionalOffset_10*nscans_MODIS_SWATH_Type_L1B      |float32|1| 0.0 |
+-------------------------------------------------------------+-------+-+-----+
| HDFEOS_FractionalOffset_Max_EV_frames_MODIS_SWATH_Type_L1B  |float32|1| 0.0 |
+=============================================================+=======+=+=====+

  Notes
    1. Scan Type has the three "extra" characters to make it a 32 bit field
       (to make reading the Vdata structure easier).

    2. Bit QA Flags are as follows (bit 0 is the least significant
       bit in the word):
       +========+==========================================+
       | bit #  |   flag name/desciption (1=True, 0=False) |
       +========+==========================================+
       | bit 0  |   Moon within defined limits of SVP      |
       +--------+------------------------------------------+
       | bit 1  |   Spacecraft Maneuver                    |
       +--------+------------------------------------------+
       | bit 2  |   Sector Rotation                        |
       +--------+------------------------------------------+
       | bit 3  |   Negative Radiance Beyond Noise Level   |
       +--------+------------------------------------------+
       | bit 4  |   PC Ecal on                             |
       +--------+------------------------------------------+
       | bit 5  |   PV Ecal on                             |
       +--------+------------------------------------------+
       | bit 6  |   SD Door Open                           |
       +--------+------------------------------------------+
       | bit 7  |   SD Screen Down                         |
       +--------+------------------------------------------+
       | bit 8  |   NAD closed                             |
       +--------+------------------------------------------+
       | bit 9  |   SDSM On                                |
       +--------+------------------------------------------+
       | bit 10 |   Radcooler Heaters On                   |
       +--------+------------------------------------------+
       | bit 11 |   Day mode bands telemetered at night    |
       +--------+------------------------------------------+
       | bit 12 |   Linear Emissive Calibration            |
       +--------+------------------------------------------+
       | bit 13 |   DC Restore Change                      |
       +--------+------------------------------------------+
       | bit 14 |   (Unused)                               |
       +--------+------------------------------------------+
       | bit 15 |   BB Heater On                           |
       +--------+------------------------------------------+
       | bit 16 |   Missing Previous Granule               |
       +--------+------------------------------------------+
       | bit 17 |   Missing Subsequent Granule             |
       +--------+------------------------------------------+
       |        |   SRCA calibration mode                  |
       | bits   |       +--------+--------+-------------+  |
       |  18-19 |       | bit 18 | bit 19 |  Meaning    |  |
       |        |       +--------+--------+-------------+  |
       |        |       |    0   |    0   | Radiometric |  |
       |        |       |    0   |    1   | Spatial     |  |
       |        |       |    1   |    0   | Spectral    |  |
       |        |       |    1   |    1   | undetermined|  |
       |        |       +--------+--------+-------------+  |
       +--------+------------------------------------------+
       | bit 20 |   moon in keep out box, any RSB          |
       +--------+------------------------------------------+
       | bit 21 |   moon in keep out box, any TEB          |
       +--------+------------------------------------------+
       | bit 22 |   All SV data are bad for any RSB        |
       +--------+------------------------------------------+
       | bit 23 |   All BB data are bad for any RSB        |
       +--------+------------------------------------------+
       | bit 24 |   Dropped scan(s) between leading and    |
       |        |      middle granules                     |
       +--------+------------------------------------------+
       | bit 25 |   Dropped scan(s) between middle and     |
       |        |      trailing granules                   |
       +--------+------------------------------------------+
       | bit 26 |   Sci Abnormal                           |
       +--------+------------------------------------------+
       | bit 27 |   (Remaining bits reserved for           |
       | ... 31 |    future use)                           |
       +========+==========================================+

  ______
 /\     \ +---------------------------------------------------------------+
/  \     \| +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ |
\   \_____\ |   II)  Instrument and Uncertainty SDSs                    | |
 \  /     / +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ |
  \/_____/+---------------------------------------------------------------+

   Description:
     This section contains the scientific data sets (SDSs) in which the
     "corrected count" data (scaled to 16 bit integers) is stored, the
     corresponding uncertainty indices, and the number of samples used
     to do aggregation.

   SDS Indexing:
     Each SDS is an array through a space of five parameters: band, detector,
     scan, frame and sample.  However, the SDS is written as a 3-D array so
     that it can be added to the HDF-EOS "SWATH" data structure:

        SDS_name[band_index, scan_and_detect_index, frame_and_sample_index]

     Where "band_index" represents an index through the bands represented in
     the SDS, "scan_and_detect_index" represents a double index through all
     detectors and scans, and "frame_and_sample_index" represents a double
     index through all frames and samples in a frame.  In this discussion,
     an "index" assumes a convention of 0 to N-1.  The following formula can
     be used to obtain the scan_and_detect_index from the detector index and
     the scan index:

        scan_and_det_index  =  scan_index * num_detectors_at_resolution
                               + detector_index

     where num_detectors_at_resolution = 10 for SDSs in the 1km product.
     Similarly, to obtain the frame_and_sample_index from the frame and
     sample indices:

        frame_and_sample_index = frame_index * num_samples_at_resolution
                                 + sample_index

     where num_samples_at_resolution = 1 for SDSs in the 1km product.

   Specific Data Values:
     Generally, any scaled integer (SI) value above 32767 represents unusable
     data.  The following values are reserved for the scaled integer and the
     uncertainty index (UI) to signal the reason why data are unusable:

              Reason for unusable data                      SI      UI
     ----------------------------------------------       -----    ----
     Fill Value (includes reflective band data
       at night and completely missing L1A scans)         65535    255
     L1A DN is missing within a scan                      65534     15
     Detector is saturated                                65533     15
     Cannot compute  zero point DN                        65532     15
     Detector is dead                                     65531*    15
     RSB dn** below the minimum of the scaling range      65530     15
     TEB radiance or RSB dn** exceeds the
       maximum of the scaling range                       65529     15
     Aggregation algorithm failure                        65528     15
     Rotation of Earth-View Sector from
       nominal science collection position                65527     15
     Calibration coefficient b1 could not be computed     65526     15
     (reserved for future use)                         65501-65525  15
     NAD closed upper limit                               65500     15

     * The "Dead Detector List" attribute (Section 1.4.1) identifies those
     detectors that are declared non-functional (cannot be calibrated).
     If possible, a valid SI value will be interpolated from the nearest
     functional detectors within the same scan.  If not possible, the value
     will be set at 65531.

     For the case of nadir-aperture door (NAD) closed, the SI value will be
     set to a value > 32767 (denoting unusable data).  First, if appropriate,
     a specific unusable data value above will be assigned.  If one of the
     specific reasons does not apply, then the SI value will be calculated
     normally and then the most significant bit will be flipped, resulting
     in a value > 32767.  If the resulting scaled integer value exceeds the
     value of NAD closed upper limit, the value will be set to that value.

     Also, for any uncertainty value other than fill-value (255), the
     uncertainty is written into the 4 least significant bits of the 8-bit
     UI value (hence, 15 is the maximum 4-bit number).

     To compute uncertainty in percent from the uncertainty index (UI), use
     the specified_uncertainty and scaling_factor for the given band in:

         % uncertainty = specified_uncertainty * exp(UI/scaling_factor)

     The band-dependent values of specified_uncertainty and scaling_factor
     are attached as attributes to each uncertainty index SDS.

   Contents:
     2.1)  EV_250_Aggr1km_RefSB
     2.2)  EV_250_Aggr1km_RefSB_Uncert_Indexes
     2.3)  EV_250_Aggr1km_RefSB_Samples_Used
     2.4)  EV_500_Aggr1km_RefSB
     2.5)  EV_500_Aggr1km_RefSB_Uncert_Indexes
     2.6)  EV_500_Aggr1km_RefSB_Samples_Used
     2.7)  EV_1KM_RefSB
     2.8)  EV_1KM_RefSB_Uncert_Indexes
     2.9)  EV_1KM_Emissive
     2.10) EV_1KM_Emissive_Uncert_Indexes

+=============================================================================+
|  2.1) EV_250_Aggr1km_RefSB                                                  |
|                                                                             |
|  SDS Name                 Data Type   Dimensions                            |
+-----------------------------------------------------------------------------+
| "EV_250_Aggr1km_RefSB"    uint16      (Band_250M, 10*nscans, Max_EV_frames) |
|                                                                             |
|    Description:                                                             |
|      16 bit scaled integer array containing the 250m Earth View data,       |
|      aggregated to 1km resolution.                                          |
|                                                                             |
|    SDS Attributes:                                                          |
|      +-----------------------------+---------+-----+------------------------+
|      | Attribute Name              | Type    |Count| Attribute Value        |
|      +-----------------------------+---------+-----+------------------------+
|      | units                       | string  |  1  | "none"                 |
|      +-----------------------------+---------+-----+------------------------+
|      | valid_range                 | uint16  |  2  | 0, 32767               |
|      +-----------------------------+---------+-----+------------------------+
|      | _FillValue                  | uint16  |  1  | 65535                  |
|      +-----------------------------+---------+-----+------------------------+
|      | long_name                   | string  |  1  |"Earth View 250M Aggrega|
|      |                             |         |     |ted 1km Reflective Solar|
|      |                             |         |     |Bands Scaled Integers"  |
|      +-----------------------------+---------+-----+------------------------+
|      | band_names                  | string  |  1  | "1, 2"                 |
|      +-----------------------------+---------+-----+------------------------+
|      | radiance_scales             | float32 |  2  | x.f, x.f               |
|      +-----------------------------+---------+-----+------------------------+
|      | radiance_offsets            | float32 |  2  | x.f, x.f               |
|      +-----------------------------+---------+-----+------------------------+
|      | radiance_units              | string  |  1  |"Watts/m^2/micrometer/st|
|      |                             |         |     | eradian"               |
|      +-----------------------------+---------+-----+------------------------+
|      | reflectance_scales          | float32 |  2  | x.f, x.f               |
|      +-----------------------------+---------+-----+------------------------+
|      | reflectance_offsets         | float32 |  2  | x.f, x.f               |
|      +-----------------------------+---------+-----+------------------------+
|      | reflectance_units           | string  |  1  | "none"                 |
|      +-----------------------------+---------+-----+------------------------+
|      | corrected_counts_scales     | float32 |  2  | x.f, x.f               |
|      +-----------------------------+---------+-----+------------------------+
|      | corrected_counts_offsets    | float32 |  2  | x.f, x.f               |
|      +-----------------------------+---------+-----+------------------------+
|      | corrected_counts_units      | string  |  1  | "counts"               |
|      +-----------------------------+---------+-----+------------------------+
|                                                                             |
+=============================================================================+
  Note: "x.f" means the value of the attribute is variable (may change from
        granule to granule). The values of all other attributes are constant.

+=============================================================================+
|  2.2) EV_250_Aggr1km_RefSB_Uncert_Indexes                                   |
|                                                                             |
|  SDS Name                                Data Type   Dimensions             |
+-----------------------------------------------------------------------------+
| "EV_250_Aggr1km_RefSB_Uncert_Indexes"    uint8       (Band_250M, 10*nscans, |
|                                                       Max_EV_frames)        |
|                                                                             |
|    Description:                                                             |
|      8 bit unsigned integer array containing the uncertainty index values   |
|      corresponding to the aggregated 250m Earth View data stored            |
|      in the "EV_250_Aggr1km_RefSB" SDS. The uncertainty index values are    |
|      calculated from the percent uncertainty in the reflectance product.    |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | long_name                | string |  1  |"Earth View 250M Aggregated |
|      |                          |        |     | 1km Reflective Solar Bands |
|      |                          |        |     | Uncertainty Indexes"       |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | uint8  |  2  | 0, 15                      |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | uint8  |  1  | 255                        |
|      +--------------------------+--------+-----+----------------------------+
|      | specified_uncertainty    | float32|  2  | x.f, x.f                   |
|      +--------------------------+--------+-----+----------------------------+
|      | scaling_factor           | float32|  2  | x.f, x.f                   |
|      +--------------------------+--------+-----+----------------------------+
|      | uncertainty_units        | string |  1  | "percent"                  |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+
  Note: "x.f" means the value of the attribute is variable (may change from
        granule to granule). The values of all other attributes are constant.

+=============================================================================+
|  2.3) EV_250_Aggr1km_RefSB_Samples_Used                                     |
|                                                                             |
|  SDS Name                              Data Type   Dimensions               |
+-----------------------------------------------------------------------------+
| "EV_250_Aggr1km_RefSB_Samples_Used"    int8        (Band_250M, 10*nscans,   |
|                                                     Max_EV_frames)          |
|                                                                             |
|    Description:                                                             |
|      8 bit integer array containing the number of samples used in           |
|      the 250m Earth View data to aggregate to 1km resolution (which is      |
|      stored in the "EV_250_Aggr1km_RefSB" SDS).                             |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | long_name                | string |  1  |"Earth View 250M Aggregated |
|      |                          |        |     | 1km Reflective Solar Bands |
|      |                          |        |     | Number of Samples Used in  |
|      |                          |        |     | Aggregation"               |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              |  int8  |  2  | 0, 28                      |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               |  int8  |  1  | -1                         |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  2.4) EV_500_Aggr1km_RefSB                                                  |
|                                                                             |
|  SDS Name                  Data Type             Dimensions                 |
+-----------------------------------------------------------------------------+
| "EV_500_Aggr1km_RefSB"     uint16     (Band_500M, 10*nscans, Max_EV_frames) |
|                                                                             |
|    Description:                                                             |
|      16 bit scaled integer array containing the 500m Earth View data,       |
|      aggregated to 1km resolution.                                          |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | uint16 |  2  | 0, 32767                   |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | uint16 |  1  | 65535                      |
|      +--------------------------+--------+-----+----------------------------+
|      | long_name                | string |  1  |"Earth View 500M Aggregated |
|      |                          |        |     | 1km Reflective Solar Bands |
|      |                          |        |     | Scaled Integers"           |
|      +--------------------------+--------+-----+----------------------------+
|      | band_names               | string |  1  | "3, 4, 5, 6, 7"            |
|      +--------------------------+--------+-----+----------------------------+
|      | radiance_scales          | float32|  5  | x.f, x.f, x.f, x.f, x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | radiance_offsets         | float32|  5  | x.f, x.f, x.f, x.f, x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | radiance_units           | string |  1  |"Watts/m^2/micrometer/stera |
|      |                          |        |     | dian"                      |
|      +--------------------------+--------+-----+----------------------------+
|      | reflectance_scales       | float32|  5  | x.f, x.f, x.f, x.f, x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | reflectance_offsets      | float32|  5  | x.f, x.f, x.f, x.f, x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | reflectance_units        | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | corrected_counts_scales  | float32|  5  | x.f, x.f, x.f, x.f, x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | corrected_counts_offsets | float32|  5  | x.f, x.f, x.f, x.f, x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | corrected_counts_units   | string |  1  | "counts"                   |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+
  Note: "x.f" means the value of the attribute is variable (may change from
        granule to granule). The values of all other attributes are constant.

+=============================================================================+
|  2.5) EV_500_Aggr1km_RefSB_Uncert_Indexes                                   |
|                                                                             |
|  SDS Name                              Data Type   Dimensions               |
+-----------------------------------------------------------------------------+
| "EV_500_Aggr1km_RefSB_Uncert_Indexes"  uint8       (Band_500M, 10*nscans,   |
|                                                     Max_EV_frames)          |
|                                                                             |
|    Description:                                                             |
|      8 bit unsigned integer array containing the uncertainty index values   |
|      corresponding to the aggregated 500m Earth View data stored            |
|      in the "EV_500_Aggr1km_RefSB" SDS. The uncertainty index values are    |
|      calculated from the percent uncertainty in the reflectance product.    |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | long_name                | string |  1  |"Earth View 500M Aggregated |
|      |                          |        |     | 1km Reflective Solar Bands |
|      |                          |        |     | Uncertainty Indexes"       |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | uint8  |  2  | 0, 15                      |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | uint8  |  1  | 255                        |
|      +--------------------------+--------+-----+----------------------------+
|      | specified_uncertainty    | float32|  5  | x.f, x.f, x.f, x.f, x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | scaling_factor           | float32|  5  | x.f, x.f, x.f, x.f, x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | uncertainty_units        | string |  1  | "percent"                  |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+
  Note: "x.f" means the value of the attribute is variable (may change from
        granule to granule). The values of all other attributes are constant.

+=============================================================================+
|  2.6) EV_500_Aggr1km_RefSB_Samples_Used                                     |
|                                                                             |
|  SDS Name                              Data Type   Dimensions               |
+-----------------------------------------------------------------------------+
| "EV_500_Aggr1km_RefSB_Samples_Used"    int8        (Band_500M, 10*nscans,   |
|                                                     Max_EV_frames)          |
|                                                                             |
|    Description:                                                             |
|      8 bit integer array containing the number of samples used in           |
|      the 500m Earth View data to aggregate to 1km resolution (which is      |
|      stored in the "EV_500_Aggr1km_RefSB" SDS).                             |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | long_name                | string |  1  |"Earth View 500M Aggregated |
|      |                          |        |     | 1km Reflective Solar Bands |
|      |                          |        |     | Number of Samples Used in  |
|      |                          |        |     | Aggregation"               |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              |  int8  |  2  | 0, 6                       |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               |  int8  |  1  | -1                         |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  2.7) EV_1KM_RefSB                                                          |
|                                                                             |
|  SDS Name           Data Type    Dimensions                                 |
+-----------------------------------------------------------------------------+
| "EV_1KM_RefSB"      uint16       (Band_1KM_RefSB, 10*nscans, Max_EV_frames) |
|                                                                             |
|    Description:                                                             |
|      16 bit unsigned integer array containing the scaled integer            |
|      representations of the Earth view 1km reflective band corrected        |
|      counts (DN star).                                                      |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | uint16 |  2  | 0, 32767                   |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | uint16 |  1  | 65535                      |
|      +--------------------------+--------+-----+----------------------------+
|      | long_name                | string |  1  |"Earth View 1KM Reflective  |
|      |                          |        |     | Solar Bands Scaled         |
|      |                          |        |     | Integers"                  |
|      +--------------------------+--------+-----+----------------------------+
|      | band_names               | string |  1  | "8, 9, 10, 11, 12, 13lo,   |
|      |                          |        |     |  13hi, 14lo, 14hi, 15, 16, |
|      |                          |        |     |  17, 18, 19, 26"           |
|      +--------------------------+--------+-----+----------------------------+
|      | radiance_scales          | float32| 15  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | radiance_offsets         | float32| 15  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | radiance_units           | string |  1  | "Watts/m^2/micrometer/ster |
|      |                          |        |     |  adian"                    |
|      +--------------------------+--------+-----+----------------------------+
|      | reflectance_scales       | float32| 15  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | reflectance_offsets      | float32| 15  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | reflectance_units        | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | corrected_counts_scales  | float32| 15  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | corrected_counts_offsets | float32| 15  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | corrected_counts_units   | string |  1  | "counts"                   |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+
  Note: "x.f" means the value of the attribute is variable (may change from
        granule to granule). The values of all other attributes are constant.

+=============================================================================+
|  2.8) EV_1KM_RefSB_Uncert_Indexes                                           |
|                                                                             |
|  SDS Name                          Data Type    Dimensions                  |
+-----------------------------------------------------------------------------+
| "EV_1KM_RefSB_Uncert_Indexes"      uint8       (Band_1KM_RefSB, 10*nscans,  |
|                                                              Max_EV_frames) |
|                                                                             |
|    Description:                                                             |
|      8 bit unsigned integer array containing the uncertainty indexes        |
|      corresponding to the corrected counts in the Earth view 1km reflective |
|      band SDS: "EV_1KM_RefSB". The uncertainty index values are             |
|      calculated from the percent uncertainty in the reflectance product.    |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | long_name                | string |  1  |"Earth View 1KM Reflective  |
|      |                          |        |     | Solar Bands Uncertainty    |
|      |                          |        |     | Indexes"                   |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | uint8  |  2  | 0, 15                      |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | uint8  |  1  | 255                        |
|      +--------------------------+--------+-----+----------------------------+
|      | specified_uncertainty    | float32| 15  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | scaling_factor           | float32| 15  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | uncertainty_units        | string |  1  | "percent"                  |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+
  Note: "x.f" means the value of the attribute is variable (may change from
        granule to granule). The values of all other attributes are constant.

+=============================================================================+
|  2.9) EV_1KM_Emissive                                                       |
|                                                                             |
|  SDS Name           Data Type  Dimensions                                   |
+-----------------------------------------------------------------------------+
| "EV_1KM_Emissive"   uint16     (Band_1KM_Emissive, 10*nscans, Max_EV_frames)|
|                                                                             |
|    Description:                                                             |
|      16 bit unsigned integer array containing the scaled integer            |
|      representations of the Earth view 1km emissive band radiances.         |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | uint16 |  2  | 0, 32767                   |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | uint16 |  1  | 65535                      |
|      +--------------------------+--------+-----+----------------------------+
|      | long_name                | string |  1  |"Earth View 1KM Emissive    |
|      |                          |        |     | Bands Scaled Integers"     |
|      +--------------------------+--------+-----+----------------------------+
|      | band_names               | string |  1  | "20, 21, 22, 23, 24, 25,   |
|      |                          |        |     |  27, 28, 29, 30, 31, 32,   |
|      |                          |        |     |  33, 34, 35, 36"           |
|      +--------------------------+--------+-----+----------------------------+
|      | radiance_scales          | float32| 16  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | radiance_offsets         | float32| 16  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | radiance_units           | string |  1  | "Watts/m^2/micrometer/ster |
|      |                          |        |     |  adian"                    |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+
  Note: "x.f" means the value of the attribute is variable (may change from
        granule to granule). The values of all other attributes are constant.

+=============================================================================+
|  2.10) EV_1KM_Emissive_Uncert_Indexes                                       |
|                                                                             |
|  SDS Name                          Data Type    Dimensions                  |
+-----------------------------------------------------------------------------+
| "EV_1KM_Emissive_Uncert_Indexes"   uint8        (Band_1KM_Emissive,         |
|                                                  10*nscans, Max_EV_frames)  |
|                                                                             |
|    Description:                                                             |
|      8 bit unsigned integer array containing the uncertainty indexes        |
|      corresponding to the radiances in the Earth view 1km emissive          |
|      band SDS: "EV_1KM_Emissive".                                           |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | long_name                | string |  1  |"Earth View 1KM Emissive    |
|      |                          |        |     | Bands Uncertainty Indexes" |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "none"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | uint8  |  2  | 0, 15                      |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | uint8  |  1  | 255                        |
|      +--------------------------+--------+-----+----------------------------+
|      | specified_uncertainty    | float32| 16  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | scaling_factor           | float32| 16  | x.f, x.f, x.f, ..., x.f    |
|      +--------------------------+--------+-----+----------------------------+
|      | uncertainty_units        | string |  1  | "percent"                  |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+
  Note: "x.f" means the value of the attribute is variable (may change from
        granule to granule). The values of all other attributes are constant.

  ______
 /\     \ +---------------------------------------------------------------+
/  \     \| +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ |
\   \_____\ |   III)  Band-Subsetting SDSs                              | |
 \  /     / +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ |
  \/_____/+---------------------------------------------------------------+

   Description:
     This section contains the scientific data sets (SDSs) which hold
     the information used to accomplish band subsetting.

   Contents:
     3.1  Band_250M
     3.2  Band_500M
     3.3  Band_1KM_RefSB
     3.4  Band_1KM_Emissive

+=============================================================================+
|  3.1) Band_250M                                                             |
|                                                                             |
|  SDS Name                 Data Type        Dimensions                       |
+-----------------------------------------------------------------------------+
| "Band_250M"                float32         (Band_250M)                      |
|                                                                             |
|    Description:                                                             |
|      float32 array containing the band numbers used for band subsetting.    |
|      The values are:  1.0, 2.0                                              |
|                                                                             |
|    SDS Attributes:                                                          |
|      +-----------------+---------+-----+------------------------------------+
|      | Attribute Name  | Type    |Count| Attribute Value                    |
|      +-----------------+---------+-----+------------------------------------+
|      | long_name       | string  |  1  | "250M Band Numbers for Subsetting" |
|      +-----------------+---------+-----+------------------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  3.2) Band_500M                                                             |
|                                                                             |
|  SDS Name                 Data Type        Dimensions                       |
+-----------------------------------------------------------------------------+
| "Band_500M"                float32         (Band_500M)                      |
|                                                                             |
|    Description:                                                             |
|      float32 array containing the band numbers used for band subsetting.    |
|      The values are:  3.0, 4.0, 5.0, 6.0, 7.0                               |
|                                                                             |
|    SDS Attributes:                                                          |
|      +-----------------+---------+-----+------------------------------------+
|      | Attribute Name  | Type    |Count| Attribute Value                    |
|      +-----------------+---------+-----+------------------------------------+
|      | long_name       | string  |  1  | "500M Band Numbers for Subsetting" |
|      +-----------------+---------+-----+------------------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  3.3) Band_1KM_RefSB                                                        |
|                                                                             |
|  SDS Name                 Data Type        Dimensions                       |
+-----------------------------------------------------------------------------+
| "Band_1KM_RefSB"           float32         (Band_1KM_RefSB)                 |
|                                                                             |
|    Description:                                                             |
|      float32 array containing the band numbers used for band subsetting.    |
|      The values are:  8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 13.5, 14.0, 14.5,   |
|                       15.0, 16.0, 17.0, 18.0, 19.0, 26.0                    |
|                                                                             |
|    SDS Attributes:                                                          |
|      +-----------------+---------+-----+------------------------------------+
|      | Attribute Name  | Type    |Count| Attribute Value                    |
|      +-----------------+---------+-----+------------------------------------+
|      | long_name       | string  |  1  | "1KM Reflective Solar Band         |
|      |                 |         |     |  Numbers for Subsetting"           |
|      +-----------------+---------+-----+------------------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  3.4) Band_1KM_Emissive                                                     |
|                                                                             |
|  SDS Name                 Data Type        Dimensions                       |
+-----------------------------------------------------------------------------+
| "Band_1KM_Emissive"        float32         (Band_1KM_Emissive)              |
|                                                                             |
|    Description:                                                             |
|      float32 array containing the band numbers used for band subsetting.    |
|      The values are:  20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 27.0, 28.0,       |
|                       29.0, 30.0, 31.0, 32.0, 33.0, 34.0, 35.0, 36.0        |
|                                                                             |
|    SDS Attributes:                                                          |
|      +-----------------+---------+-----+------------------------------------+
|      | Attribute Name  | Type    |Count| Attribute Value                    |
|      +-----------------+---------+-----+------------------------------------+
|      | long_name       | string  |  1  | "1KM Emissive Band                 |
|      |                 |         |     |  Numbers for Subsetting"           |
|      +-----------------+---------+-----+------------------------------------+
|                                                                             |
+=============================================================================+

  ______
 /\     \ +---------------------------------------------------------------+
/  \     \| +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ |
\   \_____\ |  IV)  Geolocation SDSs                                    | |
 \  /     / +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ |
  \/_____/+---------------------------------------------------------------+

   Description:
     This section contains information about the geodetic position
     (latitude, longitude, and height) for the center of each 1 km
     MODIS Earth View observation, as well as sun and satellite
     ("sensor") bearings for each 1 km MODIS Earth View observation.

   Contents:
     4.1) Latitude
     4.2) Longitude
     4.3) Height
     4.4) SensorZenith
     4.5) SensorAzimuth
     4.6) Range
     4.7) SolarZenith
     4.8) SolarAzimuth
     4.9) gflags

+=============================================================================+
|  4.1) Latitude                                                              |
|                                                                             |
|  SDS Name                    Data Type    Dimensions                        |
+-----------------------------------------------------------------------------+
| "Latitude"                   float32      (2*nscans, 1KM_geo_dim)     |
|                                                                             |
|    Description:                                                             |
|      32 bit signed floating point array containing the geodetic latitudes   |
|      for the center of the corresponding 1km Earth view frames.             |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "degrees"                  |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | float32|  2  | -90.0, 90.0                |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | float32|  1  | -999.9                     |
|      +--------------------------+--------+-----+----------------------------+
|      | line_numbers 	          | string |  1  | "1, 2"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | frame_numbers	          | string |  1  | "1, 2, 3,..."              |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  4.2) Longitude                                                             |
|                                                                             |
|  SDS Name                    Data Type    Dimensions                        |
+-----------------------------------------------------------------------------+
| "Longitude"                  float32      (2*nscans, 1KM_geo_dim)     |
|                                                                             |
|    Description:                                                             |
|      32 bit signed floating point array containing the geodetic longitudes  |
|      for the center of the corresponding 1km Earth view frames.             |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "degrees"                  |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | float32|  2  | -180.0, 180.0              |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | float32|  1  | -999.9                     |
|      +--------------------------+--------+-----+----------------------------+
|      | line_numbers 	          | string |  1  | "1, 2"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | frame_numbers	          | string |  1  | "1, 2, 3,..."              |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  4.3) Height                                                                |
|                                                                             |
|  SDS Name                    Data Type    Dimensions                        |
+-----------------------------------------------------------------------------+
| "Height"                     int16        (2*nscans, 1KM_geo_dim)     |
|                                                                             |
|    Description:                                                             |
|      16 bit signed integer array containing the geodetic heights above      |
|      geoid for the center of the corresponding 1km Earth view frames.       |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "meters"                   |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | int16  |  2  | -400, 10000                |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | int16  |  1  | -32767                     |
|      +--------------------------+--------+-----+----------------------------+
|      | line_numbers 	          | string |  1  | "1, 2"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | frame_numbers	          | string |  1  | "1, 2, 3,..."              |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  4.4) SensorZenith                                                          |
|                                                                             |
|  SDS Name                    Data Type    Dimensions                        |
+-----------------------------------------------------------------------------+
| "SensorZenith"               int16        (2*nscans, 1KM_geo_dim)     |
|                                                                             |
|    Description:                                                             |
|      16 bit signed integer array containing the sensor (spacecraft) zenith  |
|      angles for the corresponding 1km Earth view frames.                    |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "degrees"                  |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | int16  |  2  | 0, 18000                   |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | int16  |  1  | -32767                     |
|      +--------------------------+--------+-----+----------------------------+
|      | scale_factor             | float64|  1  | 0.01                       |
|      +--------------------------+--------+-----+----------------------------+
|      | line_numbers 	          | string |  1  | "1, 2"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | frame_numbers	          | string |  1  | "1, 2, 3,..."              |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  4.5) SensorAzimuth                                                         |
|                                                                             |
|  SDS Name                    Data Type    Dimensions                        |
+-----------------------------------------------------------------------------+
| "SensorAzimuth"              int16        (2*nscans, 1KM_geo_dim)     |
|                                                                             |
|    Description:                                                             |
|      16 bit signed integer array containing the sensor (spacecraft)         |
|      azimuth angles for the corresponding 1km Earth view frames.            |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "degrees"                  |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | int16  |  2  | -18000, 18000              |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | int16  |  1  | -32767                     |
|      +--------------------------+--------+-----+----------------------------+
|      | scale_factor             | float64|  1  | 0.01                       |
|      +--------------------------+--------+-----+----------------------------+
|      | line_numbers 	          | string |  1  | "1, 2"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | frame_numbers	          | string |  1  | "1, 2, 3,..."              |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  4.6) Range                                                                 |
|                                                                             |
|  SDS Name                    Data Type    Dimensions                        |
+-----------------------------------------------------------------------------+
|  "Range"                     uint16       (2*nscans, 1KM_geo_dim)     |
|                                                                             |
|    Description:                                                             |
|      16 bit unsigned integer array containing the slant ranges              |
|      (to spacecraft) for the corresponding 1km Earth view frames.           |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "meters"                   |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | uint16 |  2  | 27000, 65535               |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | uint16 |  1  | 0                          |
|      +--------------------------+--------+-----+----------------------------+
|      | scale_factor             | float64|  1  | 25.0                       |
|      +--------------------------+--------+-----+----------------------------+
|      | line_numbers 	          | string |  1  | "1, 2"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | frame_numbers	          | string |  1  | "1, 2, 3,..."              |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  4.7) SolarZenith                                                           |
|                                                                             |
|  SDS Name                    Data Type    Dimensions                        |
+-----------------------------------------------------------------------------+
|  "SolarZenith"               int16        (2*nscans, 1KM_geo_dim)     |
|                                                                             |
|    Description:                                                             |
|      16 bit signed integer array containing the solar zenith                |
|      angles for the corresponding 1km Earth view frames.                    |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "degrees"                  |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | int16  |  2  | 0, 18000                   |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | int16  |  1  | -32767                     |
|      +--------------------------+--------+-----+----------------------------+
|      | scale_factor             | float64|  1  | 0.01                       |
|      +--------------------------+--------+-----+----------------------------+
|      | line_numbers 	          | string |  1  | "1, 2"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | frame_numbers	          | string |  1  | "1, 2, 3,..."              |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  4.8) SolarAzimuth                                                          |
|                                                                             |
|  SDS Name                    Data Type    Dimensions                        |
+-----------------------------------------------------------------------------+
|  "SolarAzimuth"              int16        (2*nscans, 1KM_geo_dim)     |
|                                                                             |
|    Description:                                                             |
|      16 bit signed integer array containing the solar azimuth               |
|      angles for the corresponding 1km Earth view frames.                    |
|                                                                             |
|    SDS Attributes:                                                          |
|      +--------------------------+--------+-----+----------------------------+
|      | Attribute Name           | Type   |Count| Attribute Value            |
|      +--------------------------+--------+-----+----------------------------+
|      | units                    | string |  1  | "degrees"                  |
|      +--------------------------+--------+-----+----------------------------+
|      | valid_range              | int16  |  2  | -18000, 18000              |
|      +--------------------------+--------+-----+----------------------------+
|      | _FillValue               | int16  |  1  | -32767                     |
|      +--------------------------+--------+-----+----------------------------+
|      | scale_factor             | float64|  1  | 0.01                       |
|      +--------------------------+--------+-----+----------------------------+
|      | line_numbers 	          | string |  1  | "1, 2"                     |
|      +--------------------------+--------+-----+----------------------------+
|      | frame_numbers	          | string |  1  | "1, 2, 3,..."              |
|      +--------------------------+--------+-----+----------------------------+
|                                                                             |
+=============================================================================+

+=============================================================================+
|  4.9) gflags                                                                |
|                                                                             |
|  SDS Name                    Data Type    Dimensions                        |
+-----------------------------------------------------------------------------+
|  "gflags"                    uint8        (2*nscans, 1KM_geo_dim)     |
|                                                                             |
|    Description:                                                             |
|      8 bit unsigned integer array containing the geolocation flag values    |
|      for the corresponding 1km Earth view frames.                           |
|                                                                             |
|    SDS Attributes:                                                          |
|      +---------------+--------+-----+---------------------------------+     |
|      | Attribute Name| Type   |Count| Attribute Value                 |     |
|      +---------------+--------+-----+---------------------------------+     |
|      | _FillValue    | uint8  |  1  | 255                             |     |
|      +---------------+--------+-----+---------------------------------+     |
|      | Bit 7(MSB)    | string |  1  | "1 = invalid input data"        |     |
|      +---------------+--------+-----+---------------------------------+     |
|      | Bit 6         | string |  1  | "1 = no ellipsoid intersection" |     |
|      +---------------+--------+-----+---------------------------------+     |
|      | Bit 5         | string |  1  | "1 = no valid terrain data"     |     |
|      +---------------+--------+-----+---------------------------------+     |
|      | Bit 4         | string |  1  | "1 = DEM missing or of inferior |     |
|      |               |        |     |  quality"                       |     |
|      +---------------+--------+-----+---------------------------------+     |
|      | Bit 3         | string |  1  | "1 = invalid sensor range"      |     |
|      +---------------+--------+-----+---------------------------------+     |
|                                                                             |
+=============================================================================+