comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Looping through a bunch of files?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Looping through a bunch of files? [message #92864] Tue, 15 March 2016 11:29 Go to previous message
wdolan is currently offline  wdolan
Messages: 29
Registered: June 2015
Junior Member
I am a total beginner, and would very much love any assistance!

So I am looking at .nc files. There is one file for every day of the year, they are all in the same folder called /home/nc_d/, and each file has the same internal structure, and are named in the format gc_daily.20130130, varying based only on the date.

I want to figure out how many files there are for each month, and then loop through all the files of a given month.

I'm not sure where to start!

I've used n_elements to tell how many files are in an array before, but that doesn't seem to apply to files....

Thanks for your help.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Splitting large for loop over multiple processors
Next Topic: Saving/archiving IDL notebook

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:11:00 PDT 2025

Total time taken to generate the page: 0.00296 seconds