<div dir="ltr"><div>Hi Kwesi</div><div><br></div><div>I am glad that it worked!</div><div>On my first quick read I missed that detail on the creation of the new time coordinates.</div><div>But when you said the output was empty, that gave the hint,</div><div> because linint1_n can only interpolate, not extrapolate,</div><div>hence the two time arrays were not overlapping as they should be.</div><div><br></div><div>Best,</div><div>Gus<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 6:17 PM Kwesi A. Quagraine <<a href="mailto:starskykwesi@gmail.com">starskykwesi@gmail.com</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;"><div id="gmail-m_8278446145442261290bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">Thanks Gus for the time and detailed explanation on what I was missing. </div><div id="gmail-m_8278446145442261290bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px"><br></div><div id="gmail-m_8278446145442261290bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">Changing the new time length did the trick.</div><div id="gmail-m_8278446145442261290bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px"><br></div><div id="gmail-m_8278446145442261290bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">Best regards</div><div id="gmail-m_8278446145442261290bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">Kwesi</div> <br><p class="gmail-m_8278446145442261290airmail_on">On 26 February 2019 at 00:50:37, Gus Correa (<a href="mailto:gus@ldeo.columbia.edu" target="_blank">gus@ldeo.columbia.edu</a>) wrote:</p> <blockquote type="cite" class="gmail-m_8278446145442261290clean_bq"><span><div><div></div><div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Hi Kwesi<br></div>
<div><br></div>
<div>One thing that came to mind.</div>
<br>
<div>First, simplify, note that<br></div>
<div>34*365=12410 is the number of ouput time records you
want,<br></div>
<div>and 34*360=12240 is the number of input time
records.<br></div>
<div>Right?<br></div>
<div><br></div>
<div>I would guess what you want is that your output
time<br></div>
<div>starts at time_360(0) (the first input time
record)<br></div>
<div>ends at time_360(12240 - 1) (the last input time
record)<br></div>
<div>and has 12410 data points.<br></div>
<div>Hence, maybe you need to create time_365 like this:</div>
<div><br></div>
<div>time_365=fspan(time_360(0), time_360(12240 - 1), 12410).</div>
<div><br></div>
<div>Right?</div>
<div><br></div>
<div>This way your output "day" may be shorter than one input day,
but that is unavoidable if you're going from 360 to 365 days.</div>
<div><br></div>
<div>Also, then you need to use the same units as in the original
time.</div>
<div>Now you're using "days since 1980-01-01 12:00:00" , but you
haven't shown if these are the original units or not.</div>
<div><br></div>
<div>I hope this helps,</div>
<div>Gus Correa<br></div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 5:13 PM
Kwesi A. Quagraine <<a href="mailto:starskykwesi@gmail.com" target="_blank">starskykwesi@gmail.com</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>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
Thanks Gus. </div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<br></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
Replacing the line with; </div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<br></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
zg_new = (/ linint1_n( time_360, rm_single_dims(var),
False, time_365, 0, 0) /)</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<br></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
The script runs OK, however, the variable "zg_new" is empty
although the time axis looks standard calendar.</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<br></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
I’d be grateful for some help on this. Attached is my script.</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<br></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
Thanks</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
Kwesi</div>
<br>
<p class="gmail-m_8278446145442261290gmail-m_-4158174826250288876airmail_on">On 25 February
2019 at 23:38:13, Gus Correa (<a href="mailto:gus@ldeo.columbia.edu" target="_blank">gus@ldeo.columbia.edu</a>) wrote:</p>
<blockquote type="cite" class="gmail-m_8278446145442261290gmail-m_-4158174826250288876clean_bq">
<div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><span>Hi Kwesi</span></div>
<div><span><br></span></div>
<div><span>Sorry, I may have misinterpreted the use of
linint1_n.</span></div>
<div><span>Have you tried simply:</span></div>
<div><span><br></span></div>
<div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<span>zg_new = (/ linint1_n( time_360,
rm_single_dims(var), False, time_365, 0, 0) /)</span></div>
<div><span><br></span></div>
<div><span>This seems to be similar to "example 3" in the linint1_n
documentation:</span></div>
<div><span><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/linint1_n.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/linint1_n.shtml</a><br>
</span></div>
<div><span>and more similar to your original code.</span></div>
<div><span><br></span></div>
<div><span>Gus<br></span></div>
</div>
</div>
</div>
<div><span><span><br></span></span></div>
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 3:27 PM
Kwesi A. Quagraine <<a href="mailto:starskykwesi@gmail.com" target="_blank">starskykwesi@gmail.com</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>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
Hello Gus, NCLers,</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<br></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
Thanks for the earlier help. However, I still get this error;</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="margin:0px">fatal:_NclBuildArray: each element of a literal
array must have the same dimension sizes, at least one item
doesn't</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="margin:0px">fatal:["Execute.c":8640]:Execute: Error occurred
at or near line 22 in file change_360day-365day.ncl</div>
</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<br></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
after replacing with this; </div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
—> this is line 22</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
zg_new = (/ linint1_n( (/ time_360, lat, lon /),
rm_single_dims(var), False, (/ time_365, lat, lon/), 0, 0)
/)</div>
<div><br></div>
<div><br></div>
A snap of the code as it is now;
<div>
<div> zg_new = new( (/ time_steps,
dimsizes(lat), dimsizes(lon) /), "float", 1.0e+20 )</div>
<div> zg_new
= (/ linint1_n( (/ time_360, lat, lon /),
rm_single_dims(var), False, (/ time_365, lat, lon/), 0, 0)
/)</div>
<div> ;zg_new
= linint1_n(time_360,var,False,time_365,0,0)</div>
<div> zg_new!0 =
"time" </div>
<div> zg_new&time =
time_365</div>
<div> zg_new!1 =
"lat" </div>
<div> zg_new&lat =
lat</div>
<div> zg_new!2 =
"lon" </div>
<div> zg_new&lon =
lon</div>
<div><br></div>
<div> zg_new@_FillValue = 1.0e+20</div>
<div> zg_new@missing_value = 1.0e+20</div>
<div> zg_new@standard_name =
"geopotential_height" </div>
<div> zg_new@long_name = "Geopotential
Height" </div>
<div> zg_new@units =
"m" </div>
<div> zg_new@coordinates = "lon lat time" </div>
<div> zg_new@cell_methods = "time: mean" </div>
<div> printVarSummary(zg_new)</div>
<div>I’d be grateful for more help on this.</div>
<div><br></div>
<div>Thanks</div>
<div>Kwesi</div>
<div>
<p class="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767airmail_on">
On 25 February 2019 at 01:44:57, Gus Correa (<a href="mailto:gus@ldeo.columbia.edu" target="_blank">gus@ldeo.columbia.edu</a>) wrote:</p>
<blockquote type="cite" class="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767clean_bq">
<div>
<div>
<div dir="ltr">
<div><span>Have you tried to define zg_new dimensions and metadata
before you use it on the r.h.s. of linint1_n?</span></div>
<div><span>Something like this:</span></div>
<div><span>zg_new=new( (/ time_steps, dimsizes(lat), dimsizes(lon)
/), "float", 1.0e+20 )</span></div>
<div><span><br></span></div>
<div><span>Then the part of the code where you define zg_new
metadata:<br></span></div>
<div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new!0
= "time" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new&time
= time_365</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new!1
= "lat" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new&lat
= lat</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new!2
= "lon" </span></div>
<div style="margin:0px"><span> zg_new&lon
= lon<br></span>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@_FillValue =
1.0e+20</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@missing_value =
1.0e+20</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@standard_name =
"geopotential_height" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@long_name =
"Geopotential Height" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@units
= "m" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@coordinates = "lon
lat
plev"
< Why time is not included? Why plev is
included?<br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@cell_methods = "time:
maximum" <- Why maximum if your original data says
mean?<br></span></div>
</div>
<div style="margin:0px"><span> <br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>And only then the
interpolation. <br></span></div>
<div style="margin:0px"><span>The extra (/ ... /) parenthesis on
the l.h.s. prevent inheriting the metadata from "var".</span></div>
<div style="margin:0px"><span>The rm_single_dims is to remove the
degenerate (dimension=1) "plev" of "var", making it 3D (not 4D
anymore).<br></span></div>
<div style="margin:0px"><span>Also, var is multidimensional, so I
think the arguments of linint1_n need to honor
that:<br></span></div>
<div style="margin:0px"><span><br></span></div>
<div style="margin:0px"><span>zg_new
= (/ linint1_n( (/ time_360, lat,
lon /), rm_single_dims(var), False, (/ time_365, lat, lon/), 0,
0) /)<br></span></div>
<div style="margin:0px"><span><br></span></div>
<div style="margin:0px"><span>I haven't tested it, so it goes with
no guarantees.<br></span></div>
<div style="margin:0px"><span>I hope this helps.<br></span></div>
<div style="margin:0px"><span><br></span></div>
</div>
</div>
<span><br></span>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr"><span>On Sun, Feb 24, 2019 at
5:31 PM Kwesi A. Quagraine <<a href="mailto:starskykwesi@gmail.com" target="_blank">starskykwesi@gmail.com</a>> wrote:<br></span></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<span>Hello NCLers</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<span><br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<span>I am trying to convert a netcdf file with 360 day calendar to
standard, 365 day calendar with the script below; I am having
errors when I try. I will be grateful for any
help. </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<span><br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<span>For printVarSummary;</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<span><br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgb(0,0,0);margin:0px">
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>Variable: var</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>Type: float</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>Total Size: 37013760 bytes</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>
9253440 values</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>Number of Dimensions: 4</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>Dimensions and sizes: [time | 12240] x
[plev | 1] x [lat | 36] x [lon | 21]</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>Coordinates:</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>
time: [43590.5..55829.5]</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>
plev: [70000..70000]</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>
lat: [-44.375..-0.625]</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>
lon: [6.5625..44.0625]</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>Number Of Attributes: 9</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> standard_name :
geopotential_height</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> long_name : Geopotential
Height</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> units : m</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> _FillValue : 1e+20</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> missing_value : 1e+20</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> original_name : mo:
m01s30i207/m01s30i301</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> cell_methods : time:
mean</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> history : 2012-06-26T08:31:01Z
altered by CMOR: replaced missing value flag (-1.07374e+09) with
standard missing value (1e+20).</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> associated_files : baseURL:
<a href="http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation" target="_blank">http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation</a>
gridspecFile:
gridspec_atmos_fx_HadGEM2-ES_historical_r0i0p0.nc</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span><br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px">
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>fatal:Coordinate variables must be the
same dimension as their dimension</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>fatal:No coordinate variable exists for
dimension (lat) in variable (zg_new)</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>fatal:["Execute.c":8640]:Execute: Error
occurred at or near line 25 in file</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span><br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span><br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>For Script:</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px">
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> f =
addfile("zg700_day_HadGEM2-ES_rcp85_r1i1p1_19800101-20131231.nc","r")</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> var
= f->zg</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_360 =
var&time</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> lat
= f->lat</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> lon
= f->lon</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> plev =
f->plev</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> printVarSummary(var)</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_steps
= 34*365 ;1980 to
2013</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_365
=
fspan(1,time_steps,time_steps)</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_365!0
= "time" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_365&time
= time_365</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_365@standard_name =
"time" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_365@units
= "days since 1980-01-01 12:00:00" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_365@calendar
= "365_day" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_365@long_name
= "time" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> time_365@axis
= "T" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span><br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new
=
linint1_n(time_360,var,False,time_365,0,0)</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new!0
= "time" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new&time
= time_365</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new!1
= "lat" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new&lat
= lat</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new!2
= "lon" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new&lon
= lon</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span><br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@_FillValue =
1.0e+20</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@missing_value =
1.0e+20</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@standard_name =
"geopotential_height" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@long_name =
"Geopotential Height" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@units
= "m" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@coordinates = "lon
lat plev" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> zg_new@cell_methods = "time:
maximum" </span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span>
printVarSummary(zg_new)</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span><br></span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> ;system("rm -rf
zg700_day_HadGEM2-ES_rcp85_r1i1p1_19800101-20131231_cal.nc")</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> outf =
addfile("zg700_day_HadGEM2-ES_rcp85_r1i1p1_19800101-20131231_cal.nc","c")</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> outf->lat
= lat</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> outf->lon
= lon</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> outf->plev
= plev</span></div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span> outf->zg =
zg_new</span></div>
</div>
</div>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_customfont" style="margin:0px"><span><br></span></div>
</div>
<span>I will be grateful for any help on this.</span>
<div><span><br></span></div>
<div><span>Thanks </span></div>
<div><span>Kwesi<br></span>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_sign_1551046309496932864" class="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767gmail-m_188933905969601112bloop_sign">
<span><font face="helvetica, arial">------------ </font><br></span>
<div style="font-family:helvetica,arial;font-size:13px"><span>Try
not to become a man of success but rather a man of value- Albert
Einstein</span></div>
<div style="font-family:helvetica,Arial;font-size:13px">
<span><font face="Helvetica"><span style="font-size:12px"><br></span></font></span></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Kwesi A.
Quagraine</span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Department of
Physics</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">School
of Physical Sciences</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">College
of Agriculture and Natural Sciences</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">University
of Cape Coast</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">Cape
Coast, Ghana</span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px"><br></span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Alt. Email: <a href="mailto:kwesi@csag.uct.ac.za" target="_blank">kwesi@csag.uct.ac.za</a> </span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Web: <a href="http://www.recycleupghana.org/" target="_blank">http://www.recycleupghana.org/</a> <br></span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Office: +27 21 650
3164</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">Skype:
quagraine_cwasi</span></font></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>
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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</div>
</div>
</blockquote>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_sign_1551125842776666112" class="gmail-m_8278446145442261290gmail-m_-4158174826250288876gmail-m_-3201889785682047767bloop_sign">
<font face="helvetica, arial">------------ </font><br>
<div style="font-family:helvetica,arial;font-size:13px">Try not to
become a man of success but rather a man of value- Albert
Einstein</div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px"><br></span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Kwesi A.
Quagraine</span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Department of
Physics</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">School
of Physical Sciences</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">College
of Agriculture and Natural Sciences</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">University
of Cape Coast</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">Cape
Coast, Ghana</span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px"><br></span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Alt. Email: <a href="mailto:kwesi@csag.uct.ac.za" target="_blank">kwesi@csag.uct.ac.za</a> </span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Web: <a href="http://www.recycleupghana.org/" target="_blank">http://www.recycleupghana.org/</a> <br></span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Office: +27 21 650
3164</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">Skype:
quagraine_cwasi</span></font></div>
</div>
</div>
</div>
</div>
</blockquote>
</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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</div>
</div>
</blockquote>
<div id="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_sign_1551131180821593088" class="gmail-m_8278446145442261290gmail-m_-4158174826250288876bloop_sign"><font face="helvetica, arial">------------ </font><br>
<div style="font-family:helvetica,arial;font-size:13px">Try not to
become a man of success but rather a man of value- Albert
Einstein</div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px"><br></span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Kwesi A.
Quagraine</span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Department of
Physics</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">School
of Physical Sciences</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">College
of Agriculture and Natural Sciences</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">University
of Cape Coast</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">Cape
Coast, Ghana</span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px"><br></span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Alt. Email: <a href="mailto:kwesi@csag.uct.ac.za" target="_blank">kwesi@csag.uct.ac.za</a> </span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Web: <a href="http://www.recycleupghana.org/" target="_blank">http://www.recycleupghana.org/</a> <br></span></font></div>
<div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Office: +27 21 650
3164</span></font></div>
<div><font face="Helvetica"><span style="font-size:12px">Skype:
quagraine_cwasi</span></font></div>
</div>
</div>
</blockquote>
</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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
<br></div></div></span></blockquote> <div id="gmail-m_8278446145442261290bloop_sign_1551136585540220928" class="gmail-m_8278446145442261290bloop_sign"><font face="helvetica, arial">------------ </font><br><div style="font-family:helvetica,arial;font-size:13px">Try not to become a man of success but rather a man of value- Albert Einstein</div><div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px"><br></span></font></div><div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Kwesi A. Quagraine</span></font></div><div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Department of Physics</span></font></div><div><font face="Helvetica"><span style="font-size:12px">School of Physical Sciences</span></font></div><div><font face="Helvetica"><span style="font-size:12px">College of Agriculture and Natural Sciences</span></font></div><div><font face="Helvetica"><span style="font-size:12px">University of Cape Coast</span></font></div><div><font face="Helvetica"><span style="font-size:12px">Cape Coast, Ghana</span></font></div><div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px"><br></span></font></div><div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Alt. Email: <a href="mailto:kwesi@csag.uct.ac.za" target="_blank">kwesi@csag.uct.ac.za</a> </span></font></div><div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Web: <a href="http://www.recycleupghana.org/" target="_blank">http://www.recycleupghana.org/</a> <br></span></font></div><div style="font-family:helvetica,Arial;font-size:13px"><font face="Helvetica"><span style="font-size:12px">Office: +27 21 650 3164</span></font></div><div><font face="Helvetica"><span style="font-size:12px">Skype: quagraine_cwasi</span></font></div></div></div>
</blockquote></div></div>