Skip to main content

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

Metadata

Release files for aavsoquery 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aavsoquery 1.0.2
File Size Uploaded Provenance
aavsoquery-1.0.2.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aavsoquery 1.0.2
File Interpreter ABI Platform
aavsoquery-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / aavsoquery-1.0.2.tar.gz

Download URL aavsoquery-1.0.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7d45c8be992ce55082b454b895c5bf932a7da83540a614de6b68b15a5d12e50a
BLAKE2b-256 checksum
How to use checksums
a83c74876dfb605bb63154ab3e8596840adee8732b42048a53dcff38d60effb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Release files / aavsoquery-1.0.2-py3-none-any.whl

Download URL aavsoquery-1.0.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
467b9f3916e2ebae693ee64ba2e2a08ca52b0844d29888b2ee40966315588fbc
BLAKE2b-256 checksum
How to use checksums
f71d213c2998efa7b4b733731c77ec7012f1df9d050e9813253a6eefe826008f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.0

Security for aavsoquery 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page