<div dir="ltr"><div><div><div>Your 'summary.txt' contains:<br><br>      double<b> Scan_Start_Time</b> ( Cell_Along_Swath_mod04, Cell_Across_Swath_mod04 )<br>         valid_range :  (    0, 3155800000 )<br>         _FillValue :   -999<br>         long_name :    TAI Time at Start of Scan replicated across the swath<br>         units :        Seconds since 1993-1-1 00:00:00.0 0<br>         scale_factor :    1<br>         add_offset :      0<br>         Parameter_Type :       MODIS Input<br>         Cell_Along_Swath_Sampling :    ( 1, 2021, 10 )<br>         Cell_Across_Swath_Sampling :   ( 1, 1345, 10 )<br>         Geolocation_Pointer :  Internal geolocation arrays<br>         hdf_name :     Scan_Start_Time<br><br></div>This 'time' and it is <b>two-dimensional</b>.<br><br>-----<br><br></div>The 'time' you are trying to create is <b>one-dimensional </b>and is based strictly on a file name.<br><br>----<br></div>Also, the following may be if interest<br><div><br><a href="https://www.ncl.ucar.edu/Applications/HDF.shtml">https://www.ncl.ucar.edu/Applications/HDF.shtml</a><br><a href="https://www.ncl.ucar.edu/Applications/Scripts/hdf4sds_5.ncl">hdf4sds_5.ncl</a><br><br>---<br>These files are HDF-EOS format:  <b>HDFEOSVersion : HDFEOS_V2.19<br><br></b></div><div>For fun, append a <b>.he2</b> file extension:<br><br></div><div>%><b> ncl_filedump </b>MOD04_L2.A2017202.0705.061.2017316182248.hdf<b>.he2</b> | less<br><br></div><div>It makes the file look like a netCDF file dump.<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 8, 2018 at 3:50 AM, Kunal Bali <span dir="ltr"><<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><img class="m_-5175775043905591717mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/d7ea6ad0d2f7b7745108b1789399197715cc945e.png?u=2827700" width="0" height="0"><div></div><div>Dear NCL user,</div><div><br></div><div>I am converting hdf to netcdf using attached ncl script (extracting aerosol product). But it's showing some errors and values are also coming from +01. to -0.1. <br></div><div><div><div dir="ltr" class="m_-5175775043905591717gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Summary of the file is also attached herewith. <br></div><div><br></div><div><br></div><div>the errors/warning are:</div><div><br></div><div>warning:File ./MOD04_L2.A2017209.0710.061.<wbr>2017317003637.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017209.0525.061.<wbr>2017317002757.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017205.0550.061.<wbr>2017316194801.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017200.0355.061.<wbr>2017316192232.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017196.0600.061.<wbr>2017316164649.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017195.0340.061.<wbr>2017316165535.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017192.0625.061.<wbr>2017316024320.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017191.0405.061.<wbr>2017316013818.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017188.0645.061.<wbr>2017316002323.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017187.0610.061.<wbr>2017315234444.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017187.0425.061.<wbr>2017315234452.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017184.0710.061.<wbr>2017315214958.hdf dimension sizes do not conform to others in list; skipping file<br>warning:File ./MOD04_L2.A2017183.0450.061.<wbr>2017315215216.hdf dimension sizes do not conform to others in list; skipping file<br>warning:A valid instance of variable Deep_Blue_Aerosol_Optical_<wbr>Depth_550_Land_mod04 was not found in one or more elements of the file list<br>fatal:Coordinate variables must be the same dimension as their dimension<br>fatal:No coordinate variable exists for dimension (time) in variable (var)<br>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 35 in file script_01.ncl<br><br>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 69 in file script_01.ncl<br><br><br>Variable: od55_1km<br>Type: short<br>Total Size: 6303150 bytes<br>            3151575 values<br>Number of Dimensions: 3<br>Dimensions and sizes:    [time | 115] x [Cell_Along_Swath_mod04 | 203] x [Cell_Across_Swath_mod04 | 135]<br>Coordinates: <br>Number Of Attributes: 12<br>  coordinates :    Latitude_mod04, Longitude_mod04<br>  hdfeos_name :    Deep_Blue_Aerosol_Optical_<wbr>Depth_550_Land<br>  _FillValue :    -9999<br>  Geolocation_Pointer :    Internal geolocation arrays<br>  Cell_Across_Swath_Sampling :    ( 1, 1354, 10 )<br>  Cell_Along_Swath_Sampling :    ( 1, 2021, 10 )<br>  Parameter_Type :    Output<br>  add_offset :       0<br>  scale_factor :    0.001000000047497451<br>  units :    None<br>  long_name :    AOT at 0.55 micron for land  with all quality data (Quality flag=1,2,3)<br>  valid_range :    ( 0, 5000 )<br>fatal:Dimension sizes of left hand side do not match right hand side<br>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 110 in file script_01.ncl<br></div><div><br></div><div><br></div><div><br></div><div>could you please provide some information on this.</div><div><br></div><div>Thank You<br></div><div><br></div><div><br></div><div>---<br></div><div><font size="2"><span>Kunal Bali<br></span></font></div><br><div><b><br></b></div><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>‌<div class="m_-5175775043905591717mt-signature">
        <a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality1&" class="m_-5175775043905591717mt-signature-logo" style="text-decoration:none" target="_blank"> <img src="https://s3.amazonaws.com/mailtrack-signature/sent_with_mailtrack.png" alt="Mailtrack" width="16" height="14"> </a> <font style="color:#777">Sent with <a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality1&" class="m_-5175775043905591717mt-install" target="_blank">Mailtrack</a> </font>
        
    </div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>