<div dir="ltr"><div>You must do a better job of describing your file and intended usage. <br></div><div>ncl-talk should not have to 'guess' about the data.<br></div><div>--</div><div>[1] Rick's suggested approach</div><div><br></div><div>%> cat data_*  DATA.txt</div><div><br></div><div>is appropriate if all the data are to be as one file as ?time? series.<br></div><div>---</div><div>[2]</div><div><div>However, I think these are not randomly located data. <br></div><div>Rather, I speculate teach file represents time series grid point values on a <span style="color:rgb(255,0,0)"><b>0.25</b></span> grid.</div><div><br></div><div>data_30.625_<span style="color:rgb(0,0,255)"><b>73.125 </b></span><br></div><div>data_30.625_<span style="color:rgb(0,0,255)"><b>73.375 </b></span><br></div><div>data_30.625_73.625 <br></div><div>data_31.125_73.125 <br></div><div>data_31.625_73.375</div><div><br></div><div> </div><div>EX: <span style="color:rgb(0,0,255)"><b>73.125+<span style="color:rgb(255,0,0)">0.25</span> => 73.375</b></span></div></div><div>---</div><div>[3]</div><div>Attached is a script that places the variables onto a 0.25 degree grid.</div><div>Please study the script<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 21, 2019 at 2:01 PM Rick Brownrigg via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Since these are simple datasets, without headers/footers, etc., I would use the bash command "cat" to make one big file out of all of the individual files, and then process that. It's a simple matter to read ascii files with NCL and extract individual columns into array variables:</div><div><br></div><div>    <a href="http://ncl.ucar.edu/Applications/read_ascii.shtml" target="_blank">http://ncl.ucar.edu/Applications/read_ascii.shtml</a></div><div><br></div><div>From there, you can find the total number of observations by calling "dimsizes()" on one of the column variables, and then do something like:</div><div><br></div><div>len = dimsizes(rar)  ;;where var is the extracted column 1<br></div><div>my3DVar = new((/len, 3), float)</div><div>my3DVar(:,0) = Var</div><div>my3DVar(:,1) = lon</div><div>my3DVar(:,2) = lat</div><div><br></div><div>If you want to save that to a file, see the various examples at:</div><div><br></div><div>    <a href="http://ncl.ucar.edu/Applications/list_io.shtml" target="_blank">http://ncl.ucar.edu/Applications/list_io.shtml</a></div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 21, 2019 at 1:37 PM Soma Roy via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I have multiple datasets for individual lat lon positions. I want to make a 3-D dataset (lon,lat,Var1) from all the list of files. Var1=Col.1 dataset</div><div><br></div><div>Please give me a hints for the above.</div><div><br></div><div>Sample datasets is attached as zip file.</div><div><br></div><div>Thanks and regards,</div><div>Soma </div></div>
_______________________________________________<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/mailman/listinfo/ncl-talk</a></blockquote></div>
_______________________________________________<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/mailman/listinfo/ncl-talk</a></blockquote></div>