justincely / lightcurve

Turn time-tag spectral data into lightcurves
http://hstlightcurve.readthedocs.io
Other
10 stars 7 forks source link

Change extraction to only get gross and background, calculate the rest #6

Closed justincely closed 10 years ago

justincely commented 10 years ago

There isn't really a need to calculate the net and the background corrected counts in each iteration of the extraction. GROSS and BACKGROUND can be extracted, NET, COUNTS-BGKND, FLUX, etc can be calculated on the fly with the @property decorator.

This would make the class more flexible as well; change the GROSS array and change all the arrays that rely on it automatically.

justincely commented 10 years ago

GROSS, BACKGROUND, MJD, and an array of TIMES are extracted. NET, COUNTS, ERROR are all calculated on the fly