<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Yes, thank you! I had asked those questions to confirm I was understanding the documentation correctly :) <div class=""><br class=""></div><div class="">I appreciate your guidance. </div><div class=""><br class=""></div><div class="">Best, </div><div class="">Srishti<br class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 25, 2019, at 12:04 PM, Adam Phillips <<a href="mailto:asphilli@ucar.edu" class="">asphilli@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">Hi Srishti,<div class="">The answer to all of your questions is yes. I would again recommend reading the documentation I pointed you to in my first reply as that details coordinate variables pretty clearly.</div><div class="">Adam</div><div class=""><br class=""></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 12:11 PM Srishti Dasarathy <<a href="mailto:srdasara@ucsd.edu" class="">srdasara@ucsd.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hi Adam,<div class=""><br class=""></div><div class="">Thank you so much for this! </div><div class=""><br class=""></div><div class="">To make sure my understanding is correct, ‘ depol!0 = “ hgt “ ' was used to name the left dimension hgt, and ‘ depol!1 = “ xcoord “ ‘ was used to name the right dimension xcoord. </div><div class=""><br class=""></div><div class="">‘ depol&hgt = hgt ' and ‘ depol&xcoord ' was then used to assign the hgt and xcoord arrays to the above named dimensions, respectively. </div><div class=""><br class=""></div><div class="">I’m a little confused beyond this point. </div><div class=""><br class=""></div><div class="">So, the dimensions of depol are depol(hgt, xcoord)? Does the array of values within depol match the values of hgt and xcoord?</div><div class=""><br class=""></div><div class="">Earlier in the script, there is also a function ‘ hgt!0 = “hgt” ' — was this naming the first (and only) dimension of hgt as hgt? </div><div class=""><br class=""></div><div class="">I look forward to the clarification, and thanks again! </div><div class=""><br class=""></div><div class="">Best wishes,</div><div class="">Srishti</div><div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Apr 25, 2019, at 9:36 AM, Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank" class="">asphilli@ucar.edu</a>> wrote:</div><br class="gmail-m_-956236246271526521Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Srishti,<div class="">That snippet of code is assigning coordinate variables (hgt and xcoord) to each dimension of the depol array. See page 11 of the NCL User's Guide here:</div><div class=""><a href="http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/NCL_User_Guide_v1.1_Legal.pdf" target="_blank" class="">http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/NCL_User_Guide_v1.1_Legal.pdf</a><br class=""></div><div class="">Adam</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 10:30 AM Srishti Dasarathy <<a href="mailto:srdasara@ucsd.edu" target="_blank" class="">srdasara@ucsd.edu</a>> wrote:<br class=""></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" class=""><div dir="ltr" class="">Dear NCL-talk community, <div class=""><br class=""></div><div class="">I have a bit of an unusual question. I'm currently in the midst of transferring my code over to MATLAB for various reasons, but I'm having trouble understanding the syntax of certain sections pasted <a href="https://www.ncl.ucar.edu/Applications/calipso.shtml" target="_blank" class="">here</a> under calipso_3.ncl. I was wondering if you can help me understand what is going on. </div><div class=""><br class=""></div><div class="">I am trying to produce a similar imagine in MATLAB, but do not understand these lines completely even after looking at the documentation. </div><div class=""><br class=""></div><div class="">The lines I'm struggling to understand are below: </div><div class=""><pre style="white-space:pre-wrap" class="">;----------------------------------------------
; ASSIGN NEW DIMENSIONS AND ATTRIBUTES TO COORDINATE CALIPSO DATA WITH ; ALTITUDE
;----------------------------------------------
depol!0 = "hgt"
depol&hgt = hgt
xcoord = ispan(0,dimsizes(lat(:,0)) - 1,1)
depol!1 = "xcoord"
depol&xcoord = xcoord </pre><div class=""><br class=""></div><div class="">I understand that hgt is the array of altitude values, but I do not understand how depolorization is getting associated with either hgt or xcoord. </div><div class=""><br class=""></div><div class="">If anyone has any guidance on understanding this code example so that I can logically transfer the syntax to MATLAB, I'd really appreciate it! </div><div class=""><br class=""></div><div class="">Thank you,</div><div class="">Srishti Dasarathy</div><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail-m_-956236246271526521gmail-m_-2643753034258967077gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Srishti Dasarathy<div class="">Graduate Student</div><div class="">Integrative Oceanography Division</div><div class="">Scripps Institution of Oceanography</div></div></div></div></div></div></div></div>
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail-m_-956236246271526521gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><span class=""><font color="#888888" class="">Adam Phillips <br class=""></font></span></div><span class=""><font color="#888888" class="">Associate Scientist, </font></span><span class=""><font color="#888888" class="">Climate and Global Dynamics Laboratory, NCAR<br class=""></font></span></div></div><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank" class="">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span class=""><font color="#888888" class="">303-497-1726 </font></span></div><span class=""><font color="#888888" class=""></font></span><div class=""><div class=""><span class=""><font color="#888888" class=""><br class=""></font></span><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank" class=""></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></div></div></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><span class=""><font color="#888888" class="">Adam Phillips <br class=""></font></span></div><span class=""><font color="#888888" class="">Associate Scientist, </font></span><span class=""><font color="#888888" class="">Climate and Global Dynamics Laboratory, NCAR<br class=""></font></span></div></div><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank" class="">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span class=""><font color="#888888" class="">303-497-1726 </font></span></div><span class=""><font color="#888888" class=""></font></span><div class=""><div class=""><span class=""><font color="#888888" class=""><br class=""></font></span><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank" class=""></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></div></div></body></html>