Skip to content

Instantly share code, notes, and snippets.

@rukku
Created March 8, 2017 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rukku/3b786ff8ea887325f4b94ca38ebcbcde to your computer and use it in GitHub Desktop.
Save rukku/3b786ff8ea887325f4b94ca38ebcbcde to your computer and use it in GitHub Desktop.
def expTime(smd, v, h):
if smd == 1 or smd == 3:
exposureTime = (v * 525 + h) * 0.00006356
else:
exposureTime = (0.03337 * v) + (524 - h) * (0.00006356) + \
(float(487) / float(780)) * (0.00006356)
return exposureTime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment