<div dir="ltr"><div>Hi,<br><br></div>Are you able you able to ftp the file in question to us? Using "addfile()" with "w" to both read and write should work, and in any case, it should not segv!<br><br><pre>ftp <a href="http://ftp.cgd.ucar.edu">ftp.cgd.ucar.edu</a>
anonymous
<i><enter your email address for the password></i>
cd incoming
put <i>file1</i>
put <i>file2</i>
. . .<i>continue with 'put' commands until all desired files are uploaded</i>. . .
quit
</pre>
<p>
When the upload is complete, send email
to <a href="mailto:ncl-talk@ucar.edu">ncl-talk</a> or the NCL team
member that you've already been working with and include the exact
names of the files, and the approximate size of each file.
</p><p>
<font color="red">For security reasons, you cannot list the contents of
the 'incoming' directory. This is why we need to know the exact names
of the files.</font>
</p>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 9, 2017 at 3:18 PM, Noelia otero <span dir="ltr"><<a href="mailto:noeli1680@gmail.com" target="_blank">noeli1680@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 Dennis,<div><br></div><div>This is not a wrfout_nc file, sorry, it was just the name used in the script to call "file_in". What confuses me it's that when I open the file with addfile with the option "r" I can get the variables (lat, lon or whatever). The problem is when I want to overwrite some the values in there, because I open it as addfile with the option "w". Then when I try to read any variable the segmentation defaul happens. Any idea ?</div><div><br></div><div>Many thanks again,</div><div>Noelia</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-12-09 22:42 GMT+01:00 Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Typically, wrfout_nc files do not have variable named 'lat'<br><br></div>XLAT(Time, south_north, west_east)<br></div>also<br>XLONG(Time, south_north, west_east)<br><br></div>So, maybe it should be<br><br></div>lat2d = (/wrfout->XLAT(0,:,:)/) ; 0 refers to the 1st time step<br></div>printVarSummary(lat2d)<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1883125579834824499h5">On Sat, Dec 9, 2017 at 12:56 PM, Noelia otero <span dir="ltr"><<a href="mailto:noeli1680@gmail.com" target="_blank">noeli1680@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1883125579834824499h5"><div dir="ltr">Hi <div><br></div><div>I am getting a Segmentation fault (core dumped) when trying to read a variable from one file opened as:</div><div><br></div><div>wrfout = addfile(file_in,"w")<br></div><div><div>lat2d = (/wrfout->lat/)</div><div>Segmentation fault (core dumped)</div></div><div><br></div><div>I thought that it could due to a problem in the file, but I looked at the file and it seems fine. If I use:</div><div><div>wrfout = addfile(file_in,"r")<br></div><div>lat2d = (/wrfout->lat/)</div></div><div>it works.</div><div>The file I'm using is 52M..no too large...so I'm quite lost about what the problem can be... and the version of ncl Version 6.3.0.</div><div><br></div><div>Any idea?</div><div><br></div><div>Thanks!</div><div><br></div><div>Best</div><span class="m_-1883125579834824499m_2559334932514395200HOEnZb"><font color="#888888"><div>Noelia</div></font></span></div>
<br></div></div>______________________________<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></blockquote></div><br></div>
</blockquote></div><br></div>
</div></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>