<div dir="ltr"><div>Hi Will,</div><div><br></div><div>That is strange, and I don't see anything offhand. Are you able to send me that file, if its not too large?</div><div><br></div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 25, 2019 at 1:22 AM Will Hobbs via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.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 lang="EN-AU">
<div class="gmail-m_-1777069312687667700WordSection1">
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">Hi all<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">I suspect this is some kind of Endian issue or something with netCDF4 and nothing much can be done, but I’ve a found a weird issue that I’ve never noticed in previous versions (I’m using v 6.6.2
on a Mac, OSX 10.11)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">Reading in a rank 5 array from netCDF using addfile(), dimensioned (3, 2, nlev, nlat, nlon):<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">>fi = addfile(“<a href="http://filename.nc" target="_blank">filename.nc</a>”,”r”)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">>data = fi->thetao<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">>do i = 0, 2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"> print(num(ismissing(thetao(i,:,:,:,:))))<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">>end do<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">;;;returns the numbers 971700, 952510, 0
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">;now use indexing<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">eInd = (/0,1,2/)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">data := fi->thetao(eInd,:,:,:,:)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">>do i = 0, 2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"> print(num(ismissing(thetao(i,:,:,:,:))))<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">>end do<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">;;;returns the numbers 0, 952510, 971700 – i.e. the dimension has ‘flipped’ for no good reason<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">Has anyone else seen this? I couldn’t find anything in the NCL-talk archives<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US">Will<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt" lang="EN-US"><u></u> <u></u></span></p>
</div>
<p style="font-size:10pt;line-height:10pt;font-family:Calibri,sans-serif"><br>
<br>
University of Tasmania Electronic Communications Policy (December, 2014). <br>
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained
in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
</p>
</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>