Configuration
SPARTA requires two configuration files to be modified:
constants.pyDefines the instrument modes, required reduction steps, reference files, and image processing parameters.planet.cfgContains the light curve fitting parameters.
Data reduction parameters
constants.py
INSTRUMENTSpecifies the instrument to be used (now supportsNIRSpec,NIRCam,MIRI_IMAGE,MIRI_LRS).SUBARRAYDefines the SUBARRAY in use (e.g.,SUB2048,SUB512,SUB256,SUB128,FULL).FILTERDefines the filter in use (e.g., forNIRSpec/PRISM, useCLEAR; forNIRCam, useF322W2orF444W; forMIRI_IMAGE, useF1500Wetc.). Additional filters are under development.REFERENCE_FILESPaths to the calibration reference files (e.g., flat fields, dark). The master directory for all the reference files can be set up byREF_DIR.Users must obtain suitable reference files for the selected instrument and subarray from the JWST CRDS archive and specify the desired file versions.
SKIP_REF/FLAT/SUPERBIAS/EMICORRFlags to skip specific reference file corrections during processing. Set toTrueorFalseas needed.For
MIRI_IMAGE, these steps are skipped by default. We encourage users to experiment with the emicorr step and compare the resulting outputs.
Light curve fitting parameters
planet.cfg
The configuration file specifies both the inference settings and the light curve fitting parameters. Each row defines a parameter with columns:
The first column is the parameter name.
The second column is the parameter type:
free,fixed,independent.PriorTypecan be:U= Uniform (PriorPar1 = lower bound, PriorPar2 = upper bound)LU= Log-Uniform (PriorPar1 = lower log bound, PriorPar2 = upper log bound)N= Normal (PriorPar1 = mean, PriorPar2 = standard deviation)
Parameter |
Description |
|---|---|
|
Sampling engine (e.g., |
|
Number of walkers for |
|
Number of burn-in steps (discarded). |
|
Number of production steps (kept). |
|
Live points for nested sampling. |
|
Bounding strategy ( |
|
NS sampling method ( |
|
Convergence threshold (smaller = stricter). |
|
If |
|
Lower wavelength bound (nm). |
|
Upper wavelength bound (nm). |
|
Integrations to exclude. Should be a list of lists, e.g., [[start1, end1], [start2, end2]…]. |
|
Path to the light-curve data from |
|
Output path for modeled light curve. |
|
Output path for best-fit parameters. |
|
Planet-to-star radius ratio (Rp/Rs) |
|
Planet-to-star flux ratio (secondary-eclipse depth). |
|
Orbital period (days). |
|
Mid-transit epoch (BJD). |
|
Orbital inclination (deg). |
|
Orbital impact parameter. Please ensure commenting out |
|
Scaled semi-major axis (a/Rs). |
|
Eccentricity parameterization term. \(\sqrt{e}cos\omega\) |
|
Eccentricity parameterization term. \(\sqrt{e}sin\omega\) |
|
Secondary-eclipse mid-time (BJD). |
|
Stellar radius. |
|
LD law ( |
|
Limb-darkening coefficient |
|
Stellar baseline flux normalization. |
|
Linear slope. |
|
Exponential ramp amplitude term. |
|
Exponential ramp time scale. |
|
Linear decorrelation vs. detector x-position. |
|
Linear decorrelation vs. detector y-position. |
|
Multiplicative inflation of uncertainties. |