Skip to content

Commit

Permalink
adding the new run_tess_cutouts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbinks committed May 14, 2024
1 parent f0965ff commit f7ad019
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions run_tess_cutouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@
fluxCon, lcCon, makePlots, fileRef, tFile = tessilator.setup_input_parameters()
periodFile = tessilator.setup_filenames(fileRef)

Rad, SkyRad = 1.0, np.array([6.0,8.0])
gaia_sys = True

logging.basicConfig(filename="output.log", level=logging.INFO)

print("Reading the table and formatting into astropy table structure.")
print(tFile)
tTargets = tessilator.read_data(tFile, gaia_sys=gaia_sys, type_coord='icrs')
print("Done reading the table and formatting.")

#print("...now calculating the contamination.")
#tTargets, conDir = tessilator.collect_contamination_data(tTargets, fluxCon, conFile, fileRef, Rad=Rad)
#print("Done calculating the contamination.")

print("...now iterating over each source.")
tessilator.all_sources_cutout(tTargets, periodFile, lcCon, fluxCon,
makePlots, fileRef, Rad=Rad, choose_sec=None, save_phot=True, cbv_flag=False, store_lc=True, tot_attempts=10, cap_files=10, fix_noise=False)
print(f"Reading the table and formatting into astropy table structure for {tFile}")
tTargets = tessilator.read_data(tFile, gaia_sys=True, type_coord='icrs')
print("Done reading the table and formatting...now iterating over each source.")
tessilator.all_sources_cutout(tTargets, periodFile, lcCon, fluxCon, makePlots,
fileRef, gaia_sys=True, xy_pos=(10.,10.),
ap_rad=1., sky_ann=(6.,8.), fix_rad=False,
n_cont=5, cont_rad=10., mag_lim=3.,
choose_sec=[42,43,44], save_phot=True, cbv_flag=False,
store_lc=True, tot_attempts=10, cap_files=10,
res_ext='results', lc_ext='lc', pg_ext='pg',
fits_ext='fits', keep_data=True, fix_noise=False,
shuf_per=True, shuf_ext='shuf_plots',
make_shuf_plot=True)

0 comments on commit f7ad019

Please sign in to comment.