Skip to main content

Analysis script for sources with variability in their brightness

Project description

astrosource

Analysis script for sources with variability in their brightness. The package was formerly called autovar but this clashes with an existing Python package.

Installation

It is strongly recommended you use python 3 and a virtual environment

Using the Anaconda distribution of Python:

conda create -n astrosource python=3
source activate astrosource

The package is available on PyPi and can be installed with pip.

pip install astrosource

Install development version

If you need to install the development branch, download from GitHub and from the root of the repo, run:

cd astrosource
pip install .

or directly with the setup script

cd astrosource
python setup.py install

Usage

There are a few input options when running the scripts. You can either run the whole analysis at once or the individual stages.

--ra [required parameter] Right Ascension of the target (in decimal)

--dec [required parameter] Declination of the target (in decimal)

--target-file [required parameter]

--indir [parameter] Path of directory containing LCO data files. If none is given, astrosource assumes the current directory

--format [parameter] input file format. If not fz, fits, or fit assumes the input files are photometry files with correct headers. If image files given, code will extra photometry from FITS extension. Defaults to fz.

--stars [boolean flag] Step 1: Identify and match stars from each data file

--comparison [boolean flag] Step 2: Identify non-varying stars to use for comparisons

--calc [boolean flag] Step 3: Calculate the brightness change of the target

--phot [boolean flag] Step 4: Photometry calculations for either differential or calibrated

--plot [boolean flag] Step 5: Produce lightcurve plots

--full [boolean flag] Run the whole code. This will run the following steps in this order stars > comparison > calc > phot > plot

Extra options

--verbose [boolean flag] Show all system messages for AstroSource

--detrend [boolean flag] Detrend exoplanet data

--eebls [boolean flag] EEBLS - box fitting to search for periodic transits

--calib [boolean flag] Perform calibrated

--imgreject [float] Image fraction rejection allowance. Defaults to 0.0. Increasing this will allow AstroSource to reject some of your data files if there are not enough comparison stars.

--clean [boolean flag] Remove all files except the original data files, and photometry files

Example Usage

astrosource --ra 154.9083708 --dec -9.8062778 --indir /path/to/your/data --full

All the files generated will be stored in the directory you specify in --indir

Tests

If you are developing this package, you will want to run the tests. You will need pytest installed and then, from the astrosource directory within this repo, run:

pytest

To suppress the warning messages use:

pytest --disable-pytest-warnings

You may also want to install this in developer mode

python setup.py develop

Authors

Written by Michael Fitzgerald and Edward Gomez

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astrosource-1.3.7.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astrosource-1.3.7-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

File details

Details for the file astrosource-1.3.7.tar.gz.

File metadata

  • Download URL: astrosource-1.3.7.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for astrosource-1.3.7.tar.gz
Algorithm Hash digest
SHA256 1860cd0e21df967ab3afe40fdec5a31024b0929b01bf3c3d64f8fa67c1ce3b0d
MD5 89d66f7084feba47b71aacd3564451f2
BLAKE2b-256 f49db1bf9d024d9d5d41ba09d52676f25911955681ed86df207474de9886d272

See more details on using hashes here.

File details

Details for the file astrosource-1.3.7-py3-none-any.whl.

File metadata

  • Download URL: astrosource-1.3.7-py3-none-any.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for astrosource-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 be648d99a76517814efaf545beaca73f508be05ba91f414778316ad9127cce59
MD5 907f705cfa7bac22d737195477c6a5f1
BLAKE2b-256 ca70f9779c4adb6a1acf3bf8d3c90e4ecc2f2d745181af9425568051bc9d6f99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page