<div dir="ltr"><div>Now this is the error coming after using fbiinread.</div><div><br></div><div><br></div><div><div>Datadir=("/home/arkadeb/Arka/GMFD/GSMap/")</div><div>diri=Datadir</div><div>all_files=systemfunc("ls " + diri + "gsmap_nrt*")</div><div>print(all_files)</div><div>n_files=dimsizes(all_files)</div><div>print(n_files)</div><div>do n=0, n_files-1, 1</div><div>filename=all_files(n)</div><div>print(filename)</div><div>fn=fbiinread(filename,0,-1,"float")</div><div>;print(fn)</div><div>;end do</div></div><div><br></div><div>errors are below:</div><div><br></div><div>Variable: filename</div><div>Type: string</div><div>Total Size: 8 bytes</div><div>            1 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes:   [1]</div><div>Coordinates:</div><div>(0)     /home/GSMap/gsmap_nrt.20100805.0600.dat</div><div>fatal:Undefined identifier: (fbiinread) is undefined, can't continue</div><div>fatal:["Execute.c":8640]:Execute: Error occurred at or near line 16 in file Gsmap.ncl</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 22, 2017 at 2:12 PM, Arka Banerjee <span dir="ltr"><<a href="mailto:arka354deb@gmail.com" target="_blank">arka354deb@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">I also earlier make the same question to them. I already see the page link : <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Functions/Built-in/<wbr>addfiles.shtml</a><div><br></div><div>From where it is clear that addfiles/addfile cant be use for dat files. But I got one sample example following my question which gives addfile option inside.</div><div><br></div><div>I am testing with fbiinread now as you mentioned and will inform you.</div><div><br></div><div>Thanks,</div><div>Arka</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 22, 2017 at 2:06 PM, Guido Cioni <span dir="ltr"><<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@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="auto">Again.. Don't open a new thread when new problems arise!<div dir="auto"><br></div><div dir="auto">As already told you by Dennis you CAN'T open binary files with addfile. You have to open them with fbiinread. Please read the documentation AND the mail that we are writing to you. </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-2422888105548173044h5">Il 22 dic 2017 8:47 AM, "Arka Banerjee via ncl-talk" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> ha scritto:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-2422888105548173044h5"><div dir="ltr"><span style="font-size:12.8px">Hello user..</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I run the attached part in my script and getting the following error msgs;</div><div style="font-size:12.8px"><br></div><div><div><span style="font-size:12.8px">begin</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Datadir=("/home/GSMap/")</span></div><div><span style="font-size:12.8px">diri=Datadir</span></div><div><span style="font-size:12.8px">all_files=systemfunc("ls " + diri + "gsmap_nrt*")</span></div><div><span style="font-size:12.8px">n_files=dimsizes(all_files)</span></div><div><span style="font-size:12.8px">do n=0,n_files-1,1</span></div><div><span style="font-size:12.8px">filename=all_files(n)</span></div><div><span style="font-size:12.8px">fn=addfile(filename,"r")</span></div></div><div><span style="font-size:12.8px">.......</span></div><div><span style="font-size:12.8px">.......</span></div><div style="font-size:12.8px"><br></div><div><div style="font-size:12.8px">warning:_NclOpenFile: Can not open file </home/GSMap/gsmap_nrt.2010080<wbr>5.0600.dat>; file format not supported or file is corrupted</div><div style="font-size:12.8px">warning:_NclOpenFile: Can not open file </home/GSMap/gsmap_nrt.2010080<wbr>5.0900.dat>; file format not supported or file is corrupted</div><div style="font-size:12.8px">warning:_NclOpenFile: Can not open file </home/GSMap/gsmap_nrt.2010080<wbr>5.1200.dat>; file format not supported or file is corrupted</div><div style="font-size:12.8px">warning:_NclOpenFile: Can not open file </home/GSMap/gsmap_nrt.2010080<wbr>5.1500.dat>; file format not supported or file is corrupted</div><div style="font-size:12.8px">warning:_NclOpenFile: Can not open file </home/GSMap/gsmap_nrt.2010080<wbr>5.1800.dat>; file format not supported or file is corrupted</div><div style="font-size:12.8px">warning:_NclOpenFile: Can not open file </home/GSMap/gsmap_nrt.2010080<wbr>6.2100.dat>; file format not supported or file is corrupted</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">fatal:Could not coerce values for operation</div><div style="font-size:12.8px">fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 30 in file Gsmap.ncl</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div><span style="font-size:12.8px">print(filename) shows the following error msg for each files;</span><br></div><div><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><div style="font-size:12.8px">Variable: filename</div><div style="font-size:12.8px">Type: string</div><div style="font-size:12.8px">Total Size: 8 bytes</div><div style="font-size:12.8px">            1 values</div><div style="font-size:12.8px">Number of Dimensions: 1</div><div style="font-size:12.8px">Dimensions and sizes:   [1]</div><div style="font-size:12.8px">Coordinates:</div><div style="font-size:12.8px">(0)     /home/GSMap/gsmap_nrt.2010080<wbr>5.0600.dat</div><div style="font-size:12.8px">warning:_NclOpenFile: Can not open file </home/GSMap/gsmap_nrt.2010080<wbr>5.0600.dat>; file format not supported or file is corrupted</div><div><br></div></div><div style="font-size:12.8px"><br></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Please inform me how to fix it.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Arka</div></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></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>