cmillion / gPhoton

The GALEX photon database and tools project.
Other
21 stars 11 forks source link

Add option to create FITS data cubes using only those frames that have full coverage. #54

Open scfleming opened 10 years ago

scfleming commented 10 years ago

It would be nice to have the option to only create FITS frames in the data cubes for those intervals that have "full" data in them. There can be a few ways to define this, probably the simplest is some sort of coverage threshold. E.g., if a frame only has 10 seconds of data and I ask for a 30 second frame I would like to have that frame not included in my output FITS data cube. But if it has 27 seconds of coverage, I would like it. So maybe the parameter accepts some fraction like this above which frames will be included in the data dube, and it defaults to 0% so that ever frame is included that has at least one photon event in it.

cmillion commented 10 years ago

Ok. Should this be sensitive to the distinction between raw vs. effective exposure time? In general, expt_eff ~= 0.8*expt_raw due mostly to dead time.

scfleming commented 10 years ago

Open to interpretation…my primary reason for the request was to avoid the situation where you make a movie, but because we now use fixed-width bins there are frames that straddle a gap in the eclipses and you get partial bins…maybe an even simpler method would be not to calculate an effective fill factor of a bin, but just ask if the bin starts before the first data point in a set of observations or ends after the last data point in a set of observations, where "set of observations" is defined reasonably.

scfleming commented 10 years ago

Also I would definitely assign this to v>1.1 !