What the hell is up with me today.
We had a great lab meeting, we had my mentor's dogs over, my labmate's dog over, and my friend's 13 week old puppy over, so it was all fun and games.
When it got time for my work, my light curves using normalized flux values were totally off, while the regular flux ratio was totally right. The uncertainties for these flux values were seriously undervalued (~0.001 to 0.002), and I was getting weird wobbles and jiggles when I should be getting the same light curve as a normal flux ratio.
Then I dig into my code starting at like noon-ish and work until now (6).
Instead of normalizing by doing:
Code:
norm = mags(i,h,j)/mean(mags(i,h,*))
I had
Code:
norm = mags(i,h,j)/mean(mags(i,h,j))
So I basically was taking the mean of just 1 value. Then there were huge spikes and dips and weird things to fix and I noticed that I didn't even have particular values properly laid out and began to fix one stupid problem after another.
Now, after coming back from walking Emily's dog with her, I sit down, look at my code and I see
Code:
diffmags(i,h) = <long equation>
I put a stop in my program and started looking around to see where the error was in the equation, and then realized that it was storing the diffmags in i,h instead of i,j.
WHAT THE CRAP is wrong with my brain.
I later also realized that I had taken my usual chair that I would sit in at my desk and was sitting in a fixed chair that we use for keeping documents on when we don't have enough desk space. I come back from talking to my labmate Sarah across the room, and I'm like "Emily why'd you move my chair". She's like "You've been sitting in that chair since the meeting and I was wondering why you did that".
Something is totally wrong with my head today man. I think I need sleep or something.