<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="HOEnZb"><font color="#888888"><div>Noelia</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>