<div dir="ltr"><div><div><div>Not quite sure what was sent: <br><br><div>As noted within the original HDF-EOS file<br></div><br>filename:       MYDAODHD.A2017305.0000.061.NRT<br>path:   MYDAODHD.A2017305.0000.061.<wbr>NRT.hdf<br>   file global attributes:<br>      HDFEOSVersion : <b>HDFEOS_</b>V2.19<br>      StructMetadata_0 : GROUP=<b>SwathStructure   <====<br><br></b>=====<br><br></div>There are numerous examples of swath data being plotted on NCL's Applications page:<br><br>   <a href="http://www.ncl.ucar.edu/Applications/HDF.shtml">http://www.ncl.ucar.edu/Applications/HDF.shtml</a><br><br></div>The attached is a variation on one of the examples.<br><br>=====<br></div><div>I strongly sugest that you always carefully look at your data. I used one function which I have always found useful for looking at a variables. Satellite swath data can have outliers so knowledge of the distribution os data is important.<br></div><div><br></div>Good Luck<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 15, 2017 at 11:58 AM, Debasish Hazra <span dir="ltr"><<a href="mailto:debasish.hazra5@gmail.com" target="_blank">debasish.hazra5@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"><div>Thanks Mary. I am able to use the example to plot the variable.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Debasish</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 15, 2017 at 12:06 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</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">Hi Debasish,<div>See the first station data example here:</div><div><a href="http://www.ncl.ucar.edu/Applications/station.shtml" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/station.shtml</a><br></div><div>Hope that helps!</div><div>Adam</div></div><div class="gmail_extra"><div><div class="m_-1670370265693622887h5"><br><div class="gmail_quote">On Wed, Nov 15, 2017 at 8:33 AM, Debasish Hazra <span dir="ltr"><<a href="mailto:debasish.hazra5@gmail.com" target="_blank">debasish.hazra5@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>Thanks Mary, adding "he2" suffix at the end helped. I have another quaetion  to ask on this, how to assign 1 dimesnional lat and lon to the variable field ? So far, I have :</div><div><br></div><div>            oc_aod1 = w->Aerosol_Optical_Depth_Ocean<wbr>_Aqua_AOD<br>            </div><div>            lat1 = w->Latitude_Ocean_Aqua_AOD<br>            lon1 = w->Longitude_Ocean_Aqua_AOD</div><div><br></div><div>PrintVarSummary of them :</div><div><br></div><div>Variable: oc_aod1<br>Type: float<br>Total Size: 15116 bytes<br>            3779 values<br>Number of Dimensions: 1<br>Dimensions and sizes:   [Nobs_Ocean_Aqua_AOD | 3779]<br>Coordinates:<br>Number Of Attributes: 2<br>  _FillValue :  -999<br>  hdfeos_name : Aerosol_Optical_Depth</div><div>Variable: lat1<br>Type: float<br>Total Size: 15116 bytes<br>            3779 values<br>Number of Dimensions: 1<br>Dimensions and sizes:   [Nobs_Ocean_Aqua_AOD | 3779]<br>Coordinates:<br>Number Of Attributes: 4<br>  _FillValue :  -999<br>  hdfeos_name : Latitude<br>  units :       degrees_north<br>  long_name :   latitude</div><div>Variable: lon1<br>Type: float<br>Total Size: 15116 bytes<br>            3779 values<br>Number of Dimensions: 1<br>Dimensions and sizes:   [Nobs_Ocean_Aqua_AOD | 3779]<br>Coordinates:<br>Number Of Attributes: 4<br>  _FillValue :  -999<br>  hdfeos_name : Longitude<br>  units :       degrees_east<br>  long_name :   longitude</div><div><br></div><div>Variable has one dimension, how do I make lat/lon grid for visualization ?</div><div><br></div><div>Thanks.</div><div>Debasish</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 14, 2017 at 5:57 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">Hi Debasish,<br><br>This is an HDF-EOS2 file, which you can see if you do an ncl_filedump on the file and look at the top part of the output:<br><br><font face="monospace, monospace">Variable: f<br>Type: file<br>filename:       MYDAODHD.A2017305.0000.061.NRT<br>path:   MYDAODHD.A2017305.0000.061.NRT<wbr>.hdf<br>   file global attributes:<br>      HDFEOSVersion : HDFEOS_V2.19</font><br><br>Try adding ".he2" to the end of the filename in your script. This will tell NCL to try opening the file as an HDF-EOS2 file:<br><br><font face="monospace, monospace"> diri = "./November2017/1/"<br> fili = "<a href="http://MYDAODHD.A2017305.0000.061.NR" target="_blank">MYDAODHD.A2017305.0000.061.NR</a><wbr>T.hdf.<b>he2</b>"<span><br><div class="gmail_default" style="font-size:small;display:inline">​ ​</div>pthi = diri+fili<br> w = addfile(pthi,"r")</span></font><br><br>It is not necessary to rename the file itself. The "addfile" command will first look for a file called "<a href="http://MYDAODHD.A2017305.0000.061.NR" target="_blank">MYDAODHD.A2017305.0000.061.NR</a><wbr>T.hdf.he2", and if it can't find that, it will look for the file "<a href="http://MYDAODHD.A2017305.0000.061.NR" target="_blank">MYDAODHD.A2017305.0000.061.NR</a><wbr>T.hdf", but will try to open it as an HDF-EOS2 file.<br><br><div>Once you do this, the <div class="gmail_default" style="font-size:small;display:inline">​file will look much more reasonable.</div></div><br>--Mary















</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1670370265693622887m_-3468177110824866880m_2662428844717099838h5">On Tue, Nov 14, 2017 at 2:20 PM, Debasish Hazra <span dir="ltr"><<a href="mailto:debasish.hazra5@gmail.com" target="_blank">debasish.hazra5@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div class="m_-1670370265693622887m_-3468177110824866880m_2662428844717099838h5"><div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to read attached HDF5 file using ncl v6.4 but not able to extract data attributes from "Group". </div><div><br></div><div> diri = "./November2017/1/"<br>     fili = "<a href="http://MYDAODHD.A2017305.0000.061.NR" target="_blank">MYDAODHD.A2017305.0000.061.NR</a><wbr>T.hdf"</div><div><br></div><div>            pthi = diri+fili<br>            w = addfile(pthi,"r")<br>            mod1 = "Aerosol_Optical_Depth"<br>            Latitude = "Latitude"<br>            Longitude = "Longitude"</div><div>            print(mod1)</div><div>             gp = w->GeoField</div><div><br></div><div>Variable: mod1<br>Type: string<br>Total Size: 8 bytes<br>            1 values<br>Number of Dimensions: 1<br>Dimensions and sizes:   [1]<br>Coordinates:<br>(0)     Aerosol_Optical_Depth<br>fatal:["Execute.c":6397]:varia<wbr>ble (GeoField) is not in file (w)</div><div><br></div><div>Not sure how to proceed with that. Any help is appreciated.</div><span class="m_-1670370265693622887m_-3468177110824866880m_2662428844717099838m_-7446752452340685589HOEnZb"><font color="#888888"><div><br></div><div>Debasish</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
<br>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="m_-1670370265693622887HOEnZb"><font color="#888888">-- <br><div class="m_-1670370265693622887m_-3468177110824866880gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphill<wbr>i/</a>   </font></span><span><font color="#888888"><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br></div>
</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>