<html><head></head><body><div class="ydp6b44c8acyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div dir="ltr" data-setdir="false">Thank You Sir, </div><div dir="ltr" data-setdir="false">I could get the desired results with insructions that you have given </div><div dir="ltr" data-setdir="false"><div><div>dstr=asciiread(filename,-1,"string") ; Read file as string</div><div>;print(dstr)</div><div>printVarSummary(dstr)</div><div><span><span> </span>tab=str_get_tab()</span></div><div><span><span> </span>split= str_split_csv(dstr,tab,3)</span></div><div>;<span> </span>printVarSummary(split)</div><div>;<span> </span>print(split)</div><div>DateTime =split(:,0)</div><div>C4 = split(:, 4) </div><div>;<span> </span>print(C4)</div><div>C8 = split(:,8)</div><div>C12 = split(:,12)</div><div>print(DateTime+" "+C4+" "+C8+" "+C12)</div><div><br></div></div><br></div><div dir="ltr" data-setdir="false">thanks once again</div><div dir="ltr" data-setdir="false"><br></div><div><br></div><div class="ydp6b44c8acsignature">Geeta.</div></div>
<div><br></div><div><br></div>
<div id="ydp6b44c8acyahoo_quoted_0755852992" class="ydp6b44c8acyahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
<div>
On Thursday, 5 February 2026 at 08:39:15 pm IST, Dave Allured - NOAA Affiliate <dave.allured@noaa.gov> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="ydp6b44c8acyiv9782807489"><div><div dir="ltr"><div>Geeta, it looks like this is a "tab-separated" ASCII text file. The symbol "^I" is code for a single tab character, coming from your print program. Confirm this by printing a sample line with a low level dump tool, such as <b>"od"</b> (linux) or maybe <b>"hexdump"</b> or other such tools.</div><div><br clear="none"></div><div>Or you can read a sample line in binary with NCL, using <b>cbinread ("sample.txt", -1, "ubyte")</b>. This will read each character as a single 8-bit unsigned integer. Then use NCL <b>print()</b> to show the integers. In this mode, ASCII tab characters are the number 9 in decimal; spaces are 32; digits are 48-57; etc. End of line is 10, or maybe the 13/10 pair. Consult an ASCII code table. Once again, this method is only for confirming the file format.</div><div><br clear="none"></div><div>To split each line into separate data fields, use <b>str_split_csv</b> with the tab character as the delimiter, instead of the usual comma. Get a single tab character with <b>str_get_tab</b>. You can also use <b>str_split_csv</b> to split multiple lines, instead of looping over single lines. This is more efficient if you have large amounts of data.</div><div dir="ltr"><br clear="none"></div><br clear="none"><div id="ydp6b44c8acyiv9782807489yqt65586" class="ydp6b44c8acyiv9782807489yqt9048303016"><div class="ydp6b44c8acyiv9782807489gmail_quote ydp6b44c8acyiv9782807489gmail_quote_container"><div dir="ltr" class="ydp6b44c8acyiv9782807489gmail_attr">On Thu, Feb 5, 2026 at 12:47 AM Geeta Geeta via ncl-talk <<a shape="rect" href="mailto:ncl-talk@mailman.ucar.edu" rel="nofollow" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex;" class="ydp6b44c8acyiv9782807489gmail_quote"><div><div style="font-family:Helvetica, Arial, sans-serif;font-size:13px;"><div><div dir="ltr"><span></span><h3 title="how do I make understand the code that there are so many blank columns not 1"><span>Hi </span></h3><h3 title="how do I make understand the code that there are so many blank columns not 1"><span>My data file looks like this </span></h3><h3 title="how do I make understand the code that there are so many blank columns not 1"><span><img title="Inline image" alt="Inline image" src="cid:LHvAqykoO7hvoQMwCaeh" style="max-width:800px;" class=""><br clear="none"><span></span>how do I make understand the code that there are so many blank columns not 1</span></h3><div dir="ltr"><span>pfa the section of my code </span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><div><div>do i =2771, 2900</div><div>print(dstr(i))</div><div><span><span> </span>; split the strings</span></div><div>split= str_split(dstr(i)," ")</div><div>print(split)<span> </span>; it is string</div><div>DateTime = split(0)+" "+split(1)+split(2)</div></div></div><br clear="none"></div><div dir="ltr">following error is coming</div><div dir="ltr"><div><div>fatal:Dimension sizes of left hand side and right hand side of assignment do not match</div><div>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 35 in file c1.ncl</div></div></div><div><br clear="none"></div><div>Geeta.</div></div></div></div>
</blockquote></div></div></div>
</div></div></div>
</div>
</div></div></body></html>