11function ccf_orders (order_list_timeseries:: AbstractChunkListTimeseries , line_list_df:: DataFrame , pipeline:: PipelinePlan ; verbose:: Bool = false , calc_ccf_var:: Bool = false , recalc:: Bool = false ,
22 orders_to_use = RvSpectMLBase. orders_to_use_default (order_list_timeseries. inst),
33 range_no_mask_change:: Real = RvSpectMLBase. max_bc, ccf_mid_velocity:: Real = 0.0 ,
4- v_step:: Real = 250.0 , v_max= RvSpectMLBase. max_bc, mask_scale_factor:: Real = 1 , mask_type:: Symbol = :tophat , allow_nans:: Bool = false )
4+ v_step:: Real = 250.0 , v_max= RvSpectMLBase. max_bc, mask_scale_factor:: Real = 1 ,
5+ mask_type:: Symbol = :tophat , Δfwhm:: AbstractVector{T} = zeros (0 ),
6+ allow_nans:: Bool = false ) where { T<: Real }
57
68 if need_to (pipeline, :ccf_orders ) || recalc # Compute order CCF's & measure RVs
79 if mask_type == :tophat
@@ -23,10 +25,10 @@ function ccf_orders(order_list_timeseries::AbstractChunkListTimeseries, line_li
2325 tstart = now () # Compute CCFs for each order
2426
2527 if calc_ccf_var
26- (order_ccfs, order_ccf_vars ) = EchelleCCFs. calc_order_ccf_and_var_chunklist_timeseries (order_list_timeseries, ccf_plan)
28+ (order_ccfs, order_ccf_vars ) = EchelleCCFs. calc_order_ccf_and_var_chunklist_timeseries (order_list_timeseries, ccf_plan, Δfwhm = Δfwhm )
2729 set_cache! (pipeline,:ccf_orders , (order_ccfs = order_ccfs, order_ccf_vars = order_ccf_vars, v_grid= v_grid) )
2830 else
29- order_ccfs = EchelleCCFs. calc_order_ccf_chunklist_timeseries (order_list_timeseries, ccf_plan)
31+ order_ccfs = EchelleCCFs. calc_order_ccf_chunklist_timeseries (order_list_timeseries, ccf_plan, Δfwhm = Δfwhm )
3032 set_cache! (pipeline,:ccf_orders , (order_ccfs = order_ccfs, v_grid= v_grid) )
3133 end
3234 if verbose println (" # Order CCFs runtime: " , now ()- tstart) end
0 commit comments