<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.m7900113003584013757gmailmsg
        {mso-style-name:m_7900113003584013757gmail_msg;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">Hi Lara,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">I’m glad it works. NCL is really great to code in and the NCL community is very good and fast at helping you.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">In the future please reply to the NCL group as well so that we all know you got the help you needed.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">Just remember that when you assign A = B, then the metadata of B is transferred to A. If the dimension names
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">are labelled in A and different from B then you will get a warning.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">/M<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#0070C0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#0070C0">Marston S. Johnston, PhD<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#0070C0">Department of Earth Sciences<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#0070C0">University of Gothenburg, Sweden<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#0070C0">Email: <a href="mailto:marston.johnston@gu.se"><span style="color:#0070C0">marston.johnston@gu.se</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#0070C0">SkypeID: marston.johnston <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#0070C0">Phone: +46-31-7864901 <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#0070C0">Only the fruitful thing is true!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#0070C0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">Lara Gunn <lara.n.gunn@gmail.com><br>
<b>Date: </b>Thursday, 1 December 2016 at 14:29<br>
<b>To: </b>Marston Johnston <marston.johnston@gu.se><br>
<b>Subject: </b>Re: [ncl-talk] weird error<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Hi<br>
<br>
Thanks for your answer. You are 100% right. I looked at the variable before I filled it and the time dimension is there. So I'll figure out how to do it properly.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Helps a lot. I had the feeling it would be something simple I just was really struggling to see. it.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Lara<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, 1 Dec 2016 at 10:28, Marston Johnston <<a href="mailto:marston.johnston@gu.se" target="_blank">marston.johnston@gu.se</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">Hi,
</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri"> </span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">It would help to see the entire script. But I think the problem is well stated in the
warning message.</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">I suspect that the warning doesn’t come from the line Temp!0 = “time”. In fact I’m
pretty sure of it.</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">The warning comes later when you try and assign another variable to Temp, like this:
Temp = A.</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">If A doesn’t have a dimension A!0 called “time”, just the same as Temp, then you will
get the warning. But the script will work and your data is not corrupted.</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">Also Temp’s dimensions will be renamed to match A, since you are copying A to Temp
and without (//), then A’s metadata will be also copied to Temp.</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">This is why printVarSummary(Temp) AFTER the assignment of A will not show the name
dimension “time”. It was simply replaced per your request: Temp = A.</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">What NCL then does is as it says: Temp = (/A/), which strips away A’s meta data and
then assign just the data to Temp.</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">So to get rid of the warning, simply give Temp!0 the same name as the variable you
are copying to Temp or simply do as the message says: Temp = (/A/).</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri"> </span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">Hope this helps,</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri">/M</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="color:#0070C0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="color:#0070C0">Marston S. Johnston, PhD</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="color:#0070C0">Department of Earth Sciences</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="color:#0070C0">University of Gothenburg, Sweden</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span lang="SV" style="color:#0070C0">Email: </span><span style="color:#0070C0"><a href="mailto:marston.johnston@gu.se" target="_blank"><span lang="SV" style="color:#0070C0">marston.johnston@gu.se</span></a></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span lang="SV" style="color:#0070C0">SkypeID: marston.johnston </span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="color:#0070C0">Phone:
<a href="tel:+46%2031%20786%2049%2001" target="_blank">+46-31-7864901</a> </span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="color:#0070C0">Only the fruitful thing is true!</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="color:#0070C0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri"> </span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri"> </span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><span style="font-size:11.0pt;font-family:Calibri"> </span></span><o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="m7900113003584013757gmailmsg"><b><span style="font-family:Calibri;color:black">From:
</span></b></span><span class="m7900113003584013757gmailmsg"><span style="font-family:Calibri;color:black"><<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>> on behalf of Lara Gunn <<a href="mailto:lara.n.gunn@gmail.com" target="_blank">lara.n.gunn@gmail.com</a>></span></span><span style="font-family:Calibri;color:black"><br>
<span class="m7900113003584013757gmailmsg"><b>Date: </b>Thursday, 1 December 2016 at 11:00</span><br>
<span class="m7900113003584013757gmailmsg"><b>To: </b><<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></span><br>
<span class="m7900113003584013757gmailmsg"><b>Subject: </b>[ncl-talk] weird error</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I am having an odd error in ncl so thought I'd see if anyone knows what I've done wrong. I am simply writing an array and trying to name the dimensions but for some reason ncl doesn't
want me to name the time dimension.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Here is a snapshot of the code.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US">Error! Filename not specified.</span></b><o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">when I run this I get this error<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">warning:VarVarWrite: lhs has dimension name and rhs doesn't, deleting name of lhs dimension number(0), use "(/../)" if this is not desired outcome. I did this and still get the
same issue so just a bbit confused as to why it will name the other two dimensions but not the first one.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US">Error! Filename not specified.</span></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks in advance<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">_______________________________________________ ncl-talk mailing list
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>looked <o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>