StellarCartography / pydis

DEPRECATED: Check out PyKOSMOS!
https://github.com/jradavenport/pykosmos
MIT License
43 stars 27 forks source link

Deal with Overscan region #32

Closed jradavenport closed 8 years ago

jradavenport commented 9 years ago

Charli Sakari's comment via email:

If I want to use an overscan region for the bias instead of having a bias frame, is there a way to deal with that?

jradavenport commented 9 years ago

started to scheme this out. need to test it.

also important to consider: how to deal with trimsec and overscan?

Thinking bigger-picture rewrite should have the data become a class, not just a numpy array. It could carry around with it all the parameters we care about seamlessly... for example:

img = pydis.OpenImg("file.fits")

data = img.data
airmass = img.airmass
exptime = img.exptime
wavelength_approx = img.wavelength

# and something like this would be possible and seamless
trim = img.trim
trimsec = img.trimsec
biassec = img.overscan