Catalog PyPI
PACKAGE EXPLORERView in registry

aavsoquery

PyPI

A Python module for fetching and plotting astronomical data of stars from AAVSO

Versions collected1
Direct dependencies5From release 1.0.2
Last observed20 Oct, 17:06 UTC

README

Version 1.0.2 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.224 Apr 20255

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
prashant050701/aavso_query

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:06 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6f8a6884932d249cd6c0ddfc4b3d06d40e411772a98ed877d67be6b87e1406bb