<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-family:Arial,Helvetica,sans-serif">Cloud-Sat files are HDF4 using the HDF-EOS [<b>E</b>arth <b>O</b>bserving <b>S</b>ystem] file extension. <br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><span>Specifically:  <b>HDFEOSVersion : HDFEOS_V2.5</b></span><br></span></div><div><b><span style="font-family:Arial,Helvetica,sans-serif"><br></span></b></div><div><span style="font-family:Arial,Helvetica,sans-serif"><b><a href="https://www.loc.gov/preservation/digital/formats/fdd/fdd000297.shtml">https://www.loc.gov/preservation/digital/formats/fdd/fdd000297.shtml</a></b><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><span style="font-family:Arial,Helvetica,sans-serif">It is recommended to use the <b>.he2 </b>file extension for all HDF-EOS files.</span></div><div dir="ltr"><span style="font-family:Arial,Helvetica,sans-serif">Why? ... Because NCL recognizes aspects of HDF-EOS formated files and may add additional 'value-added' information.<br></span></div><div dir="ltr"><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div dir="ltr"><span style="font-family:Arial,Helvetica,sans-serif"><div><span style="font-family:Arial,Helvetica,sans-serif"><span style="color:rgb(0,0,255)">It is <b>*user responsibility* </b>to examine the file for information. </span><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><span>%> <b>ncl_filedump</b>  your_CS_file.hdf<b>.he2</b>   |  less</span><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div>========================================================</span></div><div><span style="font-family:Arial,Helvetica,sans-serif">Cloud-Sat file names start with:</span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">   file_name = "<span style="color:rgb(0,0,255)">YYYY</span><span style="color:rgb(0,0,0)">DDD</span><span style="color:rgb(255,0,0)">HH</span><span style="color:rgb(241,194,50)">MM</span><span style="color:rgb(204,0,0)">SS</span>_<b>NNNNN</b>_CS......."<br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">   YYYY => year</span></div><div><span style="font-family:Arial,Helvetica,sans-serif">   DDD   => day of year</span></div><div><span style="font-family:Arial,Helvetica,sans-serif">   HH      => hour</span></div><div><span style="font-family:Arial,Helvetica,sans-serif">   MM     => minute<br></span></div><div dir="ltr"><div><span style="font-family:Arial,Helvetica,sans-serif">   SS      => second</span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">   NNNNN => Orbit number</span></div><div><span style="font-family:Arial,Helvetica,sans-serif">   CS      => CloudSat</span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">You can use a string function ( <a href="http://www.ncl.ucar.edu/Document/Functions/string.shtml"><b>http://www.ncl.ucar.edu/Document/Functions/string.shtml</b></a> )<br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">to extract YYYY and DDD [eg: <b>str_get_cols</b> ]. Use <b>toint</b> to convert to integer. <br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">Then use a date function <a href="http://www.ncl.ucar.edu/Document/Functions/date.shtml"><b>( http://www.ncl.ucar.edu/Document/Functions/date.shtml</b></a> )<br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/monthday.shtml"><b>http://www.ncl.ucar.edu/Document/Functions/Built-in/monthday.shtml</b></a><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">to get the month and day of the month.</span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">or, a file attribute<br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><b>start_time_2B_GEOPROF</b> : 20100508055615<br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif">                                               yyyymmddhhmnss<br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div>And parse out the desired information.</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><div><br></div><div><br></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 14, 2018 at 10:56 AM, 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"><div dir="ltr"><div dir="ltr">Hi Elham,<div>Before posting to ncl-talk about a function please review the documentation. As noted in the cd_calendar documentation here:</div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/cd_calendar.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Functions/Built-in/<wbr>cd_calendar.shtml</a></div><div><br></div><div>"Must have a "units" attribute string in the format "units since basetime", for example, "days since 1971-1-1" (see examples below)."</div><div><br></div><div>Again, please review the documentation page about the function. If you have any further questions let the ncl-talk email list know.</div><div>Adam</div></div></div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Fri, Sep 14, 2018 at 10:51 AM Elham Ghasemifar <<a href="mailto:elham.ghasemifar@modares.ac.ir" target="_blank">elham.ghasemifar@modares.ac.<wbr>ir</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">




<div dir="ltr">
<div id="m_-8913697511557742319m_135094194345156873divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Dear colleges</p>
<p>can any one help me about <span>cd_calendar, my data is 2b-geoprof (cloudsat) product , i don't know what can i do for plot them:<br>
</span></p>
<p></p>
<div><span style="font-size:8pt"></span><span style="font-size:8pt"></span><b><span style="font-family:Arial,Helvetica,sans-serif"></span></b><span style="font-family:Arial,Helvetica,sans-serif"><br>
</span></div>
<div><span style="font-family:Arial,Helvetica,sans-serif"><br>
</span></div>
<div><span style="font-family:Arial,Helvetica,sans-serif">ncl 27>  alt40   = f->Height_2B_GEOPROF      </span><br>
<span style="font-family:Arial,Helvetica,sans-serif">ncl 28>  kalt    = dimsizes(alt40)</span><br>
<span style="font-family:Arial,Helvetica,sans-serif">ncl 29>  time    = f->Profile_time_2B_GEOPROF</span><br>
<span style="font-family:Arial,Helvetica,sans-serif">ncl 30>  ntime   = dimsizes(time)</span><br>
<span style="font-family:Arial,Helvetica,sans-serif">ncl 31> yyyymm  = cd_calendar(time,-1)</span><br>
<span style="font-family:Arial,Helvetica,sans-serif">fatal:cd_calendar: no 'units' attribute provided</span><br>
<span style="font-family:Arial,Helvetica,sans-serif">fatal:["Execute.c":8638]:<wbr>Execute: Error occurred at or near line 31</span><br>
<br>
</div>
<br>
<p></p>
</div>
</div></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/<wbr>mailman/listinfo/ncl-talk</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-8913697511557742319gmail_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/<wbr>asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </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><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>