Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Nov 2005
    Location
    Virgil, NY
    Posts
    4,085

    Default UserActions ImageEnd() function for converting JD-->HJD

    Here's a javascript code block you can put into the ImageEnd() function of UserActions.wsc that will add two additional keywords and values to the FITS header of each image: the geocentric JD of the midpoint of the exposure, and the heliocentric JD (with respect to UTC) of the midpoint of the exposure. This does not compute the barycentric JD.

    I've used this algorithm for many years outside of ACP. The computation has an accuracy of a few seconds or better, given the RA and DEC of the target and the UTC date/time of the start of the exposure.

    For the moment, I have misplaced the original reference for the algorithm - possibly one of Meeus' algorithm books, or Arne Henden's Astronomical Photometry book. I'll provide the reference if I find it. In the meantime, there's some information on Wikipedia:
    https://en.wikipedia.org/wiki/Heliocentric_Julian_Day

    I will also rewrite and repost this code in VBS so it can be used with the VBS version of UserActions.wsc.

    EDIT: Here are both versions - one for either the JS or the VBS version of UserActions.wsc.
    Attached Files Attached Files
    Last edited by Dick Berg; Jul 31, 2015 at 00:28. Reason: included both JS and VB versions
    Dick
    www.VirgilObservatory.us
    Pier-mounted Meade 12-inch SCT "classic"
    w. focal reducer to f/5.3 ~ FL 1630mm
    Optec TCF-S focuser
    SBIG CFW-8A and ST7-XME
    FOV ~ 15' x 10'
    H-alpha, BVRI, RGB & Clear filters
    MaxIm and, of course, ACP!
    AAVSO Code: BRIC

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. A function I really would like!
    By Per Frejvall in forum Pre-Sales Technical Questions and Help
    Replies: 6
    Last Post: Nov 17, 2014, 15:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •