<div dir="ltr"><div class="gmail_default" style="font-size:small">This is a pretty old version of NCL! I highly recommend upgrading NCL if possible.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I just tried the file with NCL V6.1.0, and it also works fine. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You had a typo in your command:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">ncl_filedump -v corr output_Jan.txt</span><br></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">Just to be clear, ncl_filedump will *not* work on ASCII files. It will only work on NetCDF, HDF, GRIB, etc, files.</span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">ncl_filedump -v corr output_Jan.nc</span><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">--Mary</span></div><div class="gmail_default"><b style="font-size:12.8px"><br></b></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 11, 2017 at 2:50 PM, 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">Hi Mary,<div><br></div><div>I'm using NCL 6.1.0-beta.</div><div>The problem is when I use <b>ncl_filedump -v corr output_Jan.txt. </b>That's when I get the warning and error message. </div><div>Since the file reads okay, I'll ignore this for the time being. </div><div><br></div><div>Regards,</div><div>Nisha</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 11, 2017 at 4:30 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</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"><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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>output_Jan</font></div><div class="gmail_default"><font face="monospace, monospace">path:<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Thu May 11 12:50:34 EDT 2017</font></div><div class="gmail_default"><font face="monospace, monospace"> Conventions<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>None</font></div><div class="gmail_default"><font face="monospace, monospace"> source_file<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span><a href="http://original-file.nc" target="_blank">original-file.nc</a></font></div><div class="gmail_default"><font face="monospace, monospace"> title<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>= 361</font></div><div class="gmail_default"><font face="monospace, monospace"> lon<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>latitude</font></div><div class="gmail_default"><font face="monospace, monospace"> units<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>degrees_north</font></div><div class="gmail_default"><font face="monospace, monospace"> vmax<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>999999986991104.000000</font></div><div class="gmail_default"><font face="monospace, monospace"> vmin<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>-999999986991104.000000</font></div><div class="gmail_default"><font face="monospace, monospace"> valid_range<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>longitude</font></div><div class="gmail_default"><font face="monospace, monospace"> units<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>degrees_east</font></div><div class="gmail_default"><font face="monospace, monospace"> vmax<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>999999986991104.000000</font></div><div class="gmail_default"><font face="monospace, monospace"> vmin<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>-999999986991104.000000</font></div><div class="gmail_default"><font face="monospace, monospace"> valid_range<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>: <span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>1e+15</font></div><div class="gmail_default"><font face="monospace, monospace">(0)<span class="m_-5853295161981644788m_8539913027936510595gmail-Apple-tab-span" style="white-space:pre-wrap">        </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><span class="m_-5853295161981644788HOEnZb"><font color="#888888"><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></font></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span>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></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-5853295161981644788h5"><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_-5853295161981644788m_8539913027936510595m_-1837153389375108716gmail-p1"><span class="m_-5853295161981644788m_8539913027936510595m_-1837153389375108716gmail-s1"><b>warning:onedtond : output dimension sizes have fewer elements than input, some data not copied</b></span></p>
<p class="m_-5853295161981644788m_8539913027936510595m_-1837153389375108716gmail-p1"><span class="m_-5853295161981644788m_8539913027936510595m_-1837153389375108716gmail-s1"><b>fatal:NclMalloc Failed:[errno=12]</b></span></p>
<p class="m_-5853295161981644788m_8539913027936510595m_-1837153389375108716gmail-p1"><span class="m_-5853295161981644788m_8539913027936510595m_-1837153389375108716gmail-s1"><b>Segmentation fault</b></span></p><p class="m_-5853295161981644788m_8539913027936510595m_-1837153389375108716gmail-p1"><span class="m_-5853295161981644788m_8539913027936510595m_-1837153389375108716gmail-s1"><br></span></p></div><div>Any thoughts on the solution?</div><div><br></div><div>Regards,</div><div>Nisha</div><span class="m_-5853295161981644788m_8539913027936510595HOEnZb"><font color="#888888"><div><div><br></div>-- <br><div class="m_-5853295161981644788m_8539913027936510595m_-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></div></div><span>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-5853295161981644788gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Dr. Manisha Ganeshan<div>Universities Space Research Association</div><div>Maryland, U.S.A.</div></div></div>
</div>
</div></div></blockquote></div><br></div>