<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></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></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></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Feb 5, 2026 at 12:47 AM Geeta Geeta via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" 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"><div><div style="font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><div><div dir="ltr"><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:ii_19c2e331578d424d7e1" style="max-width: 800px;"><br><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></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></span><br></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></div><div>Geeta.</div></div></div></div>
</blockquote></div></div>