-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed the scripts within the tessilator subdir
- Loading branch information
Showing
4 changed files
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
from tessilator import tessilator | ||
|
||
import numpy as np | ||
import logging | ||
|
||
def main(args=None): | ||
|
||
fluxCon, lcCon, makePlots, fileRef, tFile = tessilator.setup_input_parameters() | ||
conFile, periodFile = tessilator.setup_filenames(fileRef) | ||
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.WARNING) | ||
logging.basicConfig(filename="output.log", level=logging.INFO) | ||
|
||
print("Reading the table and formatting into astropy table structure.") | ||
tTargets = tessilator.read_data(tFile) | ||
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 = tessilator.collect_contamination_data(tTargets, fluxCon, lcCon, | ||
conFile, Rad=Rad) | ||
print("Done calculating the contamination.") | ||
|
||
print("...now iterating over each source.") | ||
tessilator.all_sources_cutout(tTargets, periodFile, lcCon, fluxCon, conFile, | ||
makePlots, choose_sec=None, tot_attempts=2, cap_files=8) | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters