<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">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">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="color:rgb(0,0,0);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_-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_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>