<div dir="ltr"><div>I concur with Dennis -- I was able to read both files fine and print values from the variable GBIN. Do you get error messages, or otherwise what do you mean by "...not able to read...".  I would note that support for HDF is optional in NCL, although all official binary distros have support enabled.  However the netCDF file appears to be generic netcdf3 classic, and any version of NCL should be able to read that.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 17, 2019 at 3:21 PM Dennis Shea via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I have no idea why you are having issues.</div><div><br></div><div>  dirhdf = "./"<br>  filhdf = "test.regional.hdf"<br>  pthhdf = dirhdf+filhdf<br>  fhdf   = addfile(pthhdf, "r")<br><br>  gbin_hdf = fhdf->GBIN<br>  printVarSummary(gbin_hdf)<br>  printMinMax(gbin_hdf,0)<br><br>  dirnc  = "./"<br>  filnc  = "<a href="http://test.regional.nc" target="_blank">test.regional.nc</a>"<br>  pthnc  = dirnc+filnc<br>  fnc    = addfile(pthnc, "r")<br>  gbin_nc = fnc->GBIN<br>  printVarSummary(gbin_nc)<br>  printMinMax(gbin_nc,0)<br><br></div><div>====================== OUTPUT==============<br></div><div>Variable: <b>gbin_hdf</b><br>Type: float<br>Total Size: 422500 bytes<br>            105625 values<br>Number of Dimensions: 2<br>Dimensions and sizes:    [lat | 325] x [lon | 325]<br>Coordinates: <br>            lat: [40..46]<br>            lon: [-80..-71]<br>Number Of Attributes: 3<br>  _FillValue :  9.96921e+36<br>  long_name :     BINNED_AVERAGE_Optical_Depth_047_grid1km<br>  hdf_name : GBIN<br>(0)       BINNED_AVERAGE_Optical_Depth_047_grid1km : min=0   max=0.595<br><br>Variable: <b>gbin_nc</b><br>Type: float<br>Total Size: 422500 bytes<br>            105625 values<br>Number of Dimensions: 2<br>Dimensions and sizes:   [lat | 325] x [lon | 325]<br>Coordinates: <br>            lat: [40..46]<br>            lon: [-80..-71]<br>Number Of Attributes: 2<br>  _FillValue :  9.96921e+36<br>  long_name :     BINNED_AVERAGE_Optical_Depth_047_grid1km<br>(0)   BINNED_AVERAGE_Optical_Depth_047_grid1km : min=0   max=0.595<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 17, 2019 at 1:18 PM Herb, Jason via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am attempting a climatology of modis data based on monthly output files. I have montly output netcdf and hdf files from 2002 to 2015. I have tried to single file read (ex the month of Jan 2006 it has only the lat, lon and the monthly averaged aod data "GBIN"
 ) to display that months average data to make sure the file is being read properly. Unfortunately NCL is not able to read either of the hdf or nc files. I have tried to ncl_filedump on the hdf files and outputs the lat and lon when selected but can not find
 the GBIN data, however if I run the ncl_filedump on the nc file I can see the full dataset when selected. Any suggestions as to how i can feed this data in to a script so NCL can understand to process.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Jason<br>
</div>
</div>

_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a></blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a></blockquote></div>