A Python module for fetching and plotting astronomical data of stars from AAVSO
Project description
AAVSO Query
This Python package aavsoquery allows fetching and visualising astronomical observational data from the AAVSO (American Association of Variable Star Observers) database. It provides tools to retrieve data, plot light curves, and optionally fit models to the observed data.
Features
- Data Fetching: Fetch observational data for a specific star including visual observations.
- Light Curve Plotting: Plot light curves with customizable time intervals.
- Model Fitting: Optional fitting of Gaussian models to the light curve data.
Installation
You can install aavsoquery via pip:
pip install aavsoquery
Usage
Here is an example of how to use aavsoquery:
from aavsoquery import AAVSODataFetcher, Plotter
fetcher = AAVSODataFetcher(
star_name='T CrB',
obs_types='vis',
num_results=100,
pages=1
) # query by star's name (Example: T CrB), ability to fetch by a particular observer by obscode = 'Observer's code'
julian_dates, magnitudes = fetcher.fetch_and_parse_data(
include_uncertain=True) # you can exclude uncertain values that begins with <
if len(julian_dates) > 0 and len(magnitudes) > 0: # if data fetched then plot it
plotter = Plotter(julian_dates, magnitudes)
plotter.plot_light_curve(interval_hours=1,
fit_model=True) # ability to fit a simple gaussian model, also defaults to mean hourly data if more datapoints present
else:
print("No data available to plot.")
Dependencies
- requests
- beautifulsoup4
- numpy
- matplotlib
- lmfit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aavsoquery-1.0.2.tar.gz.
File metadata
- Download URL: aavsoquery-1.0.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d45c8be992ce55082b454b895c5bf932a7da83540a614de6b68b15a5d12e50a
|
|
| MD5 |
accc9bff8dcf19b678069584da46d6dd
|
|
| BLAKE2b-256 |
a83c74876dfb605bb63154ab3e8596840adee8732b42048a53dcff38d60effb5
|
File details
Details for the file aavsoquery-1.0.2-py3-none-any.whl.
File metadata
- Download URL: aavsoquery-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
467b9f3916e2ebae693ee64ba2e2a08ca52b0844d29888b2ee40966315588fbc
|
|
| MD5 |
663fc5292a70bf2c4197797e0fdaeeb8
|
|
| BLAKE2b-256 |
f71d213c2998efa7b4b733731c77ec7012f1df9d050e9813253a6eefe826008f
|