Title: Signature.html
I'm writing my second Python program. It's about 120 lines right now. In this round (#2), I've begun to use OOP too help matters.  Round #1 was about changing file names to better reflect time/date data. The program examines meteor track data. Basically, it tries to examine x,y pixels and the amplitude of the signal at those points. This is a totally exploratory program. I've been trying to get to this point for awhile, and this is where the fun really begins, doing analysis. I'm more or less charging along adding new thoughts as I go. However, I thought I'd let others take a look at the code, if interested. There may be pointers that I could use, and I don't want to get too far a field and have to back into them.

Perhaps at the top of my list is the use of self. I sure get tired of using it. Maybe there's a short cut. Although I've organized the file data into records, I still find subscripting fields and data a bit unpleasing. For example, I used a list of tuples, but I'd list to represent items by names rather than indicies to enhance readability. Perhaps I should be deleting some objects as I go along?

I'm pretty close to enlisting matplotlib or maybe gnuplot, so that may impact what I'm doing style wise or object wise (list, tuples, ...).  For the moment, I'll probably exercise scatter and histograms. Eventually matlablib may come into play.

In any case, here's a rough idea of what the program does.

Reads txt files with alpha data in each line.

The first line is a header, which can be ignored. The second line is empty, then comes the data--five columns of it.

As I go along, I accumulate the data with the Stats class. At the end of a file, the Stats object is used to retrieve and compute various quantities.

There really is no user interface. It just produces statistics and perhaps plots. A GUI is down the line quite a ways if I allow images to be examined by the user.  For example, marking up the image or isolating areas of interest.

If anyone wants to critique what I have, just ask for a copy. I'll send you a copy (files, output?) of this rapidly changing program. However, I suspect my initial exploration will cease by mid-week. It's already providing useful data, so I may want to give it a rest before really getting deep into it.
--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
            
           "Truth is mighty and will prevail. There is nothing wrong
            with this, except that it ain't so."   -- Mark Twain
            
                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to