# PEST pipeline configuration file
# note all comment lines start with # and are ignored 
# even if a parameter is not used, do not delete or leave blank
###################################################################################


###################################################################################
# Master switch that will turn off outlier LC plots, detrending, plate-solving, 
# and Gaia checking.
# Yes or yes will result in 'simple' mode. Anything else for the default which is No 
###################################################################################
simple_mode = No


###################################################################################
# Observatory info
###################################################################################

# observatory name will be used in reports, plots and filenames
# Must not contain any spaces
observatory = PEST

# telescope name
telescope = 0.3m

# camera
camera = ST-8XME

# plate scale in arcsec/pixel
scale = 1.233



###################################################################################
# Observer info
###################################################################################

# TESS user name
tess_user = tan


# AAVSO observer code. Put in a dummy code if not used.
aavso_obs_code = TTG

# The signature at the bottom of the observation report. To insert a newline use \n
# If there are any spaces, the whole line must be enclosed in quotes
signature = "TG Tan \nhttp://pestobservatory.com/"


###################################################################################
# Software environment
###################################################################################

# The muniwin Projects directory, where the .pht files are found
proj_dir = /home/tgtan/Public/pestdata/Projects/

# Muniwin catalog directory, where the target XML file is 
catalog_dir = /home/tgtan/Public/pestdata/Catalogs/

# where to put the parameters file for MagPy - makes it easier to do repeat MagPy runs
magpy_param_path = /home/tgtan/Desktop/ 



###################################################################################
# Processing and reporting options
###################################################################################

# Sets whether the date type to be used in reporting is HJD or BJD
# Default is BJD.  Setting to anything other than HJD results in BJD being used
date_type = BJD

# These govern PESTphot's behaviour in auto adding stars to the selection
# Stars are only added if the no of selected stars are < min_stars
# The total number of stars selected will not exceed star_limit
# The number of stars that PESTphot will try to add each time it is run is add_stars 
# set to 0 to turn off
add_stars = 25
min_stars = 20
star_limit = 35 

# the distance in min within which to check for NEBs
proximate_dist = 2.5

# the distance in min out to which to plot on the zoomed finder and on the dmag/SD chart
plot_dist = 2.5

# magnitude to be subtracted from dmag before doing the NEBdepth calc
# allowance for any difference in dmag between observed band and TESS band
dmag_buf = 0.5

# The factor to apply to the outlier identification routine.  1.0 is default
# The smaller the number the more points will be identified as outliers
outlier_threshold = 1.0


# Set to No if you don't want PESTphot to rotate field images so North is up, 
# Yes, or in fact anything else, for the default behaviour which is North up. 
plot_north = Yes


###################################################################################
# Plate solve and Gaia data lookup options
###################################################################################

# Set to No to switch off plate-solving.  Will also switch off production of finder charts,
# proximate star lightcurves, the neighbourhood EB check files, and Gaia checking. 
# Yes, or in fact anything else, for the default behaviour which is to all of above functions.
# *************************************************************************************************
# If you don't need all the fancy products required by TESS, switching this off saves a lot of time!
# *************************************************************************************************
plate_solve = Yes

# Set to No if you don't want PESTphot to check for Gaia stars, eg if working offline
# Yes, or in fact anything else, for the default behaviour which is to check Gaia.
check_gaia = Yes

# max_theta is the max separation in arcsec between the coords of a Gaia star and 
# the plate-solved coords of a detected star for PESTphot to call them the same star. 
max_theta = 4.0

# max_delta_mag is the max diff in magnitude between the g_mag of a Gaia star and 
# the measured magnitude of a detected star for PESTphot to call them the same star. 
max_delta_mag = 2.5


###################################################################################
# Settings for detrending
###################################################################################

# overall switch for detrending.  Set to No to turn off, anything else will be taken as Yes
detrend = Yes

# individual detrend parameters to be used.  Set to No to turn off, anything else will be taken as Yes
# will only have effect if detrend=Yes
# detrend on radial distance from centre of CCD
detrend_rad = Yes
# on FWHM
detrend_fwhm = Yes
# on airmass
detrend_airmass = Yes
# on CCD sky level
detrend_sky = Yes

# turn off plotting of un-detrended and detrended lightcurves. Only relevant if detrending is on.  
# should normally leave this off unless de-bugging, or checking on detrending behaviour
detrend_plots = No


 



