<div dir="ltr"><pre><a href="https://www.ncl.ucar.edu/Applications/cloudsat.shtml"><b>https://www.ncl.ucar.edu/Applications/cloudsat.shtml</b></a><br><br>Several examples illustrate importing HDF-EOS files. <br>See:  cloudsat_2.ncl, cloudsat_3.ncl<br><br>  diri    = "./"                                ; path to file
  fili    = "2010153190053_21792_CS_2B-CLDCLASS_GRANULE_P_R04_E03.hdf"
  varname = "cloud_scenario_2B_CLDCLASS"
  f       = <b>addfile </b>(diri+fili<b>+".he2"</b>, "r")     ; open file as hdf-eos2</pre></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 3:22 PM Manisha Ganeshan <<a href="mailto:manisha.ganeshan86@gmail.com">manisha.ganeshan86@gmail.com</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">Thanks! I did read the file using ncl_filedump, but didn't think the file type was relevant. <div>Anyway, thanks for resolving my query. I appreciate your help.</div><div><br></div><div>Regards,</div><div>Nisha </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 4:57 PM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@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>This type of question has been asked numerous time on ncl-talk. These <b>CloudSat </b>files are <b>HDF-EOS</b>. The golden rule of data processing is <span style="color:rgb(0,0,255)">"Look at the data!"</span></div><div><br></div><div><br></div><div>%><a href="https://www.ncl.ucar.edu/Document/Tools/ncl_filedump.shtml" target="_blank"><b> ncl_filedump</b></a> 2010024150054_19911_CS_2B-FLXHR-LIDAR_GRANULE_P2_R04_E03.hdf</div><div><br></div><div>Variable: f<br>Type: file<br>filename:       2010024150054_19911_CS_2B-FLXHR-LIDAR_GRANULE_P2_R04_E03<br>path:   2010024150054_19911_CS_2B-FLXHR-LIDAR_GRANULE_P2_R04_E03.hdf<br>   file global attributes:<br>      <b>HDFEOSVersion : HDFEOS_V2.5</b></div><div> ---------</div><div><br></div><div>As noted in previous ncl-talk responses, append .<b>he2  </b><br></div><div><b><br></b></div><div><b>%><a href="https://www.ncl.ucar.edu/Document/Tools/ncl_filedump.shtml" target="_blank"><b> ncl_filedump</b></a> </b>2010024150054_19911_CS_2B-FLXHR-LIDAR_GRANULE_P2_R04_E03.hdf<b>.he2</b></div><div><br></div><div>The .he2 extension tell NCL to use HDFEOS software to provide value-added information.</div><div><br></div><div>The .he2  flattens the file. It makes it look like a standard netCDF file. It appends a name extension for assorted reasons.<br></div><div><br></div><div>%><a href="https://www.ncl.ucar.edu/Document/Tools/ncl_filedump.shtml" target="_blank"><b> ncl_filedump</b></a> 2010024150054_19911_CS_2B-FLXHR-LIDAR_GRANULE_P2_R04_E03.hdf</div><div><br></div><div>The variables will have a 2B_FLXHR_LIDAR appended<br></div><div><br></div><div>f = addfile("2010024150054_19911_CS_2B-FLXHR-LIDAR_GRANULE_P2_R04_E03.hdf<b>.he2"</b>,"r")</div><div><br></div><div>height = f->Height_2B_FLXHR_LIDAR</div><div>lon     = f->Longitude_2B_FLXHR_LIDAR</div><div>FD_NA = f->FD_NA_2B_FLXHR_LIDAR</div><div>FD = FD_2B_FLXHR_LIDAR </div><div><br></div><div><b><br></b></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 12:53 PM Manisha Ganeshan 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">Hello,<div><br></div><div>I'm trying to read the attached hdf file using the addfile function. </div><div>I'm able to read the variables (Height, FD, FD_NC, and so on) directly from the file, but I also need to read the 11 GeoFields and 39 DataFields listed under groups. Any thoughts on how I can read these fields?</div><div><br></div><div>I've tried the following, that doesn't seem to work.</div><div><br></div><div>





<p class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(43,102,201)"><span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-s1" style="font-variant-ligatures:no-common-ligatures">g = f=>GeoField</span></p></div><div><br></div><div>When I type printVarSummary(g), I get the following output indicating that no variables are read.</div><div><br></div><div>





<p class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(43,102,201)"><span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-s1" style="font-variant-ligatures:no-common-ligatures">Variable: g</span></p>
<p class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(43,102,201)"><span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-s1" style="font-variant-ligatures:no-common-ligatures">Type: file</span></p>
<p class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(43,102,201)"><span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-s1" style="font-variant-ligatures:no-common-ligatures">File path:<span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-Apple-tab-span" style="white-space:pre-wrap">   </span>/data10/mganesha/CloudSat/2010024150054_19911_CS_2B-FLXHR-LIDAR_GRANULE_P2_R04_E03.hdf</span></p>
<p class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(43,102,201)"><span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number of global attributes:<span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-Apple-tab-span" style="white-space:pre-wrap"> </span> 2</span></p>
<p class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(43,102,201)"><span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number of dimensions:<span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-Apple-tab-span" style="white-space:pre-wrap">        </span> 7</span></p>
<p class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(43,102,201)"><span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number of variables:<span class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail-Apple-tab-span" style="white-space:pre-wrap"> </span> 0</span></p></div><div><br></div><div>Could you advice on how to proceed?</div><div><br></div><div>Thanks,</div><div>Nisha<div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/12rdpMVRppvIlgb3zSBOmAS0nmi78C83X/view?usp=drive_web" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration-line:none;padding:1px 0px;border:medium none" target="_blank"><img style="vertical-align: bottom; border: medium none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="vertical-align:bottom;text-decoration:none">2010024150054_19911_CS_2B-FLXHR-LIDAR_GRANULE_P...</span></a><img style="opacity: 0.55; float: right; display: none;"></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-926635533197750501gmail-m_-8527696864267780900gmail-m_-6395864704501258401gmail_signature"><div dir="ltr">Dr. Manisha Ganeshan<div>Universities Space Research Association</div><div>Maryland, U.S.A.</div></div></div></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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-926635533197750501gmail_signature"><div dir="ltr">Dr. Manisha Ganeshan<div>Universities Space Research Association</div><div>Maryland, U.S.A.</div></div></div>
</blockquote></div>