Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

real-time reduction #15

Open
5 tasks
jradavenport opened this issue Mar 18, 2015 · 2 comments
Open
5 tasks

real-time reduction #15

jradavenport opened this issue Mar 18, 2015 · 2 comments

Comments

@jradavenport
Copy link
Member

write a version of autoreduce that does the cal's, and then waits and reduces data in real time as it comes down from the telescope

  • for first pass, copy autoreduce functionality. assume user takes calibration files first
  • decide if want to do both RED and BLUE? Wouldn't be too hard...
  • instead of looping over images in list, do while loop or similar
  • when new image arrives, read in, reduce it, output results
  • if new HeNeAr image comes in, update wavelength solution
@jradavenport
Copy link
Member Author

After talking with @kolbylyn, realized we need to put in a bit of extra caution because files come in slowly from TUI and may be incomplete when PyDIS tries to read them.

I tested this w/ astropy.io.fits.open(), and if you give it an incomplete file it returns an IOError. Thus we need to include a Try-Except test, something like this:

while ...
# look for new files, if found, then do this
try:
    hdulist = fits.open('new_img.fits')
except IOError:
    print('nope')

@jradavenport
Copy link
Member Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant