pro go_sunset,sttim,sstimes=sstimes,duration=duration,noisy=noisy

;+
;NAME:
;	go_sunset
;PURPOSE:
;	Driver program for GET_SUNSET to return an array of times to
;	sunset for the sunset immediately following terminator images.
;CALLING SEQUENCE:
;	go_sunset, index, sstimes=sstimes
;	go_sunset, sttim, sstimes=sstimes, duration=duration, noisy=noisy
;INPUT:
;	sttime	- The starting time or time array in any format.
;OPTIONAL KEYWORD INPUT:
;	duration- The number of hours to calculate the sunset time starting
;		  from "sttim".  If it is not passed in, then duration will
;		  default to 0.5 hours
;	noisy	- Print out messages about sunset times
;OUTPUT:
;	sstimes	- The times of the transition from day to night with
;		  a one second accuracy.
;HISTORY:
;	Written 13-Dec-94 by L. Acton
;-

if keyword_set(noisy) then quiet=1
if NOT keyword_set(duration) then duration=0.5 else duration=duration
siz=size(sttim)
sstimes=fltarr(siz(1))
for i=0,siz(1)-1 do begin
   sstimes(i)=get_sunset(sttim(i),duration=duration,quiet=quiet)
endfor
end 

