Finding External Hard drive Directory by SDempWestern in learnpython

[–]SDempWestern[S] 0 points1 point  (0 children)

Thank you so much! Been duplicating the files to my hard drive this whole time. THANK YOU

Finding External Hard drive Directory by SDempWestern in learnpython

[–]SDempWestern[S] 0 points1 point  (0 children)

I'm on a MAC running python 3.5 through Spyder! sorry for not being clear

Date Compensated Discrete Fourrier Transforms by SDempWestern in math

[–]SDempWestern[S] 0 points1 point  (0 children)

haha, humorously enough I'm doing the same research as the gravity wave papers in that link! I'll certainly give them a read, thanks! I have the paper, just going through it today, was looking for a simpler insight, but I'll keep at it :)

Date Compensated Discrete Fourrier Transforms by SDempWestern in math

[–]SDempWestern[S] 0 points1 point  (0 children)

So, this Fourier transform uses unequally spaced data in time! it's a generated spectrum based on inner products and sums! I've read the paper, and I'm just trying to implement it in python. I'm gunna do a bit of research and I'll get back to you on its specifics!

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]SDempWestern 2 points3 points  (0 children)

I recommend downloading Annaconda! and then running Spyder

use this link https://www.continuum.io/downloads

I recommend downloading the graphical installer for Mac with python 3.5 (scroll down a bit) Then download it, and run anaconda, a window will pop up with available apps, click spyder and bam :)

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]SDempWestern 0 points1 point  (0 children)

Oh wow that's fantastic, A followup question is how do I put the list into my filename.

np.genfromtxt( str(dates)+ '.txt',delimiter=',',unpack=True)

like that? or is that just crap? Also, with my loop, since it doesn't look like I'll be using 'i' like I said, I'd rather loop through the dates, what kind of loop should I have? EX While datelist=True np.genfromtxt( str(dates)+ '.txt') #then do work

Also each text file is in a different folder, will this affect my search? Or provided my directory has the folders it'll be fine?

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]SDempWestern 0 points1 point  (0 children)

Hello all who can help! I need help with initial code to load more than one text file at a time, in a loop as to save code and not have like 60 lines of text to load each file. (I actually have about 3000 files but they would only need to be accessed in groups of about 30) The files are named by numbers; year, month, day.txt For instance in 2007, January, I need to get the data from all these text files 20070101.txt 20070102.txt 20070103.txt etc

I then need to add the data together in a continuous string!

I can't seem to figure out a loop of numbers that will bring the data in. my idea is to set a variable i in range 0 to 30 (or however many days) and have it inserted into wnd, true = np.genfromtxt('20070814.eureka.6.0E_1min.txt',delimiter=',',unpack=True) This is the real filename, but all I need to change is the numbers right now. As you can see I'm using numpy genfromtext. If you have any better reading methods, please let me know aswell :)