<div><div dir="auto">Hi Rashed,</div></div><div dir="auto"><br></div><div dir="auto">I’m using addfiles to add all of the files, but I want to take the 384 hours of Data and make one array that has the hourly data concatenated for each latitude and longitude. </div><div dir="auto"><br></div><div dir="auto">As far as I can see, loops are the only way to go. I just need a lot of memory to pull it off.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 22, 2019 at 8:02 AM Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com">rashidcomsis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Micah,</div><div>Did you try using the addfiles function in NCL:</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml</a></div><div><br></div><div>For example:</div><div>
<pre>   fils = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml" target="_blank"><strong>systemfunc</strong></a> ("ls *.nc") ; file paths
   f    = <strong>addfiles</strong> (fils, "r")  </pre>

</div><div><br></div><div>You would need to make sure that "ls *.nc" results in the correct order with respect to time and day.</div><div><br></div><div>Cheers,</div><div>Rashed<br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 21, 2019 at 1:53 PM Micah Sklut via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></div><div class="gmail_quote"><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">Hi, <div><br></div><div>I have a task to take GFS data and concatenate variables across all the forecast hours, for each grid point. </div><div><br clear="all"><div>For example, taking a temperature variable for each grid point, for all latitude and longitudes, and creating a string that represents the values for each forecast hour. </div><div>So, if we have for latitude y, and longitude x, there would be a string value like "70.5,71.5,71.5,72.0,...nHours".  The end product will be a line for each grid point for the variables i"m looking at that will be written to a file to be imported into a database. </div><div><br></div><div>Creating loops through all hours, latitudes, and longitudes will get the job done, but is expensive and was looking to see if there were any NCL functions that would help here. </div><div><br></div><div>Thank you. </div><div><br></div></div></div></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<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>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Micah Sklut<br><br></div>