box-least-squares
Box Least Squares (BLS) periodogram for detecting transiting exoplanets and eclipsing binaries. Use when searching for periodic box-shaped dips in light curves. Alternative to Transit Least Squares, available in astropy.timeseries. Based on Kovács et al. (2002).
npx skills add majiayu000/claude-skill-registry --skill box-least-squares --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Box Least Squares (BLS) Periodogram The Box Least Squares (BLS) periodogram is a statistical tool for detecting transiting exoplanets and eclipsing binaries in photometric time series data. BLS models a transit as a periodic upside-down top hat (box shape) and finds the period, duration, depth, and reference time that best fit the data. ## Overview BLS is built into Astropy and provides an alternative to Transit Least Squares (TLS). Both search for transits, but with different implementations and performance characteristics. **Key parameters BLS searches for:** - Period (orbital period) - Duration (transit duration) - Depth (how much flux drops during transit) - Reference time (mid-transit time of first transit) ## Installation BLS is part of Astropy: ```bash pip install astropy ``` ## Basic Usage ```python import numpy as np import astropy.units as u from astropy.timeseries import BoxLeastSquares # Prepare data # time, flux, and flux_err should be numpy arrays or Quantities t = time * u.day # Add units if not already present y = flux dy = flux_err # Optional but recommended # Create BLS object model = BoxLeastSquares(t, y, dy=dy) # Automatic period search with specified duration
- Overview
- Installation
- Basic Usage
- Using autopower vs power
- autopower: Automatic Period Grid
- power: Custom Period Grid
- Objective Functions
- 1. Log Likelihood (default)
- 2. Signal-to-Noise Ratio (SNR)
- Complete Example
- Peak Statistics for Validation
- Period Grid Sensitivity
- Comparing BLS Results
- Phase-Folded Light Curve
pip install astropy pip install astropy numpy matplotlib pip install lightkurve
What does the box-least-squares skill do?
Box Least Squares (BLS) periodogram for detecting transiting exoplanets and eclipsing binaries. Use when searching for periodic box-shaped dips in light curves. Alternative to Transit Least Squares, available in astropy.timeseries. Based on Kovács et al. (2002).
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill box-least-squares --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
