Get all MODIS C6 MYD04 SDS names and attributes with python 2.7


Outputs of a code (see bottom of the page) written in python 2.7 to get all MODIS C6 MYD04 SDS names and attributes in python 2.7. All SDS infos (nd: number of dimensions, t: type, na: number of attributes):

Id name nd sds_dimension t na
0 Longitude 2 [203, 135] 5 10
1 Latitude 2 [203, 135] 5 10
2 Scan_Start_Time 2 [203, 135] 6 10
3 Solar_Zenith 2 [203, 135] 22 10
4 Solar_Azimuth 2 [203, 135] 22 10
5 Sensor_Zenith 2 [203, 135] 22 10
6 Sensor_Azimuth 2 [203, 135] 22 10
7 Scattering_Angle 2 [203, 135] 22 10
8 Land_sea_Flag 2 [203, 135] 22 10
9 Aerosol_Cldmask_Land_Ocean 2 [4060, 2708] 22 10
10 Cloud_Pixel_Distance_Land_Ocean 2 [4060, 2708] 22 10
11 Land_Ocean_Quality_Flag 2 [203, 135] 22 10
12 Optical_Depth_Land_And_Ocean 2 [203, 135] 22 10
13 Image_Optical_Depth_Land_And_Ocean 2 [203, 135] 22 10
14 Average_Cloud_Pixel_Distance_Land_Ocean 2 [203, 135] 22 10
15 Aerosol_Type_Land 2 [203, 135] 22 10
16 Fitting_Error_Land 2 [203, 135] 22 10
17 Surface_Reflectance_Land 3 [3, 203, 135] 22 10
18 Corrected_Optical_Depth_Land 3 [3, 203, 135] 22 10
19 Corrected_Optical_Depth_Land_wav2p1 2 [203, 135] 22 10
20 Optical_Depth_Ratio_Small_Land 2 [203, 135] 22 10
21 Number_Pixels_Used_Land 3 [10, 203, 135] 22 10
22 Mean_Reflectance_Land 3 [10, 203, 135] 22 10
23 STD_Reflectance_Land 3 [10, 203, 135] 22 10
24 Mass_Concentration_Land 2 [203, 135] 5 10
25 Aerosol_Cloud_Fraction_Land 2 [203, 135] 22 10
26 Quality_Assurance_Land 3 [203, 135, 6] 20 11
27 Solution_Index_Ocean_Small 3 [2, 203, 135] 22 10
28 Solution_Index_Ocean_Large 3 [2, 203, 135] 22 10
29 Effective_Optical_Depth_Best_Ocean 3 [7, 203, 135] 22 10
30 Effective_Optical_Depth_Average_Ocean 3 [7, 203, 135] 22 10
31 Optical_Depth_Small_Best_Ocean 3 [7, 203, 135] 22 10
32 Optical_Depth_Small_Average_Ocean 3 [7, 203, 135] 22 10
33 Optical_Depth_Large_Best_Ocean 3 [7, 203, 135] 22 10
34 Optical_Depth_Large_Average_Ocean 3 [7, 203, 135] 22 10
35 Mass_Concentration_Ocean 3 [2, 203, 135] 5 10
36 Aerosol_Cloud_Fraction_Ocean 2 [203, 135] 22 10
37 Effective_Radius_Ocean 3 [2, 203, 135] 22 10
38 PSML003_Ocean 3 [2, 203, 135] 5 10
39 Asymmetry_Factor_Best_Ocean 3 [7, 203, 135] 22 10
40 Asymmetry_Factor_Average_Ocean 3 [7, 203, 135] 22 10
41 Backscattering_Ratio_Best_Ocean 3 [7, 203, 135] 22 10
42 Backscattering_Ratio_Average_Ocean 3 [7, 203, 135] 22 10
43 Angstrom_Exponent_1_Ocean 2 [203, 135] 22 10
44 Angstrom_Exponent_2_Ocean 2 [203, 135] 22 10
45 Least_Squares_Error_Ocean 3 [2, 203, 135] 22 10
46 Optical_Depth_Ratio_Small_Ocean_0.55micron 2 [203, 135] 22 10
47 Optical_Depth_by_models_ocean 3 [9, 203, 135] 22 10
48 Number_Pixels_Used_Ocean 3 [10, 203, 135] 22 10
49 Mean_Reflectance_Ocean 3 [10, 203, 135] 22 10
50 STD_Reflectance_Ocean 3 [10, 203, 135] 22 10
51 Quality_Assurance_Ocean 3 [203, 135, 5] 20 11
52 Deep_Blue_Aerosol_Optical_Depth_550_Land 2 [203, 135] 22 10
53 Deep_Blue_Spectral_Aerosol_Optical_Depth_Land 3 [3, 203, 135] 22 10
54 Deep_Blue_Angstrom_Exponent_Land 2 [203, 135] 22 10
55 Deep_Blue_Spectral_Single_Scattering_Albedo_Land 3 [3, 203, 135] 22 10
56 Deep_Blue_Spectral_Surface_Reflectance_Land 3 [3, 203, 135] 22 10
57 Deep_Blue_Spectral_TOA_Reflectance_Land 3 [3, 203, 135] 22 10
58 Deep_Blue_Number_Pixels_Used_550_Land 2 [203, 135] 22 10
59 Deep_Blue_Aerosol_Optical_Depth_550_Land_STD 2 [203, 135] 22 10
60 Deep_Blue_Cloud_Fraction_Land 2 [203, 135] 22 10
61 Deep_Blue_Aerosol_Optical_Depth_550_Land_QA_Flag 2 [203, 135] 22 10
62 Deep_Blue_Algorithm_Flag_Land 2 [203, 135] 22 10
63 Deep_Blue_Aerosol_Optical_Depth_550_Land_Best_Estimate 2 [203, 135] 22 10
64 Deep_Blue_Aerosol_Optical_Depth_550_Land_Estimated_Uncertainty 2 [203, 135] 22 10
65 AOD_550_Dark_Target_Deep_Blue_Combined 2 [203, 135] 22 10
66 AOD_550_Dark_Target_Deep_Blue_Combined_QA_Flag 2 [203, 135] 22 10
67 AOD_550_Dark_Target_Deep_Blue_Combined_Algorithm_Flag 2 [203, 135] 22 10
68 Glint_Angle 2 [203, 135] 22 10
69 Wind_Speed_Ncep_Ocean 2 [203, 135] 22 10
70 Topographic_Altitude_Land 2 [203, 135] 22 10
71 Effective_Optical_Depth_0p55um_Ocean 2 [203, 135] 22 10

Longitude

_FillValue 999.0
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Geolocation data not applicable
add_offset 0.0
long_name Geodetic Longitude
Cell_Across_Swath_Sampling [1, 1345, 10]
Parameter_Type MODIS Input
units Degrees_east
valid_range [180.0, 180.0]

Latitude

_FillValue 999.0
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Geolocation data not applicable
add_offset 0.0
long_name Geodetic Latitude
Cell_Across_Swath_Sampling [1, 1345, 10]
Parameter_Type MODIS Input
units Degrees_north
valid_range [90.0, 90.0]

Scan_Start_Time

_FillValue 999.0
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name TAI Time at Start of Scan replicated across the swath
Cell_Across_Swath_Sampling [1, 1345, 10]
Parameter_Type MODIS Input
units Seconds since 199311 00:00:00.0 0
valid_range [0.0, 3155800000.0]

Solar_Zenith

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Solar Zenith Angle, Cell to Sun
Cell_Across_Swath_Sampling [1, 1345, 10]
Parameter_Type MODIS Input
units Degrees
valid_range [0, 18000]

Solar_Azimuth

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Solar_Azimuth Angle, Cell to Sun
Cell_Across_Swath_Sampling [1, 1345, 10]
Parameter_Type MODIS Input
units Degrees
valid_range [18000, 18000]

Sensor_Zenith

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Sensor_Zenith Angle, Cell to Sensor
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type MODIS Input
units Degrees
valid_range [0, 18000]

Sensor_Azimuth

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Sensor_Azimuth Angle, Cell to Sensor
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type MODIS Input
units Degrees
valid_range [18000, 18000]

Scattering_Angle

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Scattering Angle
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units Degrees
valid_range [0, 18000]

Land_sea_Flag

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Land_sea_Flag(based on MOD03 Landsea mask 0 = Ocean, 1 = Land and Ephemeral water 2 =Coastal)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1]

Aerosol_Cldmask_Land_Ocean

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 4060, 1]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Aerosol Cloud Mask 500 meter resolution 0= cloud 1= clear
Cell_Across_Swath_Sampling [1, 2700, 1]
Parameter_Type Output
units None
valid_range [0, 1]

Cloud_Pixel_Distance_Land_Ocean

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2030, 1]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Distance (number of pixels) to nearest pixel identified as cloudy (500 m resolution)
Cell_Across_Swath_Sampling [1, 2700, 1]
Parameter_Type Output
units Number of Pixels
valid_range [0, 60]

Land_Ocean_Quality_Flag

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Quality Flag for Land and ocean Aerosol retreivals 0= bad 1 = Marginal 2= Good 3=Very Good)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 3]

Optical_Depth_Land_And_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name AOT at 0.55 micron for both ocean (Average) (Quality flag=1,2,3) and land (corrected) (Quality flag=3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Image_Optical_Depth_Land_And_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name AOT at 0.55 micron for both ocean (Average) and land (corrected) with all quality data (Quality flag=0,1,2,3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Average_Cloud_Pixel_Distance_Land_Ocean

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Average Distance (number of pixels) to nearest pixel identified as cloudy from each clear pixel used for Aerosol Retrieval in 10 km retrieval box
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units Number of pixels
valid_range [0, 60]

Aerosol_Type_Land

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Aerosol Type: 1 = Continental, 2 = Moderate Absorption Fine, 3 = Strong Absorption Fine,4 = Weak Absorption Fine, 5 = Dust Coarse
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 4]

Fitting_Error_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Spectral Fitting error for inversion over land
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1000]

Surface_Reflectance_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Estimated Surface Reflectance at 0.47,0.66 and 2.13micron
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1000]

Corrected_Optical_Depth_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retrieved AOT at 0.47, 0.55,0.66 micron
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Corrected_Optical_Depth_Land_wav2p1

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retrieved AOT at 2.13 micron
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Optical_Depth_Ratio_Small_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Fraction of AOT contributed by fine dominated model
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1000]

Number_Pixels_Used_Land

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Number of pixels used for land retrieval at 0.47,0.55,0.65,0.86,1.24,1.63,2.11 Microns (plus extra bands for NPP: 0.412,0443,0.745 microns)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [1, 400]

Mean_Reflectance_Land

_FillValue 9999
scale_factor 9.99999974738e05
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Mean reflectance of pixels used for land retrieval at 0.47,0.55,0.65,0.86,1.24,1.63,2.11 microns (plus extra bands for NPP: 0.412,0.443,0.745 Micron)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 10000]

STD_Reflectance_Land

_FillValue 9999
scale_factor 9.99999974738e05
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Standard deviation of reflectance of pixels used for land retrieval at 0.47,0.55,0.65,0.86,1.24,1.63,2.11 microns (plus extra bands for NPP: 0.412,0.443,0.745 Micron)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 20000]

Mass_Concentration_Land

_FillValue 999.0
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Estimated Column Mass(per area) using assumed mass extinction efficiency
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units 1.0e6g/cm^2
valid_range [0.0, 1000.0]

Aerosol_Cloud_Fraction_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud fraction from Land aerosol cloud mask from retrieved and overcast pixels not including cirrus mask
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1000]

Quality_Assurance_Land

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

Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Runtime QA flags
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1]

Solution_Index_Ocean_Small

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name index identifying fine mode from Look Up Table for 'best' solution
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [1, 4]

Solution_Index_Ocean_Large

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name index identifying coarse mode from Look Up Table for 'best' solution
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [5, 9]

Effective_Optical_Depth_Best_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retrieved AOT for 'best' solution at 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Effective_Optical_Depth_Average_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retrieved AOT for 'average' solution at 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Optical_Depth_Small_Best_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retreived optical thickness for fine mode (best solution) for 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Optical_Depth_Small_Average_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retreived optical thickness for fine mode (Average solution) for 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Optical_Depth_Large_Best_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retrieved AOT of large mode for 'best' solution at 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Optical_Depth_Large_Average_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retrieved AOT of large mode for 'average' solution at 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Mass_Concentration_Ocean

_FillValue 999.0
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Estimated Column Mass (per area) using assumed mass extinction coefficients for 'best' (1) and 'average' (2) solutions
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units 1.0e6g/cm^2
valid_range [0.0, 1000.0]

Aerosol_Cloud_Fraction_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud fraction from Land aerosol cloud mask from retrieved and overcast pixels not including cirrus mask
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1000]

Effective_Radius_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Effective_Radius at 0.55 micron for 'best' (1) and 'average' (2) solutions
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units micron
valid_range [0, 5000]

PSML003_Ocean

_FillValue 999.0
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Inferred column number concentration (number per area) of particles larger than 0.03 micron for'best' (1) and 'average' (2) solutions
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units Particles/cm^2
valid_range [0.0, 99999997952.0]

Asymmetry_Factor_Best_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Inferred Asymmetry_Factor for 'best' solution at 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 3000]

Asymmetry_Factor_Average_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Inferred Asymmetry_Factor for 'average' solution at 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 3000]

Backscattering_Ratio_Best_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Inferred Backscattering_Ratio for 'best' solution at 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 3000]

Backscattering_Ratio_Average_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Inferred Backscattering_Ratio for 'average' solution at 0.47, 0.55,0.66,0.86,1.24,1.63,2.13 um
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 3000]

Angstrom_Exponent_1_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Calculated Angstrom Exponent for 0.55 vs 0.86 micron for Average Solution
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [1000, 5000]

Angstrom_Exponent_2_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Calculated Angstrom Exponent for 0.86 vs 2.13 micron for Average Solution
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [1000, 5000]

Least_Squares_Error_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Residual of least squares fitting for inversion over land for best (1) and average (2) solutions
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1000]

Optical_Depth_Ratio_Small_Ocean_0.55micron

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Fraction of AOT (at 0.55 micron) contributed by fine mode for average solution
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1000]

Optical_Depth_by_models_ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retrieved AOT (at 0.55 micron) partioned by mode index (for Average solution)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Number_Pixels_Used_Ocean

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Number of pixels used for ocean retrieval at 0.47,0.55,0.65,0.86,1.24,1.63,2.11 Microns(plus extra bands for NPP: 0.412,0443,0.745 microns)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [1, 400]

Mean_Reflectance_Ocean

_FillValue 9999
scale_factor 9.99999974738e05
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Mean reflectance of pixels used for ocean retrieval at 0.47,0.55,0.65,0.86,1.24,1.63,2.11 microns(plus extra bands for NPP: 0.412,0.443,0.745 Micron)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 10000]

STD_Reflectance_Ocean

_FillValue 9999
scale_factor 9.99999974738e05
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Standard deviation of reflectance of pixels used for ocean retrieval at 0.47,0.55,0.65,0.86,1.24,1.63,2.11 microns(plus extra bands for NPP: 0.412,0.443,0.745 Micron)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 20000]

Quality_Assurance_Ocean

_FillValue 0
scale_factor 1.0
description (see MODIS atmosphere QA plan for details)

Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Run time QA flags
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1]

Deep_Blue_Aerosol_Optical_Depth_550_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name AOT at 0.55 micron for land with all quality data (Quality flag=1,2,3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 5000]

Deep_Blue_Spectral_Aerosol_Optical_Depth_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name AOT at 0.412, 0.47, and 0.66 micron for land with all quality data (Quality flag=1,2,3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 5000]

Deep_Blue_Angstrom_Exponent_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Deep Blue Angstrom Exponent for land with all quality data (Quality flag=1,2,3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [500, 5000]

Deep_Blue_Spectral_Single_Scattering_Albedo_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Deep Blue Single Scattering Albedo at 0.412, 0.47, and 0.66 micron for land with all quality data (Quality flag=1,2,3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [700, 1000]

Deep_Blue_Spectral_Surface_Reflectance_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Deep Blue Surface Reflectance at 0.412, 0.47, and 0.66 micron for land with all quality data (Quality flag=1,2,3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1000]

Deep_Blue_Spectral_TOA_Reflectance_Land

_FillValue 9999
scale_factor 9.99999974738e05
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Average measured TOA reflectance after cloud screening at 0.412, 0.47, and 0.66 micron for land
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 10000]

Deep_Blue_Number_Pixels_Used_550_Land

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Number of pixels used for AOT retrieval 0.55 micron for land
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 100]

Deep_Blue_Aerosol_Optical_Depth_550_Land_STD

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Standard deviation of Deep Blue AOT at 0.55 micron for land with all quality data (Quality flag=1,2,3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 10000]

Deep_Blue_Cloud_Fraction_Land

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Cloud fraction from Deep Blue Aerosol cloud mask over land
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 1000]

Deep_Blue_Aerosol_Optical_Depth_550_Land_QA_Flag

_FillValue 0
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Deep Blue Aerosol Confidence Flag (0= No Confidence (or fill), 1= Marginal, 2= Good, 3= Very Good)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 3]

Deep_Blue_Algorithm_Flag_Land

_FillValue 999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Deep Blue Aerosol Algorithm Flag (0=DeepBlue, 1=Vegetated, 2=Mixed)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 2]

Deep_Blue_Aerosol_Optical_Depth_550_Land_Best_Estimate

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Deep Blue AOT at 0.55 micron for land with higher quality data (Quality flag=2,3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 5000]

Deep_Blue_Aerosol_Optical_Depth_550_Land_Estimated_Uncertainty

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Estimated uncertainty (onesigma confidence envelope) of Deep Blue AOT at 0.55 micron for land for all quality data (Quality flag=1,2,3)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 5000]

AOD_550_Dark_Target_Deep_Blue_Combined

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Combined Dark Target, Deep Blue AOT at 0.55 micron for land and ocean.
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

AOD_550_Dark_Target_Deep_Blue_Combined_QA_Flag

_FillValue 9999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Combined Dark Target, Deep Blue Aerosol Confidence Flag (0= No Confidence (or fill), 1= Marginal, 2= Good, 3= Very Good)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 3]

AOD_550_Dark_Target_Deep_Blue_Combined_Algorithm_Flag

_FillValue 999
scale_factor 1.0
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Combined Dark Target, Deep Blue AOT at 0.55 micron Algorithm Flag (0=Dark Target, 1=Deep Blue, 2=Mixed)
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [0, 2]

Glint_Angle

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Glint Angle
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units Degrees
valid_range [0, 18000]

Wind_Speed_Ncep_Ocean

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Wind Speed based on NCEP reanalysis for Ocean
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units Meters/sec
valid_range [0, 8000]

Topographic_Altitude_Land

_FillValue 9999
scale_factor 0.00999999977648
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Averaged topographic altitude (in km) for Land
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units KM
valid_range [0, 1000]

Effective_Optical_Depth_0p55um_Ocean

_FillValue 9999
scale_factor 0.0010000000475
Cell_Along_Swath_Sampling [1, 2021, 10]
Geolocation_Pointer Internal geolocation arrays
add_offset 0.0
long_name Retrieved AOT for 'average' solution at 0.55um For easy L3 processing
Cell_Across_Swath_Sampling [1, 1354, 10]
Parameter_Type Output
units None
valid_range [100, 5000]

Code source:

#!/usr/bin/env python

from pyhdf.SD import SD, SDC

import pprint

file_name = 'MYD04_L2.A2015190.0010.006.2015190191844.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 '#### ',  sds_dic[i]
    print
    print attributes.replace('-', '')
    print