Skip to content

About providing variable transit duration for in/out transit flux difference test. #48

@priyashmistry

Description

@priyashmistry

I was testing LATTE on some TESS targets, and In/Out Transit Flux Difference test seems to be creating inappropriate results, while rest of the tests gave quite good outputs. I checked the source code of LATTE and here it seems to be the problem,

LATTEutils.py, Line 7692:

intr = abs(T0-t) < 0.25  # create a mask of the in transit times
oot = (abs(T0-t) < 0.5) * (abs(T0-t) < 0.3)  # create a mask of the out of transit times

Why you are assuming constant transit duration for every test, and that is also that huge (0.25 + 0.25 = 0.5 days) ? Most of the targets I studied till now has transit duration less than 0.1 - 0.2 days.

Suggestion: Instead of fixing the transit duration you can define new variable (duration) in the function like this,

def plot_in_out_TPF(tic, indir, X4_list, oot_list, t_list, intr_list, T0_list, tpf_filt_list, args, duration):
        ...
        ...
        ...
        intr = abs(T0-t) < (duration/2 + 0.002)  # create a mask of the in transit times
        oot = (abs(T0-t) < 0.5) * (abs(T0-t) > (duration/2 + 0.002))  # create a mask of the out of transit times

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions