lcurvemaker

0
9 месяцев назад
9 месяцев назад
9 месяцев назад
9 месяцев назад
9 месяцев назад
README.md

lcurvemaker

Python code for working with light curves of variable stars

en ru

Dependencies

Installation

or

Usage

python plot_merged_phase_data.py [-v] [-l] [-s] [-c RA DEC] [-p PERIOD] [-e EPOCH] [-r MIN MAX] [-o] [-z] [-m] [-t PLOT] nickname [savedir]

Positional arguments

nickname
is an alias of the object, optionally with the directory name. It is used to search for files and assign names to data processing products.

savedir
set default directory for saving plots (optional).

The script will search for a settings file named

nickname.json
in the
objects
directory. It should not contain spaces.

Options

  • -h, --help
    show help message and exit
  • -v, --verbose
    be more verbose
  • -l, --lines
    draw lines on the light curve and phase plot to mark the epoch, maximum value, and max/min phase
  • -s, --show
    show interactive plots instead of saving figures
  • -c RA DEC, --coord RA DEC
    set the coordinates of the object in degrees
  • -p PERIOD, --period PERIOD
    set the period for phase plot in days
  • -e EPOCH, --epoch EPOCH
    set the epoch for phase plot in HJD
  • -r MIN MAX, --ztfran MIN MAX
    delete all ZTF data out of range
  • -o, --localps
    use local PS1 data instead of requesting it via the API
  • -z, --zoom
    use settings for zoomed plot
  • -m, --model
    draw a simple light curve model
  • -t, --plot
    what data to plot. Possible values are: zt ps as at cs ga og gd

Examples

Result:

To iterate over number of objects:

for PowerShell:

Object settings files

The settings for the object are located in a JSON file. sample.json contains most of the possible settings.

Basic settings for an object with

References for files in the
data
and
lc
directories

Variable stars studied with lcurvemaker: data tables and light curves

Examples of light curves (presented in the VSX detail sheets)

Eclipsing binaries

Cataclysmic variables

Pulsating variables

Image optimization applied