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

--detrend [boolean flag] Detrend exoplanet data

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

--calib [boolean flag] Perform calibrated

--clean [boolean flag] Remove all files except the original data 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.0.1.tar.gz (28.8 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.0.1-py3-none-any.whl (88.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astrosource-1.0.1.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for astrosource-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ce341ab35c72bb01898a377a83ed7b1a3ac5336d502070e6218921f65f5bbdc0
MD5 8336313fa8260ddcc52dcd464b155fa5
BLAKE2b-256 465ca242182be8f4b458782b6371661df27c99b0cd80cc0a8c0e32b6efe99baf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astrosource-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 88.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for astrosource-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86aecafa00bbdbcf0e8a0547d08a6467913c4c16ea3bf9986640944b9f8438e5
MD5 8c3ceade2b94f306bffb3873d88bc375
BLAKE2b-256 fb8d8a512f3b08834f24384359591de57d37f26cf86c994f670af22f92f737fc

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