[Numpy-discussion] how to loop read input over various file with same extension in a folder (newbie question)

Sachin Kumar Sharma SSharma84 at slb.com
Thu Mar 24 03:27:28 EDT 2011


BB,

Currently I am reading a text file and storing the output as an array a1, some arithmetic operation on it and plotting it. I want to do the same over 1000 files.
How to loop it and how to store the input in different arrays like a2, a3 and so on.

Also advise what is the best way to TAG or assign a comment to an array to store which file it has read the data.

Cheers

Sachin

************************************************************************
Sachin Kumar Sharma
Senior Geomodeler

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110324/2269d339/attachment.html>


More information about the NumPy-Discussion mailing list