<div dir="ltr"><div>You are  looping over multiple files.and each file has a different lat/lon arrangement?</div><div><br></div><div>SInce you are using:</div><div><br></div><div><span class="gmail-im"><span style="background-color:rgb(255,217,102)">lat = hdf_file->Latitude(1650:1500,0)</span></span></div><div><span class="gmail-im"><span style="background-color:rgb(255,217,102)"><br></span></span></div><div>?? Each file has two-dimensional lat/lon arrays with different values??</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/rcm2points.shtml"><b>rcm2points</b></a>: where the output (target) lat/lon include you desired latitude?</div><div><br></div><div>Maybe others have a clearer idea of what is desired?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 27, 2022 at 3:30 AM Setareh Rahimi <<a href="mailto:setareh.rahimi@gmail.com">setareh.rahimi@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"><div>Dear Dennis,</div><div>Thanks for your email. I mentioned "<span style="background-color:rgb(234,153,153)">exactly</span><span style="background-color:rgb(255,255,255)"><span style="background-color:rgb(234,153,153)"> for latitude between 32 N and  38 N, please</span>", because when I add one of the CALIPSO files, say file number 1, to the script and set the latitude as follows:<br></span></div><div><div><span style="background-color:rgb(255,217,102)">lat = hdf_file->Latitude(1650:1500,0)</span></div><div><span style="background-color:rgb(255,217,102)">profile = fcf(1650:1500,1165:5514)</span></div><div><span style="background-color:rgb(255,217,102)"><br></span></div><div><span style="background-color:rgb(255,255,255)">I gave a plot for, say X to Y. After adding another CALIPSO file, say file number 2, and making no changes to the above command lines I got the plot for another latitude say M-N.</span></div><div><span style="background-color:rgb(255,255,255)">That is why I mentioned "exactly for latitude between 32 N and  38 N, please"</span></div><div><span style="background-color:rgb(255,255,255)"><br></span></div><span style="background-color:rgb(255,255,255)"></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 26, 2022 at 1:32 AM 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>re: "exactly<span style="background-color:rgb(255,255,255)"> for latitude between 32 N and  38 N, please?"</span><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">The words "exactly" and "between" makes this unclear to me.<br></span></div><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">Do you mean "exactly" 36N?  (32N + 36N)/2 = 36N<br></span></div><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">Do you mean all latitudes "between" 32N and 36N?</span></div><div><span style="background-color:rgb(255,255,255)"><br></span></div></div><div>I am not very familiar with CALIPSO data grids.</div><div><br></div><div>You may have to interpolate the data to some standard grid which includes the latitude:</div><div><br></div><div>One dimensional coordinate variable:</div><div><br></div><div>NCL's coordinate subscripting:   {...}<br></div><div>  x = data(<b>{</b>36<b>}</b>,:)   ;  all data at or hear 36N<br></div><div><br></div><div>To find indices (subscripts) corresponding to specific 'targets</div><div><br></div><div>One-dimensional coordinates</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/ind.shtml" target="_blank"><b>ind</b></a></div><div><br></div><div>   il = ind(lat.ge.32 .and. lat.le.36)    ; lat(lat)<br></div><div><br></div><div><div><span style="background-color:rgb(255,255,255)">Two-dimensional coordinates <br></span></div></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/region_ind.shtml" target="_blank"><b>region_ind</b><b><br></b></a></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/region_ind.shtml" target="_blank"><b>getind_latlon2d</b></a></div><div><br></div><div>=============</div><div>THe HDF EOS group has many examples using Matlab, NCL, Python and IDL</div><div><a href="http://hdfeos.org/zoo/" target="_blank"><b>    http://hdfeos.org/zoo/</b></a></div><div>perhaps, one of the NCL examples could help.<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 23, 2022 at 2:12 AM Setareh Rahimi <<a href="mailto:setareh.rahimi@gmail.com" target="_blank">setareh.rahimi@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"><div>Dear Dennis,</div><div>I could find the script I was looking for (<a href="http://hdfeos.org/zoo/MORE/LaRC/CALIPSO/CAL_LID_L2_VFM-Standard-V4-10.2009-07-13T08-27-14ZD.hdf.v.ncl" target="_blank">http://hdfeos.org/zoo/MORE/LaRC/CALIPSO/CAL_LID_L2_VFM-Standard-V4-10.2009-07-13T08-27-14ZD.hdf.v.ncl</a> ) under this page: <a href="http://hdfeos.org/zoo/LaRC_CALIPSO_ncl.php" target="_blank">http://hdfeos.org/zoo/LaRC_CALIPSO_ncl.php</a>.</div><div><br></div><div><span style="background-color:rgb(180,167,214)">I need to plot the following latitude: 32 N - 38 N.</span></div><div><span style="background-color:rgb(180,167,214)"><br></span></div><div><span style="background-color:rgb(180,167,214)"><span style="background-color:rgb(255,255,255)">I should plots CALIPSO data for different months for my study area. However, as CALIPSO overpasses are not the same for a certain area, after setting the below command lines in the script I got plots for another latitude. </span><br></span></div><div><span style="background-color:rgb(180,167,214)"><br></span></div><div><span style="background-color:rgb(255,217,102)">lat = hdf_file->Latitude(1650:1500,0)</span></div><div><span style="background-color:rgb(255,217,102)">profile = fcf(1650:1500,1165:5514)</span></div><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">So how can I have plots exactly for latitude between 32 N and  38 N, please?</span></div><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">Many thanks in advance,</span></div><div><span style="background-color:rgb(255,217,102)"><span style="background-color:rgb(180,167,214)"><span style="background-color:rgb(255,255,255)">Best wishes,</span><br></span></span></div><div><span style="background-color:rgb(180,167,214)"><br></span></div><div><span style="background-color:rgb(180,167,214)"><br></span></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 18, 2022 at 3:42 AM 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>re: "... need to know how to indicate the names of available particles in the atmosphere (like dust, Black carbon,...) using NCL"</div><div>===</div><div>I must admit, I doin't understand "names of available particles"</div><div><br></div><div>D<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 16, 2022 at 11:04 PM Setareh Rahimi <<a href="mailto:setareh.rahimi@gmail.com" target="_blank">setareh.rahimi@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"><div>Dear Dennis,</div><div>Thank you for your advice. I already visited this section of NCL page, but I need to know how to indicate the names of available particles in the atmosphere (like dust, Black carbon,...) using NCL.</div><div>I appreciate any suggestions.</div><div>Best wishes, <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 16, 2022 at 9:44 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>To me, it looks like NCL was used to generate the plot.</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/" target="_blank"><b>https://www.ncl.ucar.edu/Applications/</b></a></div><div><br></div><div>Under Datasets: click<b> Calipso</b></div><div><br></div><div>These types of plots can be 'complicated'  <br></div><div><br></div><div>Maybe you can contact the person/group that created the VFM.png plot <br></div><div><br></div><div><br></div><div> ..... Good Luck<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 16, 2022 at 9:37 AM Setareh Rahimi via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.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><br clear="all"></div><div><font size="2">Dear all NCL users,</font></div><div><font size="2"><br></font></div><div><font size="2">I want to plot a<span style="background-color:rgb(180,167,214)"> Vertical Feature Mask (VFM) diagram using CALIPSO data,</span> like the attached one. But I am not familiar with the type of data. So please advise me in this regard.</font></div><div><font size="2"><br></font></div><div><font size="2">Thank you so much for your attention and participation.</font></div><div><font size="4"><font size="2">Best wishes,</font><br></font></div><div><div><font size="4">-- </font><br><div dir="ltr">S.Rahimi<br><br></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">S.Rahimi<br><br></div>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">S.Rahimi<br><br></div>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">S.Rahimi<br><br></div>
</blockquote></div>