<html xmlns:v="urn:schemas-microsoft-com:vml" 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:mv="http://macVmlSchemaUri" 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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">Hi,
<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>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">It would help to see the entire script. But I think the problem is well stated in the warning message.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">I suspect that the warning doesn’t come from the line Temp!0 = “time”. In fact I’m pretty sure of it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">The warning comes later when you try and assign another variable to Temp, like this: Temp = A.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">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/).<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>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">Hope this helps,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">/M</span><span style="font-size:11.0pt;font-family:Calibri"><o:p></o:p></span></p>
<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 lang="SV" style="color:#0070C0">Email:&nbsp;</span><span style="color:#0070C0"><a href="mailto:marston.johnston@gu.se"><span lang="SV" style="color:#0070C0">marston.johnston@gu.se</span></a></span><span lang="SV" style="color:#0070C0"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="SV" style="color:#0070C0">SkypeID: marston.johnston&nbsp;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#0070C0">Phone: &#43;46-31-7864901&nbsp;<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>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US"><o:p>&nbsp;</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">&lt;ncl-talk-bounces@ucar.edu&gt; on behalf of Lara Gunn &lt;lara.n.gunn@gmail.com&gt;<br>
<b>Date: </b>Thursday, 1 December 2016 at 11:00<br>
<b>To: </b>&lt;ncl-talk@ucar.edu&gt;<br>
<b>Subject: </b>[ncl-talk] weird error<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Hi<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">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"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Here is a snapshot of the code.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><img border="0" width="390" height="192" id="_x0000_i1025" src="cid:image001.png@01D24BC6.019D75B0" alt="nline image 1"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">when I run this I get this error<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">warning:VarVarWrite: lhs has dimension name and rhs doesn't, deleting name of lhs dimension number(0), use &quot;(/../)&quot; 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"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><img border="0" width="412" height="185" id="_x0000_i1026" src="cid:image002.png@01D24BC6.019D75B0" alt="nline image 3"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks in advance<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talk
<o:p></o:p></p>
</div>
</body>
</html>