;+ ;FUNCTION: angle_to_bins(dat,an,EBIN=ebin) ;INPUT: ; dat: structure, 2d data structure filled by get_eesa_surv, get_eesa_burst, etc. ; an: fltarr(2), 2D - min,max pitch angle limits (0-360 deg) ; fltarr(2,2), 3D - array of (theta,phi) angle values ; theta min,max (0,0),(1,0) -90