<div dir="ltr"><div dir="ltr">Hi Srishti,<div>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>Adam</div><div><br></div></div></div><br><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">srdasara@ucsd.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 style="overflow-wrap: break-word;">Hi Adam,<div><br></div><div>Thank you so much for this! </div><div><br></div><div>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><br></div><div>‘ depol&hgt = hgt ' and ‘ depol&xcoord ' was then used to assign the hgt and xcoord arrays to the above named dimensions, respectively. </div><div><br></div><div>I’m a little confused beyond this point. </div><div><br></div><div>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><br></div><div>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><br></div><div>I look forward to the clarification, and thanks again! </div><div><br></div><div>Best wishes,</div><div>Srishti</div><div><div><br><blockquote type="cite"><div>On Apr 25, 2019, at 9:36 AM, Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:</div><br class="gmail-m_-956236246271526521Apple-interchange-newline"><div><div dir="ltr">Hi Srishti,<div>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><a href="http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/NCL_User_Guide_v1.1_Legal.pdf" target="_blank">http://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/NCL_User_Guide_v1.1_Legal.pdf</a><br></div><div>Adam</div></div><br><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">srdasara@ucsd.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 dir="ltr">Dear NCL-talk community, <div><br></div><div>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">here</a> under calipso_3.ncl. I was wondering if you can help me understand what is going on.  </div><div><br></div><div>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><br></div><div>The lines I'm struggling to understand are below: </div><div><pre style="white-space:pre-wrap">;----------------------------------------------
;  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><br></div><div>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><br></div><div>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><br></div><div>Thank you,</div><div>Srishti Dasarathy</div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-956236246271526521gmail-m_-2643753034258967077gmail_signature"><div dir="ltr"><div><div dir="ltr">Srishti Dasarathy<div>Graduate Student</div><div>Integrative Oceanography Division</div><div>Scripps Institution of Oceanography</div></div></div></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><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-956236246271526521gmail_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/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>
</div></blockquote></div><br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="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/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>