Is there a way to read the guider exposure duration?

Discussion in 'Scripting and Programming' started by Mike Poitter, Nov 30, 2016.

  1. Mike Poitter

    Mike Poitter Cyanogen Customer

    Joined:
    Oct 20, 2014
    Messages:
    30
    Hello Scripters:

    I've written a Python script to automate taking object and calibration spectra using a Shelyak LHiRes III spectrometer. When I take a calibration spectrum using the instrument's internal calibration source I need to turn the autoguider off (camera.GuiderStop). Once that image is finished I need to turn the autoguider back on - but I need to give it an exposure duration time (camera.GuiderTrack(duration)). But I don't see a way to read the duration before stopping so that I can re-use that value after re-starting. I don't see anything in the documentation that might provide a work-around. Any ideas?

    Thanks!
    Mike Potter
     
  2. Doug

    Doug Staff Member

    Joined:
    Sep 25, 2014
    Messages:
    3,527
    Scripted and manual operations are designed to be as independent as possible, so as to avoid weird side-effects. There is no mechanism to read a UI exposure value from a script.

    One workaround would be to look at the FITS header of a guider exposure.
     
  3. Mike Poitter

    Mike Poitter Cyanogen Customer

    Joined:
    Oct 20, 2014
    Messages:
    30
    Excellent idea! Thanks!

    Mike
     

Share This Page