Just one more sentence. We are using version 0.9.7 on our server. when I tried to use:<br>f=nc.Dataset('<a href="http://file.nc">file.nc</a>') to open the file (either big or small) within ipython, it works fine. Then when I tried to do<br>
%run cal_cmi_big.py, core dumped error. but %run cal_cmi_small.py works fine. The cal_cmi_big.py did work several days ago, I still have the file generated by this script in my directory. <br><br>cheers,<br><br>Chao<br><br>
<div class="gmail_quote">2012/5/27 Chao YUE <span dir="ltr"><<a href="mailto:chaoyuejoy@gmail.com" target="_blank">chaoyuejoy@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Jeff,<br><br>Thanks a lot for your reply. I think it might be related with the memory management on our sever. But anyway, as you suggested, I open an issue on <a href="http://netcdf4-python.google.com" target="_blank">netcdf4-python.google.co</a>m. you can find the data and script on <a href="ftp://ftp.cea.fr/incoming/y2k01/chaoyue/" target="_blank">ftp://ftp.cea.fr/incoming/y2k01/chaoyue/</a>. The cal_cmi_big.py gave the core dumped error, in which I tried to operate with big files (~2G). The cal_cmi_small.py works fine, which handles data only ~25M (a subset of big files). I used a small function (which use NetCDF4) in the script to read and write nc data with NetCDF4. You can also find this function in ncfunc.py. I tested all the script and data before I upload on our ftp. <br>
<br>thanks again for your help,<br><br>cheers,<br><br>Chao<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">2012/5/26 Jeff Whitaker <span dir="ltr"><<a href="mailto:jswhit@fastmail.fm" target="_blank">jswhit@fastmail.fm</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div>
On 5/26/12 5:51 AM, Chao YUE wrote:
<blockquote type="cite">
Dear all,<br>
<br>
Previously I am able to run a script on our server but now it gave
me a Segmentation fault (core dumped) error. <br>
try I tried the script with same type of netcdf file but with much
smaller file size and it works. So I think the error is related
with memory stuff.<br>
I guess it's because our system administrator make some change
somewhere and that cause my problem?<br>
the file size that cause the error to appear is 2.6G (in the
script I read this file with NetCDF4 to numpy array and make some
manipulation),<br>
the small one without error is only 48M.<br>
</blockquote>
<br></div>
Chao: Without seeing your script, there's not much I can say. I
suggest opening an issue at <a href="http://netcdf4-python.google.com" target="_blank">netcdf4-python.google.com</a>, including
your script as an attachment. You'll probably have to post the data
file somewhere (dropbox perhaps?) so I can run the script that
triggers the segfault. <br><span><font color="#888888">
<br>
-Jeff<br>
</font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><div class="HOEnZb"><div class="h5">-- <br><div>***********************************************************************************</div>
<div>Chao YUE<br>Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)<br>UMR 1572 CEA-CNRS-UVSQ<br>Batiment 712 - Pe 119<br>91191 GIF Sur YVETTE Cedex</div>
<div>Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16<br></div>
<div>************************************************************************************</div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div>***********************************************************************************</div>
<div>Chao YUE<br>Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)<br>UMR 1572 CEA-CNRS-UVSQ<br>Batiment 712 - Pe 119<br>91191 GIF Sur YVETTE Cedex</div>
<div>Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16<br></div>
<div>************************************************************************************</div><br>