;+
; NAME:
;	vu_vox_drawelatitude
; PURPOSE:
;	Internal use by vu_vox_showeclipgrid only
; CATEGORY:
;	Volume Pro board
; CALLING SEQUENCE:
	FUNCTION vu_vox_drawelatitude, F,ut,zero_lng,lat,cntr,dvox, obj_val
; INCLUDE:
	@compile_opt.pro			; On error, return to caller
; CALLS:
;	gridgen,replicate,cv_coord,round,CvSky
; CALLED BY:
;	vu_vox_showecliperid
; MODIFICATION HISTORY:
;	JUL-2002, Cindy Wang
;-
n = 360
P = gridgen(n, range=-n/2+[0,n-1])

P=replicate(1,3)#P

;P[0,*]:longitude P[1,*]:latitude P[2,*]:radius

P[1,*] = 0
P[2,*] = 1

P = CvSky(ut, from_ecliptic=P, /to_heliographic, /degrees, /silent)
P[0,*] -= zero_lng
P[1,*] += lat

P = cv_coord(from_sphere=P, /to_rect, /degree)
P = round( cntr+P*dvox )

F[P[0,*], P[1,*], P[2,*]] = obj_val

RETURN, F  &  END

