function norh_gt_day,index,ints=ints ;+ ; NAME: ; norh_gt_day ; ; PURPOSE: ; Return day (UT) of the observation ; Internal format. ; ; CALLING SEQUENCE: ; day=norh_gt_day(index) ; ; INPUTS: ; index: index structure ; ; OPTIONAL INPUT KEYWORDS: ; ints: if defined, return day and time structure ; ; HISTORY: ; Writtern 1998-05-29 TY ; Modified 2000-04-19 TY based on V. Grechnev's suggestion ; ;- mx=n_elements(index) if not keyword_set(ints) then out = index.gen.day else begin out_el = {anytim2ints, time: long(0), day: fix(0)} out=replicate(out_el,mx) out.day = index.gen.day out.time = index.gen.time endelse if mx eq 1 then out=out(0) return,out end