Thursday, 3 March 2011

Objects, Pointers, References...oh my!

The last two months have been really slow in my attempts to learn C++. I've had the equivalent of doing "mrdfits" in IDL to read some information (namely, plate, mjd, fiber, ra/dec, redshift) from fits files. It has taken so long for me to figure out how to do it. I finally am seeing the light at the end of the tunnel as I only have a few problems to deal with.

The file I'm reading is 450,000 objects (1.6 Gb) and it seems that CCfits isn't able to read the huge file even though I thought I was just trying to define a reference to the file and not actually read the whole file. The steps I'll take to figure out what's going on is to see how big I can make the file such that it still works. Then, I need to setup everything on Franklin so I can try to run this there, just in case my laptop doesn't have enough memory.

The next thing I need to do is to create objects for each quasar which contain the information and soon will also have functions that compute, for example, the mean flux. I understand, on a cursory level, what an object is, but have yet to understand the method of implementation. Well ... I should get cracking!

No comments:

Post a Comment