<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
All,
<div class=""><br class="">
</div>
<div class="">I’m getting a segmentation fault error when using addfile and addfiles to read in netcdf files. Each single file is a monthly mean (only one time step) of many variables that are resolved in space. I’ve uploaded an example file to the link, (file
 is called "spcesm_cam5_control.cam.h0.1910-05.nc"): <a href="http://saddleback.atmos.colostate.edu/rr/docexch.php" class="">http://saddleback.atmos.colostate.edu/rr/docexch.php</a>. Running ncl_filedump and ncl_convert2nc on the files works fine and everything
 looks great. The non-ncl ncview and ncdump also show that things look normal to me. My files are smaller than 400 MB each, all variables are 3D or smaller, and the largest dimension is length 144. </div>
<div class=""><br class="">
</div>
<div class="">Relevant code:</div>
<div class="">(when using addfiles)</div>
<div class=""><br class="">
</div>
<div class=""><font face="Menlo" class="">fnameIn = dir + "spcesm_cam5_*.h0.*.nc"</font></div>
<div class=""><font face="Menlo" class="">files = systemfunc("ls "+fnameIn)<br class="">
f     = addfiles(files, "r") ; </font><- Error: "warning:_NclOpenFile: Can not open file <filename> file format not supported or file is corrupted"</div>
<font face="Menlo" class=""><br class="">
</font>
<div class=""><br class="">
</div>
<div class="">(when using addfile)</div>
<div class=""><span class="" style="font-family: Menlo;">fnameIn = dir + "spcesm_cam5_*.h0.*.nc"</span></div>
<div class=""><font face="Menlo" class="">files = systemfunc("ls "+fnameIn)</font></div>
<div class=""><font face="Menlo" class="">nf    = dimsizes(files)</font></div>
<div class=""><font face="Menlo" class="">do ifile = 0,nf-1</font></div>
<div class=""><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space: pre;"></span>f = addfile(files(ifile), "r") ; </font><- Error: "Segmentation fault"</div>
<div class=""><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space: pre;"></span>…</font></div>
<div class=""><font face="Menlo" class="">end do</font></div>
<div class=""><br class="">
<div class="">Thanks in advance for your help</div>
</div>
<div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
---<br class="">
Andrea Jenney<br class="">
PhD Candidate | Randall & Barnes Groups<br class="">
Colorado State University | Dept. of Atmospheric Science </div>
</div>
</div>
<br class="">
</body>
</html>