Print all MODIS C5 MYD06 SDS names and attributes in python 2.7

Published: 03 février 2017

DMCA.com Protection Status

Outputs of a code (see bottom of the page) written in python 2.7 to print all MODIS C5 MYD06 SDS names and attributes. All SDS infos:

Id Name Nb_Dim Dim Type Nb_attributes
0 Latitude 2 [408, 270] 5 10
1 Longitude 2 [408, 270] 5 10
2 Scan_Start_Time 2 [408, 270] 6 10
3 Solar_Zenith 2 [408, 270] 22 10
4 Solar_Azimuth 2 [408, 270] 22 10
5 Sensor_Zenith 2 [408, 270] 22 10
6 Sensor_Azimuth 2 [408, 270] 22 10
7 Brightness_Temperature 3 [7, 408, 270] 22 10
8 Surface_Temperature 2 [408, 270] 22 10
9 Surface_Pressure 2 [408, 270] 22 10
10 Processing_Flag 2 [408, 270] 20 10
11 Cloud_Height_Method 2 [408, 270] 20 10
12 Cloud_Top_Pressure 2 [408, 270] 22 10
13 Cloud_Top_Pressure_Night 2 [408, 270] 22 10
14 Cloud_Top_Pressure_Day 2 [408, 270] 22 10
15 Cloud_Top_Temperature 2 [408, 270] 22 10
16 Cloud_Top_Temperature_Night 2 [408, 270] 22 10
17 Cloud_Top_Temperature_Day 2 [408, 270] 22 10
18 Tropopause_Height 2 [408, 270] 22 10
19 Cloud_Fraction 2 [408, 270] 20 10
20 Cloud_Fraction_Night 2 [408, 270] 20 10
21 Cloud_Fraction_Day 2 [408, 270] 20 10
22 Cloud_Effective_Emissivity 2 [408, 270] 20 10
23 Cloud_Effective_Emissivity_Night 2 [408, 270] 20 10
24 Cloud_Effective_Emissivity_Day 2 [408, 270] 20 10
25 Cloud_Top_Pressure_Infrared 2 [408, 270] 22 10
26 Spectral_Cloud_Forcing 3 [5, 408, 270] 22 10
27 Cloud_Top_Pressure_From_Ratios 3 [5, 408, 270] 22 10
28 Surface_Type 2 [408, 270] 22 10
29 Radiance_Variance 3 [7, 408, 270] 22 10
30 Brightness_Temperature_Difference 3 [2, 408, 270] 22 10
31 Cloud_Phase_Infrared 2 [408, 270] 20 10
32 Cloud_Phase_Infrared_Night 2 [408, 270] 20 10
33 Cloud_Phase_Infrared_Day 2 [408, 270] 20 10
34 Cloud_Effective_Radius 2 [2040, 1354] 22 10
35 Cloud_Optical_Thickness 2 [2040, 1354] 22 10
36 Cloud_Effective_Radius_1621 2 [2040, 1354] 22 10
37 Cloud_Optical_Thickness_1621 2 [2040, 1354] 22 10
38 Effective_Radius_Difference 3 [2, 2040, 1354] 22 10
39 Cloud_Water_Path 2 [2040, 1354] 22 10
40 Cloud_Water_Path_1621 2 [2040, 1354] 22 10
41 Cloud_Effective_Radius_Uncertainty 2 [2040, 1354] 22 10
42 Cloud_Optical_Thickness_Uncertainty 2 [2040, 1354] 22 10
43 Cloud_Water_Path_Uncertainty 2 [2040, 1354] 22 10
44 Cloud_Effective_Radius_Uncertainty_1621 2 [2040, 1354] 22 10
45 Cloud_Optical_Thickness_Uncertainty_1621 2 [2040, 1354] 22 10
46 Cloud_Water_Path_Uncertainty_1621 2 [2040, 1354] 22 10
47 Cloud_Phase_Optical_Properties 2 [2040, 1354] 22 10
48 Cloud_Multi_Layer_Flag 2 [2040, 1354] 22 11
49 Cirrus_Reflectance 2 [2040, 1354] 22 10
50 Cirrus_Reflectance_Flag 2 [2040, 1354] 20 11
51 Cloud_Mask_5km 2 [408, 270] 20 11
52 Quality_Assurance_5km 3 [408, 270, 10] 20 11
53 Cloud_Mask_1km 3 [2040, 1354, 2] 20 11
54 Quality_Assurance_1km 3 [2040, 1354, 5] 20 11

All SDS Attributes:

Latitude

_FillValue 999.0
scale_factor 1.0
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Geodetic Latitude
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type MODIS Input
units degrees_north
valid_range [90.0, 90.0]

Longitude

_FillValue 999.0
scale_factor 1.0
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Geodetic Longitude
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type MODIS Input
units degrees_east
valid_range [180.0, 180.0]

Scan_Start_Time

_FillValue 999.900024414
scale_factor 1.0
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Geolocation data not applicable
add_offset 0.0
long_name TAI time at start of scan replicated across the swath
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type MODIS Input
units seconds since 199311 00:00:00.0 0
valid_range [0.0, 3155800064.0]

Solar_Zenith

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Solar Zenith Angle, Cell to Sun
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type MODIS Input
units degrees
valid_range [0, 18000]

Solar_Azimuth

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Solar Azimuth Angle, Cell to Sun
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type MODIS Input
units degrees
valid_range [18000, 18000]

Sensor_Zenith

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Sensor Zenith Angle, Cell to Sensor
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type MODIS Input
units degrees
valid_range [0, 18000]

Sensor_Azimuth

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Sensor Azimuth Angle, Cell to Sensor
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type MODIS Input
units degrees
valid_range [18000, 18000]

Brightness_Temperature

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 15000.0
long_name Brightness Temperature
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type MODIS Input
units K
valid_range [0, 20000]

Surface_Temperature

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 15000.0
long_name Surface Temperature
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Non MODIS Input
units K
valid_range [0, 20000]

Surface_Pressure

_FillValue 32768
scale_factor 0.10000000149
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Surface Pressure
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Non MODIS Input
units hPa
valid_range [8000, 11000]

Processing_Flag

_FillValue 127
scale_factor 1.0
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Retrieval Method Flag
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 3]

Cloud_Height_Method

_FillValue 127
scale_factor 1.0
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Height Method
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [1, 6]

Cloud_Top_Pressure

_FillValue 32768
scale_factor 0.10000000149
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Top Pressure
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units hPa
valid_range [10, 11000]

Cloud_Top_Pressure_Night

_FillValue 32768
scale_factor 0.10000000149
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Top Pressure Night
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units hPa
valid_range [10, 11000]

Cloud_Top_Pressure_Day

_FillValue 32768
scale_factor 0.10000000149
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Top Pressure Day
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units hPa
valid_range [10, 11000]

Cloud_Top_Temperature

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 15000.0
long_name Cloud Top Temperature
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units K
valid_range [0, 20000]

Cloud_Top_Temperature_Night

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 15000.0
long_name Cloud Top Temperature Night
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units K
valid_range [0, 20000]

Cloud_Top_Temperature_Day

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 15000.0
long_name Cloud Top Temperature Day
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units K
valid_range [0, 20000]

Tropopause_Height

_FillValue 32768
scale_factor 0.10000000149
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Tropopause Height
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units hPa
valid_range [10, 11000]

Cloud_Fraction

_FillValue 127
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Fraction
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 100]

Cloud_Fraction_Night

_FillValue 127
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Fraction Night
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 100]

Cloud_Fraction_Day

_FillValue 127
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Fraction Day
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 100]

Cloud_Effective_Emissivity

_FillValue 127
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Effective Emissivity
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 100]

Cloud_Effective_Emissivity_Night

_FillValue 127
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Effective Emissivity Night
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 100]

Cloud_Effective_Emissivity_Day

_FillValue 127
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Effective Emissivity Day
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 100]

Cloud_Top_Pressure_Infrared

_FillValue 32768
scale_factor 0.10000000149
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Top Pressure from IR Window
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units hPa
valid_range [10, 11000]

Spectral_Cloud_Forcing

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Spectral Cloud Forcing
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units Watts/meter2/steradian/micron
valid_range [2000, 2000]

Cloud_Top_Pressure_From_Ratios

_FillValue 32768
scale_factor 0.10000000149
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Top Pressure from Ratios (36/35, 35/34, 35/33, 34/33, 33/31)
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units hPa
valid_range [10, 11000]

Surface_Type

_FillValue 32768
scale_factor 1.0
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Surface Type Based on Emissivity
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Non MODIS Input
units none
valid_range [0, 200]

Radiance_Variance

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Radiance Variance
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units Watts/meter2/steradian/micron
valid_range [0, 20]

Brightness_Temperature_Difference

_FillValue 32768
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Brightness Temperature Difference (2931, 3132)
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units K
valid_range [2000, 30000]

Cloud_Phase_Infrared

_FillValue 127
scale_factor 1.0
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Phase Infrared
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 6]

Cloud_Phase_Infrared_Night

_FillValue 127
scale_factor 1.0
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Phase Infrared Night
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 6]

Cloud_Phase_Infrared_Day

_FillValue 127
scale_factor 1.0
Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud Phase Infrared Day
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 6]

Cloud_Effective_Radius

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Particle Effective Radius twochannel retrieval using band 7 and either band 1, 2, or 5 (specified in Quality_Assurance_1km)
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units micron
valid_range [0, 10000]

Cloud_Optical_Thickness

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Optical Thickness twochannel retrieval using band 7 and either band 1, 2, or 5 (specified in Quality_Assurance_1km)
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units none
valid_range [0, 10000]

Cloud_Effective_Radius_1621

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Particle Effective Radius twochannel retrieval using band 7 and band 6
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units micron
valid_range [0, 10000]

Cloud_Optical_Thickness_1621

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Optical Thickness twochannel retrieval using band 7 and band 6
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units none
valid_range [0, 10000]

Effective_Radius_Difference

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Particle Effective Radius twochannel retrieval using band 6 and band 20 differenced from band 7 retrieval and either band 1, 2, or 5 (specified in Quality_Assurance_1km). Plane 1 of SDS is band 6 band 7 retrieval, Plane 2 is band 20 band 7 retrieval.
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units micron
valid_range [10000, 10000]

Cloud_Water_Path

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Column Water Path twoband retrieval using band 7 and either band 1, 2, or 5 (specified in Quality_Assurance_1km)
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units g/m^2
valid_range [0, 10000]

Cloud_Water_Path_1621

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Column Water Path twoband retrieval using band 7 and band 6
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units g/m^2
valid_range [0, 10000]

Cloud_Effective_Radius_Uncertainty

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Effective Particle Radius Relative Uncertainty (Percent)
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units percent
valid_range [0, 20000]

Cloud_Optical_Thickness_Uncertainty

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Optical Thickness Relative Uncertainty (Percent)
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units percent
valid_range [0, 20000]

Cloud_Water_Path_Uncertainty

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Water Path Relative Uncertainty (Percent)
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units percent
valid_range [0, 20000]

Cloud_Effective_Radius_Uncertainty_1621

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Effective Particle Radius Relative Uncertainty (Percent) using band 7 and band 6
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units percent
valid_range [0, 20000]

Cloud_Optical_Thickness_Uncertainty_1621

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Optical Thickness Relative Uncertainty (Percent) using band 7 and band 6
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units percent
valid_range [0, 20000]

Cloud_Water_Path_Uncertainty_1621

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Water Path Relative Uncertainty (Percent) using band 7 and band 6
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units percent
valid_range [0, 20000]

Cloud_Phase_Optical_Properties

_FillValue 0
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Phase Determination Used in Optical Thickness/Effective Radius Retrieval
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units none
valid_range [0, 4]

Cloud_Multi_Layer_Flag

_FillValue 0
scale_factor 1.0
description

Flag for multilayer multiphase cloud situations. Values 2 through 8
indicate the success of various multilayer cloud tests. Value of 0
indicates no retrieval, value of 1 indicates single layer cloud. The
other values are of increasing confidence level. The value of 2 is
of absolute lowest confidence and often can be ignored as it is a result
of cloud phase comparison test, which is not always trustworthy.

Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cloud Multi Layer Identification From MODIS Shortwave Observations
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units none
valid_range [0, 9]

Cirrus_Reflectance

_FillValue 9999
scale_factor 0.000199999994948
Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cirrus Reflectance
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units none
valid_range [0, 8000]

Cirrus_Reflectance_Flag

_FillValue 99
scale_factor 1.0
description 0: bad data, 1: noncirrus pixel, 2: cirrus pixel, 3: contrail pixel

Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Cirrus Reflectance Flag
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units none
valid_range [0, 3]

Cloud_Mask_5km

_FillValue 0
scale_factor 1.0
description

Bit fields within each byte are numbered from the left:
7, 6, 5, 4, 3, 2, 1, 0.
The leftmost bit (bit 7) is the most significant bit.
The rightmost bit (bit 0) is the least significant bit.

bit field Description Key

0 Cloud Mask Flag 0 = Not determined
1 = Determined

2, 1 Unobstructed FOV Quality Flag 00 = Cloudy
01 = Uncertain
10 = Probably Clear
11 = Confident Clear
PROCESSING PATH

3 Day or Night Path 0 = Night / 1 = Day
4 Sunglint Path 0 = Yes / 1 = No
5 Snow/Ice Background Path 0 = Yes / 1 = No
7, 6 Land or Water Path 00 = Water
01 = Coastal
10 = Desert
11 = Land

Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name MODIS Cloud Mask, First Byte
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type MODIS Input
units none
valid_range [0, 1]

Quality_Assurance_5km

_FillValue 0
scale_factor 1.0
description See MODIS atmosphere QA plan for details

Cell_Along_Swath_Sampling [3, 2038, 5]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Quality Assurance at 5x5 Resolution
Cell_Across_Swath_Sampling [3, 1348, 5]
Parameter_Type Output
units none
valid_range [0, 1]

Cloud_Mask_1km

_FillValue 0
scale_factor 1.0
description See MODIS atmosphere QA plan for details

Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name MODIS Cloud Mask, L2 MOD06 QA Plan
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type MODIS Input
units none
valid_range [0, 1]

Quality_Assurance_1km

_FillValue 0
scale_factor 1.0
description

Quality Assurance 1km reports on Cloud Optical Properties
algorithm performance. Refer to MOD_PR06OD User Documentation and the
MODIS atmosphere QA plan for complete descriptions and coding examples.

Bit fields within each byte are numbered from the left:
7, 6, 5, 4, 3, 2, 1, 0.
The leftmost bit (bit 7) is the most significant bit.
The rightmost bit (bit 0) is the least significant bit.

Byte 0

bit field Description Key

Byte 0
0 Optical Thickness General QA 0 = Not Useful
1 = Useful
2,1 Optical Thickness Confidence QA 00 = No confidence
01 = Marginal
10 = Good
11 = Very Good
4,3 Optical Thickness outofbounds 00 = OT < 100
01 = 100 < OT < 150
10 = OT > 150
11 = Albedo too high
5 Effective Radius General QA 0 = Not Useful
1 = Useful
7,6 Effective Radius Confidence QA 00 = No confidence
01 = Marginal
10 = Good
11 = Very Good
Byte 1
0 Liquid Water Path General QA 0 = Not Useful
1 = Useful
2,1 Liquid Water Path Confidence QA 00 = No confidence
01 = Marginal
10 = Good
11 = Very Good
5,4,3 1621 Retrieval processing path 000 = No Cloud Mask
001 = No Cloud
010 = Water Cloud
011 = Ice Cloud
100 = Unknown Cloud
6 1621 Retrieval Outcome 0 = Failed/No attempt
1 = Successful
Byte 2
2,1,0 Primary retrieval processing path 000 = No Cloud Mask
001 = No Cloud
010 = Water Cloud
011 = Ice Cloud
100 = Unknown Cloud
3 Retrieval Outcome 0 = Failed/No attempt
1 = Successful
4 Rayleigh Correction 0 = No Correction
1 = Correction
5 Water Vapor Correction 0 = No Correction
1 = Correction
7,6 Band Used for Optical Thickness Retrieval
00 = No attempt
01 = .645 micron
10 = .858 micron
11 = 1.24 micron
Byte 3
0 Optical Thickness 1621 General QA 0 = Not Useful
1 = Useful
2,1 Optical Thickness 1621 Condifence QA
00 = No confidence
01 = Marginal
10 = Good
11 = Very Good
3 Effective Radius 1621 General QA 0 = Not Useful
1 = Useful
5,4 Effective Radius 1621 Confidence QA
00 = No confidence
01 = Marginal
10 = Good
11 = Very Good
6,7 Clear Sky Restoral Type QA
00 = Not Restored
01 = Restored Via Edge detection
10 = Restored Via Spatial Variance
11 = Restored Via 250m Tests
Byte 4
0 Water Path 1621 General QA 0 = Not Useful
1 = Useful
2,1 Water Path 1621 Confidence QA 00 = No confidence
01 = Marginal
10 = Good
11 = Very Good
5,4,3 Multi Layer Cloud Flag 000 = Cloud Mask Undet
001 = Decision tree stop
010 = single layer: water
011 = multi layer: water
100 = single layer: ice
101 = multi layer: ice
110 = single layer: unknown
111 = multi layer: unknown

Cell_Along_Swath_Sampling [1, 2040, 1]
Geolocation_Pointer External MODIS geolocation product
add_offset 0.0
long_name Quality Assurance at 1x1 Resolution
Cell_Across_Swath_Sampling [1, 1354, 1]
Parameter_Type Output
units none
valid_range [0, 1]

Source Code:

#!/usr/bin/env python

from pyhdf.SD import SD, SDC

import pprint

file_name = 'MYD06_L2.A2008001.2040.051.2009106130050.hdf'

file = SD(file_name, SDC.READ)

    file_info = file.info()
print file_info  # number of sds and metadata

#----------------------------------------------------------------------------------------#
# print sds names

datasets_dic = file.datasets()

#for idx,sds in enumerate(datasets_dic.keys()):
#   print idx,sds

sds_dic = {}
for key, value in datasets_dic.iteritems():
    #print key, value, value[3]
    sds_dic[value[3]] = key

pprint.pprint( sds_dic )

#----------------------------------------------------------------------------------------#
# print SDS info

for i in range(file_info[0]):
    sds_obj = file.select(sds_dic[i])
    sds_info = sds_obj.info()
    print i, ' | ', sds_dic[i], \
             ' | ', sds_info[1] , \
             ' | ', sds_info[2] , \
             ' | ', sds_info[3] , \
             ' | ', sds_info[4]

#----------------------------------------------------------------------------------------#
# print SDS Attributes

for i in range(file_info[0]):
    sds_obj = file.select(sds_dic[i])
    sds_attributes = sds_obj.attributes()
    attributes = ''
    for key, value in sds_attributes.iteritems():
        attributes = attributes + key + ' ' + str(value) + '\n'
    print i ,  sds_dic[i]
    print attributes