[ncl-talk] Reading .h5 file with NCL

Wei Huang huangwei at ucar.edu
Wed Aug 27 13:19:14 MDT 2014


Partha,

Try to read it as HE5 data.
If you still have problem, then send us the dataset.

Thanks,

Wei

================================================
1850 Table Mesa Dr.
Boulder, CO 80307
Phone: 303-497-8924


On Wed, Aug 27, 2014 at 9:49 AM, Partha Bhattacharjee <pbhatta2 at jhu.edu>
wrote:

>  Dear NCL,
>
>
>      I am trying to read. h5 file with ncl 6.2.0 version in Red Hat
> Linux x86_64 system. ncl_filedump reveal the following about the file :
>
>
>
> Variable: f
> Type: file
> filename:
> VAOOO_npp_d20140501_t0000514_e0002156_b12990_c20140501064516522509_noaa_ops
> path:
> VAOOO_npp_d20140501_t0000514_e0002156_b12990_c20140501064516522509_noaa_ops.h5
>    file global attributes:
>       Distributor : arch
>       Mission_Name : NPP
>       N_Dataset_Source : noaa
>       N_GEO_Ref :
> GAERO_npp_d20140501_t0000514_e0002156_b12990_c20140501064516522509_noaa_ops.h5
>       N_HDF_Creation_Date : 20140501
>       N_HDF_Creation_Time : 064516.522509Z
>       Platform_Short_Name : NPP
>    dimensions:
>       DIM_000 = 20
>       DIM_001 = 96
>       DIM_002 = 400
>       DIM_003 = 2
>    variables:
>       group </All_Data>
>
>
>        group </All_Data/VIIRS-Aeros-EDR_All>
>
>
>        float AerosolOpticalDepthFactors ( DIM_003 )
>
>        ushort AerosolOpticalDepth_at_1240nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_1610nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_2250nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_412nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_445nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_488nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_550nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_555nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_672nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_746nm ( DIM_001, DIM_002 )
>
>        ushort AerosolOpticalDepth_at_865nm ( DIM_001, DIM_002 )
>
>        ushort AngstromExponent ( DIM_001, DIM_002 )
>
>        float AngstromExponentFactors ( DIM_003 )
>
>        ubyte QF1_VIIRSAEROEDR ( DIM_001, DIM_002 )
>
>        ubyte QF2_VIIRSAEROEDR ( DIM_001, DIM_002 )
>
>        ubyte QF3_VIIRSAEROEDR ( DIM_001, DIM_002 )
>
>        ubyte QF4_VIIRSAEROEDR ( DIM_001, DIM_002 )
>
>        ubyte QF5_VIIRSAEROEDR ( DIM_001, DIM_002 )
>
>        ubyte SmallModeFraction ( DIM_001, DIM_002 )
>
>        group </Data_Products>
>
>
>        group </Data_Products/VIIRS-Aeros-EDR>
>
>           Instrument_Short_Name :        VIIRS
>          N_Anc_Type_Tasked :    Official
>          N_Collection_Short_Name :      VIIRS-Aeros-EDR
>          N_Dataset_Type_Tag :   EDR
>          N_Instrument_Flight_SW_Version :       20
>          N_Processing_Domain :  ops
>          Operational_Mode :     NPP Normal Operations, VIIRS Operational
>
>        none VIIRS_Aeros_EDR_Aggr ( DIM_000 )
>          AggregateBeginningDate :       20140501
>          AggregateBeginningGranuleID :  NPP000795744508
>          AggregateBeginningOrbitNumber :        12990
>          AggregateBeginningTime :       000051.486918Z
>          AggregateEndingDate :  20140501
>          AggregateEndingGranuleID :     NPP000795744508
>          AggregateEndingOrbitNumber :   12990
>          AggregateEndingTime :  000215.662554Z
>          AggregateNumberGranules :      1
>
>        none VIIRS_Aeros_EDR_Gran_0 ( DIM_000 )
>          Ascending/Descending_Indicator :       <ARRAY of 0 elements>
>          Beginning_Date :       20140501
>          Beginning_Time :       000051.486918Z
>          East_Bounding_Coordinate :     33.245
>          Ending_Date :  20140501
>          Ending_Time :  000215.662554Z
>          G-Ring_Latitude :      ( -36.52, -34.1314, -31.8427, -35.682,
> -37.0385, -39.4876, -42.0644, -40.6345 )
>          G-Ring_Longitude :     ( -2.8678, -1.50608, -0.286205, 15.9487,
> 33.245, 33.0852, 32.9682, 14.3572 )
>          N_Algorithm_Version :  1.O.000.008
>          N_Anc_Filename :
> Terrain-Eco-ANC-Tile_20030125000000Z_ee00000000000000Z_NA_NA_S0470_1.O.0.0
>          N_Aux_Filename :
> VIIRS-AOT-LUT_npp_20020101010000Z_20020101010000Z_ee00000000000000Z_PS-1-D-NPP-3-PE-_devl_dev_all-_all
>          N_Beginning_Orbit_Number :     12990
>          N_Beginning_Time_IET : 1777593686486918
>          N_Creation_Date :      20140501
>          N_Creation_Time :      011922.871045Z
>          N_Day_Night_Flag :     Night
>          N_Ending_Time_IET :    1777593770662554
>          N_Graceful_Degradation :       No
>          N_Granule_ID : NPP000795744508
>          N_Granule_Status :     100% night for day only product
>          N_Granule_Version :    A1
>          N_Input_Prod : 53619fde-b97c9-0a180227-5d84d17e
>          N_LEOA_Flag :  Off
>          N_NPOESS_Document_Ref :
>  474-00001-04-02_JPSS-CDFCB-X-Vol-IV-Part-2_0124B_I1.5.08.03.pdf
>          N_Nadir_Latitude_Max : -35.7285
>          N_Nadir_Latitude_Min : -40.5782
>          N_Nadir_Longitude_Max :        15.9386
>          N_Nadir_Longitude_Min :        14.3732
>          N_Number_Of_Scans :    48
>          N_Percent_Erroneous_Data :      0
>          N_Percent_Missing_Data :        0
>          N_Percent_Not-Applicable_Data :         0
>          N_Quality_Summary_Names :      Aerosol AOT Exclusion Summary
>          N_Quality_Summary_Values :     ( 100, 100, 100, 100, 0, 0 )
>          N_Reference_ID :       5361a11a-d4a65-0a180228-5d868537
>          N_Satellite/Local_Azimuth_Angle_Max :  179.993
>          N_Satellite/Local_Azimuth_Angle_Min :  -179.999
>          N_Satellite/Local_Zenith_Angle_Max :   70.3621
>          N_Satellite/Local_Zenith_Angle_Min :   0.00323079
>           N_Software_Version :   I1.5.08.03
>          N_Solar_Azimuth_Angle_Max :    180
>          N_Solar_Azimuth_Angle_Min :    -180
>          N_Solar_Zenith_Angle_Max :     163.134
>          N_Solar_Zenith_Angle_Min :     140.003
>          N_Spacecraft_Maneuver :        Normal Operations
>          North_Bounding_Coordinate :    -31.8427
>          South_Bounding_Coordinate :    -42.0654
>          West_Bounding_Coordinate :     -2.8678
>
>   My questions are :
>
>       1. How to read variables under the group in .h5 ? I saw one example
> in (http://www.ncl.ucar.edu/Applications/Scripts/hdf5_2.ncl) , but it did
> not work. However, when I did the following :
>  b = f->AerosolOpticalDepth_at_550nm
>
> it shows ,
>  Variable: b
> Type: ushort
> Total Size: 76800 bytes
>             38400 values
> Number of Dimensions: 2
> Dimensions and sizes:   [DIM_001 | 96] x [DIM_002 | 400]
> Coordinates:
> Number Of Attributes: 0​
>
>   Is there any other way, variables under the group can be read ?
>
>  2. how to attach lat-lon along with the variables here.
>
>  If you need the original file, I can send it is less than 1 mb.
>
>   Thanks.
>   Partha
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140827/ae6a0eee/attachment.html 


More information about the ncl-talk mailing list