;+ ; ; ;INPUTS: ;- unix_in: a double precision array in UNIX time, of the times you want to know if the MAVEN is in Mars shadow or not. NOTE: ; this array must be the same array you used to obtain maven position, from mvn_lpw_anc_spacecraft. ; ;OUTPUTS: ;tplot variable containing shadow information for MAVEN: ;- mvn_lpw_anc_mvn_mars_shadow, 1=in shadow, 0=sunlit ; ;- ; pro mvn_lpw_anc_boom_mars_shadow, unix_in proname = 'mvn_lpw_anc_boom_mars_shadow' tnames = tnames() ;list of tplot variables in memory if total(strmatch(tnames, 'mvn_lpw_anc_mvn_pos_mso')) eq 0. then begin print, proname, ": #### WARNING #### : maven position information not found. Please run mvn_lpw_anc_spacecraft first. Skipping." retall endif ;To first order, take the MSO radius. If this is