<div dir="ltr"><div class="gmail_default" style="font-size:small">Nisha,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You didn't provide the script that had the "onedtond" call in it. My guess is that the second argument to this function is not the correct size for the array that you are trying to reshape.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I had no problems with opening your attached file and reading the corr variable. Here's the short script:</div><div class="gmail_default" style="font-size:small"><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">filename = "output_Jan.nc"</font></div></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">f = addfile(filename,"r")</font></div></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">print(f)</font></div></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace"><br></font></div></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">corr = f->corr</font></div></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">printVarSummary(corr)</font></div></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">printMinMax(corr,0)</font></div></div></blockquote><div class="gmail_default"><div class="gmail_default"><br></div><div class="gmail_default">and here's the output:</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">Variable: f</font></div><div class="gmail_default"><font face="monospace, monospace">Type: file</font></div><div class="gmail_default"><font face="monospace, monospace">filename:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>output_Jan</font></div><div class="gmail_default"><font face="monospace, monospace">path:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>output_Jan.nc</font></div><div class="gmail_default"><font face="monospace, monospace">Number of Attributes:4</font></div><div class="gmail_default"><font face="monospace, monospace"> creation_date<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>Thu May 11 12:50:34 EDT 2017</font></div><div class="gmail_default"><font face="monospace, monospace"> Conventions<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>None</font></div><div class="gmail_default"><font face="monospace, monospace"> source_file<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span><a href="http://original-file.nc">original-file.nc</a></font></div><div class="gmail_default"><font face="monospace, monospace"> title<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>Jan netCDF variables</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">dimensions:</font></div><div class="gmail_default"><font face="monospace, monospace"> lat<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>= 361</font></div><div class="gmail_default"><font face="monospace, monospace"> lon<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>= 576</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">variables:</font></div><div class="gmail_default"><font face="monospace, monospace"> Variable: lat</font></div><div class="gmail_default"><font face="monospace, monospace"> Type: double</font></div><div class="gmail_default"><font face="monospace, monospace"> Total Size: 361 values</font></div><div class="gmail_default"><font face="monospace, monospace"> 2888 bytes</font></div><div class="gmail_default"><font face="monospace, monospace"> Number of Dimensions: 1</font></div><div class="gmail_default"><font face="monospace, monospace"> Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>[ 361 <lat> ]</font></div><div class="gmail_default"><font face="monospace, monospace"> Coordinates:</font></div><div class="gmail_default"><font face="monospace, monospace"> lat: [-90.000000..90.000000]</font></div><div class="gmail_default"><font face="monospace, monospace"> Number of Attributes: 5</font></div><div class="gmail_default"><font face="monospace, monospace"> long_name<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>latitude</font></div><div class="gmail_default"><font face="monospace, monospace"> units<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>degrees_north</font></div><div class="gmail_default"><font face="monospace, monospace"> vmax<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>999999986991104.000000</font></div><div class="gmail_default"><font face="monospace, monospace"> vmin<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>-999999986991104.000000</font></div><div class="gmail_default"><font face="monospace, monospace"> valid_range<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>( -999999986991104.000000, 999999986991104.000000 )</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace"> Variable: lon</font></div><div class="gmail_default"><font face="monospace, monospace"> Type: double</font></div><div class="gmail_default"><font face="monospace, monospace"> Total Size: 576 values</font></div><div class="gmail_default"><font face="monospace, monospace"> 4608 bytes</font></div><div class="gmail_default"><font face="monospace, monospace"> Number of Dimensions: 1</font></div><div class="gmail_default"><font face="monospace, monospace"> Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>[ 576 <lon> ]</font></div><div class="gmail_default"><font face="monospace, monospace"> Coordinates:</font></div><div class="gmail_default"><font face="monospace, monospace"> lon: [-180.000000..179.375000]</font></div><div class="gmail_default"><font face="monospace, monospace"> Number of Attributes: 5</font></div><div class="gmail_default"><font face="monospace, monospace"> long_name<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>longitude</font></div><div class="gmail_default"><font face="monospace, monospace"> units<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>degrees_east</font></div><div class="gmail_default"><font face="monospace, monospace"> vmax<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>999999986991104.000000</font></div><div class="gmail_default"><font face="monospace, monospace"> vmin<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>-999999986991104.000000</font></div><div class="gmail_default"><font face="monospace, monospace"> valid_range<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>( -999999986991104.000000, 999999986991104.000000 )</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace"> Variable: corr</font></div><div class="gmail_default"><font face="monospace, monospace"> Type: float</font></div><div class="gmail_default"><font face="monospace, monospace"> Total Size: 207936 values</font></div><div class="gmail_default"><font face="monospace, monospace"> 831744 bytes</font></div><div class="gmail_default"><font face="monospace, monospace"> Number of Dimensions: 2</font></div><div class="gmail_default"><font face="monospace, monospace"> Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>[ 361 <lat> x 576 <lon> ]</font></div><div class="gmail_default"><font face="monospace, monospace"> Coordinates:</font></div><div class="gmail_default"><font face="monospace, monospace"> lat: [-90.000000..90.000000]</font></div><div class="gmail_default"><font face="monospace, monospace"> lon: [-180.000000..179.375000]</font></div><div class="gmail_default"><font face="monospace, monospace"> Number of Attributes: 1</font></div><div class="gmail_default"><font face="monospace, monospace"> _FillValue<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>: <span class="gmail-Apple-tab-span" style="white-space:pre">        </span>999999986991104.000000</font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace"><br></font></div><div class="gmail_default"><font face="monospace, monospace">Variable: corr</font></div><div class="gmail_default"><font face="monospace, monospace">Type: float</font></div><div class="gmail_default"><font face="monospace, monospace">Total Size: 831744 bytes</font></div><div class="gmail_default"><font face="monospace, monospace"> 207936 values</font></div><div class="gmail_default"><font face="monospace, monospace">Number of Dimensions: 2</font></div><div class="gmail_default"><font face="monospace, monospace">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>[lat | 361] x [lon | 576]</font></div><div class="gmail_default"><font face="monospace, monospace">Coordinates: </font></div><div class="gmail_default"><font face="monospace, monospace"> lat: [ -90.. 90]</font></div><div class="gmail_default"><font face="monospace, monospace"> lon: [-180..179.375]</font></div><div class="gmail_default"><font face="monospace, monospace">Number Of Attributes: 1</font></div><div class="gmail_default"><font face="monospace, monospace"> _FillValue :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>1e+15</font></div><div class="gmail_default"><font face="monospace, monospace">(0)<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>min=-0.832452 max=0.970284</font></div></div></div><div class="gmail_default"><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">What version of NCL are you using? I was able to look at this file with NCL versions 6.2.1, 6.3.0 and 6.4.0.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 11, 2017 at 11:11 AM, Manisha Ganeshan <span dir="ltr"><<a href="mailto:manisha.ganeshan86@gmail.com" target="_blank">manisha.ganeshan86@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dead NCL community,<div><br></div><div>I'm trying to write three variables (576x361 dimensions) in a netcdf file using the "efficient" method. I get the following warning and error message when I try to run ncl_filedump and read a variable from my <a href="http://output.nc" target="_blank">output.nc</a> file. Attached is my script and <a href="http://output.nc" target="_blank">output.nc</a> file.</div><div><br></div><div>
<p class="m_-1837153389375108716gmail-p1"><span class="m_-1837153389375108716gmail-s1"><b>warning:onedtond : output dimension sizes have fewer elements than input, some data not copied</b></span></p>
<p class="m_-1837153389375108716gmail-p1"><span class="m_-1837153389375108716gmail-s1"><b>fatal:NclMalloc Failed:[errno=12]</b></span></p>
<p class="m_-1837153389375108716gmail-p1"><span class="m_-1837153389375108716gmail-s1"><b>Segmentation fault</b></span></p><p class="m_-1837153389375108716gmail-p1"><span class="m_-1837153389375108716gmail-s1"><br></span></p></div><div>Any thoughts on the solution?</div><div><br></div><div>Regards,</div><div>Nisha</div><span class="HOEnZb"><font color="#888888"><div><div><br></div>-- <br><div class="m_-1837153389375108716gmail_signature"><div dir="ltr">Dr. Manisha Ganeshan<div>Universities Space Research Association</div><div>Maryland, U.S.A.</div></div></div>
</div></font></span></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>