Skip to content

Commit be30fd9

Browse files
committed
ccf_orders can take Δfwhm
1 parent 5bb2d24 commit be30fd9

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RvSpectML"
22
uuid = "1f61ac2c-3a1c-440a-925a-2707197041c8"
33
authors = ["Eric B. Ford, Christian Gilbertson, Joe Ninan, Michael L. Palumbo III, Alex Wise, and contributors"]
4-
version = "0.2.1"
4+
version = "0.2.2"
55

66
[deps]
77
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
@@ -58,7 +58,7 @@ Query = "1"
5858
RvSpectMLBase = "0.2"
5959
Scalpels = "0.1"
6060
SpecialFunctions = "1.0, 1.1"
61-
StaticArrays = "1"
61+
StaticArrays = "1"
6262
StatsBase = "0.33"
6363
Stheno = "0.6"
6464
TemporalGPs = "0.3, 0.4, 0.5"

src/pipeline/ccf_orders.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
function 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

src/pipeline/ccf_total.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
function ccf_total(order_list_timeseries::AbstractChunkListTimeseries, line_list_df::DataFrame, pipeline::PipelinePlan; recalc::Bool = false,
2-
output_fn_suffix::String = "", range_no_mask_change::Real=RvSpectMLBase.max_bc, ccf_mid_velocity::Real=0.0, v_step::Real=250.0,
3-
v_max=RvSpectMLBase.max_bc, mask_scale_factor::Real=1, ccf_var_scale::Real=1.0, mask_type::Symbol = :tophat, Δfwhm::AbstractVector{T} = zeros(0),
2+
output_fn_suffix::String = "",
3+
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,
5+
ccf_var_scale::Real=1.0, mask_type::Symbol = :tophat, Δfwhm::AbstractVector{T} = zeros(0),
46
calc_ccf_var::Bool = false, calc_ccf_covar::Bool = false, allow_nans::Bool = false, verbose::Bool = false ) where { T<:Real }
57
if need_to(pipeline,:ccf_total) || recalc
68
if verbose println("# Computing CCF.") end

0 commit comments

Comments
 (0)