[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XE3T06SCZSE0A6P908YY1Z":3,"skill-same:01M6XE3T06SCZSE0A6P908YY1Z":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":13,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6XE3T06SCZSE0A6P908YY1Z","box-least-squares",null,"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).","Waaaalnut\u002Fskillsbench","Waaaalnut","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F103995656?v=4","01M6XCS9K1V51EY3JMB7DGMX24","01M6XCS9Q4WPW88W62C55G1H44",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fexoplanet-detection-period\u002Fenvironment\u002Fskills\u002Fbox-least-squares\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"box","box least squares","timeseries","astropy","use","periodic","exoplanets","transit","detecting","for","transit least squares","when","curves","2026-11-10 10:12:30",false,"---\nname: box-least-squares\ndescription: 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).\n---\n\n# Box Least Squares (BLS) Periodogram\n\nThe 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.\n\n## Overview\n\nBLS is built into Astropy and provides an alternative to Transit Least Squares (TLS). Both search for transits, but with different implementations and performance characteristics.\n\n**Key parameters BLS searches for:**\n- Period (orbital period)\n- Duration (transit duration)\n- Depth (how much flux drops during transit)\n- Reference time (mid-transit time of first transit)\n\n## Installation\n\nBLS is part of Astropy:\n\n```bash\npip install astropy\n```\n\n## Basic Usage\n\n```python\nimport numpy as np\nimport astropy.units as u\nfrom astropy.timeseries import BoxLeastSquares\n\n# Prepare data\n# time, flux, and flux_err should be numpy arrays or Quantities\nt = time * u.day  # Add units if not already present\ny = flux\ndy = flux_err  # Optional but recommended\n\n# Create BLS object\nmodel = BoxLeastSquares(t, y, dy=dy)\n\n# Automatic period search with specified duration\nduration = 0.2 * u.day  # Expected transit duration\nperiodogram = model.autopower(duration)\n\n# Extract results\nbest_period = periodogram.period[np.argmax(periodogram.power)]\nprint(f\"Best period: {best_period:.5f}\")\n```\n\n## Using autopower vs power\n\n### autopower: Automatic Period Grid\n\nRecommended for initial searches. Automatically determines appropriate period grid:\n\n```python\n# Specify duration (or multiple durations)\nduration = 0.2 * u.day\nperiodogram = model.autopower(duration)\n\n# Or search multiple durations\ndurations = [0.1, 0.15, 0.2, 0.25] * u.day\nperiodogram = model.autopower(durations)\n```\n\n### power: Custom Period Grid\n\nFor more control over the search:\n\n```python\n# Define custom period grid\nperiods = np.linspace(2.0, 10.0, 1000) * u.day\nduration = 0.2 * u.day\n\nperiodogram = model.power(periods, duration)\n```\n\n**Warning**: Period grid quality matters! Too coarse and you'll miss the true period.\n\n## Objective Functions\n\nBLS supports two objective functions:\n\n### 1. Log Likelihood (default)\n\nMaximizes the statistical likelihood of the model fit:\n\n```python\nperiodogram = model.autopower(0.2 * u.day, objective='likelihood')\n```\n\n### 2. Signal-to-Noise Ratio (SNR)\n\nUses the SNR with which the transit depth is measured:\n\n```python\nperiodogram = model.autopower(0.2 * u.day, objective='snr')\n```\n\nThe SNR objective can improve reliability in the presence of correlated noise.\n\n## Complete Example\n\n```python\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport astropy.units as u\nfrom astropy.timeseries import BoxLeastSquares\n\n# Load and prepare data\ndata = np.loadtxt('light_curve.txt')\ntime = data[:, 0] * u.day\nflux = data[:, 1]\nflux_err = data[:, 3]\n\n# Create BLS model\nmodel = BoxLeastSquares(time, flux, dy=flux_err)\n\n# Run BLS with automatic period grid\n# Try multiple durations to find best fit\ndurations = np.linspace(0.05, 0.3, 10) * u.day\nperiodogram = model.autopower(durations, objective='likelihood')\n\n# Find peak\nmax_power_idx = np.argmax(periodogram.power)\nbest_period = periodogram.period[max_power_idx]\nbest_duration = periodogram.duration[max_power_idx]\nbest_t0 = periodogram.transit_time[max_power_idx]\nmax_power = periodogram.power[max_power_idx]\n\nprint(f\"Period: {best_period:.5f}\")\nprint(f\"Duration: {best_duration:.5f}\")\nprint(f\"T0: {best_t0:.5f}\")\nprint(f\"Power: {max_power:.2f}\")\n\n# Plot periodogram\nimport matplotlib.pyplot as plt\nplt.plot(periodogram.period, periodogram.power)\nplt.xlabel('Period [days]')\nplt.ylabel('BLS Power')\nplt.show()\n```\n\n## Peak Statistics for Validation\n\nUse `compute_stats()` to calculate detailed statistics about a candidate transit:\n\n```python\n# Get statistics for the best period\nstats = model.compute_stats(\n    periodogram.period[max_power_idx],\n    periodogram.duration[max_power_idx],\n    periodogram.transit_time[max_power_idx]\n)\n\n# Key statistics for validation\nprint(f\"Depth: {stats['depth']:.6f}\")\nprint(f\"Depth uncertainty: {stats['depth_err']:.6f}\")\nprint(f\"SNR: {stats['depth_snr']:.2f}\")\nprint(f\"Odd\u002FEven mismatch: {stats['depth_odd'] - stats['depth_even']:.6f}\")\nprint(f\"Number of transits: {stats['transit_count']}\")\n\n# Check for false positives\nif abs(stats['depth_odd'] - stats['depth_even']) > 3 * stats['depth_err']:\n    print(\"Warning: Significant odd-even mismatch - may not be planetary\")\n```\n\n**Validation criteria:**\n- **High depth SNR (>7)**: Strong signal\n- **Low odd-even mismatch**: Consistent transit depth\n- **Multiple transits observed**: More reliable\n- **Reasonable duration**: Not too long or too short for orbit\n\n## Period Grid Sensitivity\n\nThe BLS periodogram is sensitive to period grid spacing. The `autoperiod()` method provides a conservative grid:\n\n```python\n# Get automatic period grid\nperiods = model.autoperiod(durations, minimum_period=1*u.day, maximum_period=10*u.day)\nprint(f\"Period grid has {len(periods)} points\")\n\n# Use this grid with power()\nperiodogram = model.power(periods, durations)\n```\n\n**Tips:**\n- Use `autopower()` for initial searches\n- Use finer grids around promising candidates\n- Period grid quality matters more for BLS than for Lomb-Scargle\n\n## Comparing BLS Results\n\nTo compare multiple peaks:\n\n```python\n# Find top 5 peaks\nsorted_idx = np.argsort(periodogram.power)[::-1]\ntop_5 = sorted_idx[:5]\n\nprint(\"Top 5 candidates:\")\nfor i, idx in enumerate(top_5):\n    period = periodogram.period[idx]\n    power = periodogram.power[idx]\n    duration = periodogram.duration[idx]\n\n    stats = model.compute_stats(period, duration, periodogram.transit_time[idx])\n\n    print(f\"\\n{i+1}. Period: {period:.5f}\")\n    print(f\"   Power: {power:.2f}\")\n    print(f\"   Duration: {duration:.5f}\")\n    print(f\"   SNR: {stats['depth_snr']:.2f}\")\n    print(f\"   Transits: {stats['transit_count']}\")\n```\n\n## Phase-Folded Light Curve\n\nAfter finding a candidate, phase-fold to visualize the transit:\n\n```python\n# Fold the light curve at the best period\nphase = ((time.value - best_t0.value) % best_period.value) \u002F best_period.value\n\n# Plot to verify transit shape\nimport matplotlib.pyplot as plt\nplt.plot(phase, flux, '.')\nplt.xlabel('Phase')\nplt.ylabel('Flux')\nplt.show()\n```\n\n## BLS vs Transit Least Squares (TLS)\n\nBoth methods search for transits, but differ in implementation:\n\n### Box Least Squares (BLS)\n**Pros:**\n- Built into Astropy (no extra install)\n- Fast for targeted searches\n- Good statistical framework\n- compute_stats() provides detailed validation\n\n**Cons:**\n- Simpler transit model (box shape)\n- Requires careful period grid setup\n- May be less sensitive to grazing transits\n\n### Transit Least Squares (TLS)\n**Pros:**\n- More sophisticated transit models\n- Generally more sensitive\n- Better handles grazing transits\n- Automatic period grid is more robust\n\n**Cons:**\n- Requires separate package\n- Slower for very long time series\n- Less control over transit shape\n\n**Recommendation**: Try both! TLS is often more sensitive, but BLS is faster and built-in.\n\n## Integration with Preprocessing\n\nBLS works best with preprocessed data. Consider this pipeline:\n\n1. **Quality filtering**: Remove flagged data points\n2. **Outlier removal**: Clean obvious artifacts\n3. **Detrending**: Remove stellar variability (rotation, trends)\n4. **BLS search**: Run period search on cleaned data\n5. **Validation**: Use `compute_stats()` to check candidate quality\n\n### Key Considerations\n\n- Preprocessing should **preserve transit shapes** (use gentle methods like `flatten()`)\n- Don't over-process - too aggressive cleaning removes real signals\n- BLS needs reasonable period and duration ranges\n- Always validate with multiple metrics (power, SNR, odd-even)\n\n## Common Issues\n\n### Issue: No clear peak\n**Causes:**\n- Transits too shallow\n- Wrong duration range\n- Period outside search range\n- Over-aggressive preprocessing\n\n**Solutions:**\n- Try wider duration range\n- Extend period search range\n- Use less aggressive `flatten()` window\n- Check raw data for transits\n\n### Issue: Period is 2× or 0.5× expected\n**Causes:**\n- Missing alternating transits\n- Data gaps\n- Period aliasing\n\n**Solutions:**\n- Check both periods manually\n- Examine odd-even statistics\n- Look at phase-folded plots for both periods\n\n### Issue: High odd-even mismatch\n**Cause:**\n- Not a planetary transit\n- Eclipsing binary\n- Instrumental artifact\n\n**Solution:**\n- Check `stats['depth_odd']` vs `stats['depth_even']`\n- May not be a transiting planet\n\n## Dependencies\n\n```bash\npip install astropy numpy matplotlib\n# Optional: lightkurve for preprocessing\npip install lightkurve\n```\n\n## References\n\n### Official Documentation\n- [Astropy BLS Documentation](https:\u002F\u002Fdocs.astropy.org\u002Fen\u002Fstable\u002Ftimeseries\u002Fbls.html)\n- [Astropy Time Series Guide](https:\u002F\u002Fdocs.astropy.org\u002Fen\u002Fstable\u002Ftimeseries\u002F)\n\n### Key Papers\n- **Kovács, Zucker, & Mazeh (2002)**: Original BLS paper - [A&A 391, 369](https:\u002F\u002Farxiv.org\u002Fabs\u002Fastro-ph\u002F0206099)\n- **Hartman & Bakos (2016)**: VARTOOLS implementation - [A&C 17, 1](https:\u002F\u002Farxiv.org\u002Fabs\u002F1605.06811)\n\n### Related Resources\n- [Lightkurve Tutorials](https:\u002F\u002Flightkurve.github.io\u002Flightkurve\u002Ftutorials\u002F)\n- [TLS GitHub](https:\u002F\u002Fgithub.com\u002Fhippke\u002Ftls) - Alternative transit detection method\n\n## When to Use BLS\n\n**Use BLS when:**\n- You want a fast, built-in solution\n- You need detailed validation statistics (`compute_stats`)\n- Working within the Astropy ecosystem\n- You want fine control over period grid\n\n**Use TLS when:**\n- Maximum sensitivity is critical\n- Dealing with grazing or partial transits\n- Want automatic robust period grid\n- Prefer more sophisticated transit models\n\n**Use Lomb-Scargle when:**\n- Searching for general periodic signals (not specifically transits)\n- Detecting stellar rotation, pulsation\n- Initial exploration of periodicity\n\nFor exoplanet detection, both BLS and TLS are valid choices. Try both and compare results!\n","# Box Least Squares (BLS) Periodogram\n\nThe 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.\n\n## Overview\n\nBLS is built into Astropy and provides an alternative to Transit Least Squares (TLS). Both search for transits, but with different implementations and performance characteristics.\n\n**Key parameters BLS searches for:**\n- Period (orbital period)\n- Duration (transit duration)\n- Depth (how much flux drops during transit)\n- Reference time (mid-transit time of first transit)\n\n## Installation\n\nBLS is part of Astropy:\n\n```bash\npip install astropy\n```\n\n## Basic Usage\n\n```python\nimport numpy as np\nimport astropy.units as u\nfrom astropy.timeseries import BoxLeastSquares\n\n# Prepare data\n# time, flux, and flux_err should be numpy arrays or Quantities\nt = time * u.day  # Add units if not already present\ny = flux\ndy = flux_err  # Optional but recommended\n\n# Create BLS object\nmodel = BoxLeastSquares(t, y, dy=dy)\n\n# Automatic period search with specified duration\nduration = 0.2 * u.day  # Expected transit duration\nperiodogram = model.autopower(duration)\n\n# Extract results\nbest_period = periodogram.period[np.argmax(periodogram.power)]\nprint(f\"Best period: {best_period:.5f}\")\n```\n\n## Using autopower vs power\n\n### autopower: Automatic Period Grid\n\nRecommended for initial searches. Automatically determines appropriate period grid:\n\n```python\n# Specify duration (or multiple durations)\nduration = 0.2 * u.day\nperiodogram = model.autopower(duration)\n\n# Or search multiple durations\ndurations = [0.1, 0.15, 0.2, 0.25] * u.day\nperiodogram = model.autopower(durations)\n```\n\n### power: Custom Period Grid\n\nFor more control over the search:\n\n```python\n# Define custom period grid\nperiods = np.linspace(2.0, 10.0, 1000) * u.day\nduration = 0.2 * u.day\n\nperiodogram = model.power(periods, duration)\n```\n\n**Warning**: Period grid quality matters! Too coarse and you'll miss the true period.\n\n## Objective Functions\n\nBLS supports two objective functions:\n\n### 1. Log Likelihood (default)\n\nMaximizes the statistical likelihood of the model fit:\n\n```python\nperiodogram = model.autopower(0.2 * u.day, objective='likelihood')\n```\n\n### 2. Signal-to-Noise Ratio (SNR)\n\nUses the SNR with which the transit depth is measured:\n\n```python\nperiodogram = model.autopower(0.2 * u.day, objective='snr')\n```\n\nThe SNR objective can improve reliability in the presence of correlated noise.\n\n## Complete Example\n\n```python\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport astropy.units as u\nfrom astropy.timeseries import BoxLeastSquares\n\n# Load and prepare data\ndata = np.loadtxt('light_curve.txt')\ntime = data[:, 0] * u.day\nflux = data[:, 1]\nflux_err = data[:, 3]\n\n# Create BLS model\nmodel = BoxLeastSquares(time, flux, dy=flux_err)\n\n# Run BLS with automatic period grid\n# Try multiple durations to find best fit\ndurations = np.linspace(0.05, 0.3, 10) * u.day\nperiodogram = model.autopower(durations, objective='likelihood')\n\n# Find peak\nmax_power_idx = np.argmax(periodogram.power)\nbest_period = periodogram.period[max_power_idx]\nbest_duration = periodogram.duration[max_power_idx]\nbest_t0 = periodogram.transit_time[max_power_idx]\nmax_power = periodogram.power[max_power_idx]\n\nprint(f\"Period: {best_period:.5f}\")\nprint(f\"Duration: {best_duration:.5f}\")\nprint(f\"T0: {best_t0:.5f}\")\nprint(f\"Power: {max_power:.2f}\")\n\n# Plot periodogram\nimport matplotlib.pyplot as plt\nplt.plot(periodogram.period, periodogram.power)\nplt.xlabel('Period [days]')\nplt.ylabel('BLS Power')\nplt.show()\n```\n\n## Peak Statistics for Validation\n\nUse `compute_stats()` to calculate detailed statistics about a candidate transit:\n\n```python\n# Get statistics for the best period\nstats = model.compute_stats(\n    periodogram.period[max_power_idx],\n    periodogram.duration[max_power_idx],\n    periodogram.transit_time[max_power_idx]\n)\n\n# Key statistics for validation\nprint(f\"Depth: {stats['depth']:.6f}\")\nprint(f\"Depth uncertainty: {stats['depth_err']:.6f}\")\nprint(f\"SNR: {stats['depth_snr']:.2f}\")\nprint(f\"Odd\u002FEven mismatch: {stats['depth_odd'] - stats['depth_even']:.6f}\")\nprint(f\"Number of transits: {stats['transit_count']}\")\n\n# Check for false positives\nif abs(stats['depth_odd'] - stats['depth_even']) > 3 * stats['depth_err']:\n    print(\"Warning: Significant odd-even mismatch - may not be planetary\")\n```\n\n**Validation criteria:**\n- **High depth SNR (>7)**: Strong signal\n- **Low odd-even mismatch**: Consistent transit depth\n- **Multiple transits observed**: More reliable\n- **Reasonable duration**: Not too long or too short for orbit\n\n## Period Grid Sensitivity\n\nThe BLS periodogram is sensitive to period grid spacing. The `autoperiod()` method provides a conservative grid:\n\n```python\n# Get automatic period grid\nperiods = model.autoperiod(durations, minimum_period=1*u.day, maximum_period=10*u.day)\nprint(f\"Period grid has {len(periods)} points\")\n\n# Use this grid with power()\nperiodogram = model.power(periods, durations)\n```\n\n**Tips:**\n- Use `autopower()` for initial searches\n- Use finer grids around promising candidates\n- Period grid quality matters more for BLS than for Lomb-Scargle\n\n## Comparing BLS Results\n\nTo compare multiple peaks:\n\n```python\n# Find top 5 peaks\nsorted_idx = np.argsort(periodogram.power)[::-1]\ntop_5 = sorted_idx[:5]\n\nprint(\"Top 5 candidates:\")\nfor i, idx in enumerate(top_5):\n    period = periodogram.period[idx]\n    power = periodogram.power[idx]\n    duration = periodogram.duration[idx]\n\n    stats = model.compute_stats(period, duration, periodogram.transit_time[idx])\n\n    print(f\"\\n{i+1}. Period: {period:.5f}\")\n    print(f\"   Power: {power:.2f}\")\n    print(f\"   Duration: {duration:.5f}\")\n    print(f\"   SNR: {stats['depth_snr']:.2f}\")\n    print(f\"   Transits: {stats['transit_count']}\")\n```\n\n## Phase-Folded Light Curve\n\nAfter finding a candidate, phase-fold to visualize the transit:\n\n```python\n# Fold the light curve at the best period\nphase = ((time.value - best_t0.value) % best_period.value) \u002F best_period.value\n\n# Plot to verify transit shape\nimport matplotlib.pyplot as plt\nplt.plot(phase, flux, '.')\nplt.xlabel('Phase')\nplt.ylabel('Flux')\nplt.show()\n```\n\n## BLS vs Transit Least Squares (TLS)\n\nBoth methods search for transits, but differ in implementation:\n\n### Box Least Squares (BLS)\n**Pros:**\n- Built into Astropy (no extra install)\n- Fast for targeted searches\n- Good statistical framework\n- compute_stats() provides detailed validation\n\n**Cons:**\n- Simpler transit model (box shape)\n- Requires careful period grid setup\n- May be less sensitive to grazing transits\n\n### Transit Least Squares (TLS)\n**Pros:**\n- More sophisticated transit models\n- Generally more sensitive\n- Better handles grazing transits\n- Automatic period grid is more robust\n\n**Cons:**\n- Requires separate package\n- Slower for very long time series\n- Less control over transit shape\n\n**Recommendation**: Try both! TLS is often more sensitive, but BLS is faster and built-in.\n\n## Integration with Preprocessing\n\nBLS works best with preprocessed data. Consider this pipeline:\n\n1. **Quality filtering**: Remove flagged data points\n2. **Outlier removal**: Clean obvious artifacts\n3. **Detrending**: Remove stellar variability (rotation, trends)\n4. **BLS search**: Run period search on cleaned data\n5. **Validation**: Use `compute_stats()` to check candidate quality\n\n### Key Considerations\n\n- Preprocessing should **preserve transit shapes** (use gentle methods like `flatten()`)\n- Don't over-process - too aggressive cleaning removes real signals\n- BLS needs reasonable period and duration ranges\n- Always validate with multiple metrics (power, SNR, odd-even)\n\n## Common Issues\n\n### Issue: No clear peak\n**Causes:**\n- Transits too shallow\n- Wrong duration range\n- Period outside search range\n- Over-aggressive preprocessing\n\n**Solutions:**\n- Try wider duration range\n- Extend period search range\n- Use less aggressive `flatten()` window\n- Check raw data for transits\n\n### Issue: Period is 2× or 0.5× expected\n**Causes:**\n- Missing alternating transits\n- Data gaps\n- Period aliasing\n\n**Solutions:**\n- Check both periods manually\n- Examine odd-even statistics\n- Look at phase-folded plots for both periods\n\n### Issue: High odd-even mismatch\n**Cause:**\n- Not a planetary transit\n- Eclipsing binary\n- Instrumental artifact\n\n**Solution:**\n- Check `stats['depth_odd']` vs `stats['depth_even']`\n- May not be a transiting planet\n\n## Dependencies\n\n```bash\npip install astropy numpy matplotlib\n# Optional: lightkurve for preprocessing\npip install lightkurve\n```\n\n## References\n\n### Official Documentation\n- [Astropy BLS Documentation](https:\u002F\u002Fdocs.astropy.org\u002Fen\u002Fstable\u002Ftimeseries\u002Fbls.html)\n- [Astropy Time Series Guide](https:\u002F\u002Fdocs.astropy.org\u002Fen\u002Fstable\u002Ftimeseries\u002F)\n\n### Key Papers\n- **Kovács, Zucker, & Mazeh (2002)**: Original BLS paper - [A&A 391, 369](https:\u002F\u002Farxiv.org\u002Fabs\u002Fastro-ph\u002F0206099)\n- **Hartman & Bakos (2016)**: VARTOOLS implementation - [A&C 17, 1](https:\u002F\u002Farxiv.org\u002Fabs\u002F1605.06811)\n\n### Related Resources\n- [Lightkurve Tutorials](https:\u002F\u002Flightkurve.github.io\u002Flightkurve\u002Ftutorials\u002F)\n- [TLS GitHub](https:\u002F\u002Fgithub.com\u002Fhippke\u002Ftls) - Alternative transit detection method\n\n## When to Use BLS\n\n**Use BLS when:**\n- You want a fast, built-in solution\n- You need detailed validation statistics (`compute_stats`)\n- Working within the Astropy ecosystem\n- You want fine control over period grid\n\n**Use TLS when:**\n- Maximum sensitivity is critical\n- Dealing with grazing or partial transits\n- Want automatic robust period grid\n- Prefer more sophisticated transit models\n\n**Use Lomb-Scargle when:**\n- Searching for general periodic signals (not specifically transits)\n- Detecting stellar rotation, pulsation\n- Initial exploration of periodicity\n\nFor exoplanet detection, both BLS and TLS are valid choices. Try both and compare results!\n",{"name":5,"description":7},"main","7eeb258ada72b7f58119b0e7a2c00ea89d9beedd","tasks\u002Fexoplanet-detection-period\u002Fenvironment\u002Fskills\u002Fbox-least-squares","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench","https:\u002F\u002Fgithub.com\u002FWaaaalnut","student of Zhejiang University","2026-04-21 23:16:23",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add Waaaalnut\u002Fskillsbench --skill box-least-squares",{"tool":49,"command":50},"bunx","bunx skills add Waaaalnut\u002Fskillsbench --skill box-least-squares",{"tool":52,"command":53},"pnpm","pnpm dlx skills add Waaaalnut\u002Fskillsbench --skill box-least-squares","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fexoplanet-detection-period\u002Fenvironment\u002Fskills\u002Fbox-least-squares\u002FSKILL.md",true,[],[58,72,87,113,135,153],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":68,"publishedAt":31},"01M6XEWMJ6VY3ZC53MPDCPG3GH","data-reconciliation","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fxlsx-recover-data\u002Fenvironment\u002Fskills\u002Fdata-reconciliation\u002FSKILL.md",[63],{"categoryNo":64,"categoryName":65,"taxonomyType":66,"taxonomyTypeDesc":67},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[69,70,71],"data reconciliation","reconciliation","data",{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":31},"01M6XEW8MNPMF1KRXV6ATGFRQF","speech-to-text","Transcribe video to timestamped text using Whisper tiny model (pre-installed).","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-tutorial-indexer\u002Fenvironment\u002Fskills\u002Fspeech-to-text\u002FSKILL.md",[],[79,80,81,82,83,84,85,86],"speech","text","speech to text","transcribe video","whisper","model","Video","transcribe",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":98,"publishedAt":31},"01M6XEW3FQZP0T1RKQQJFXVY9T","video-processor","Process videos by removing segments and concatenating remaining parts. Use when you need to remove detected pauses\u002Fopenings from videos, create highlight reels, or batch process segment removals using ffmpeg filter_complex.","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Fvideo-processor\u002FSKILL.md",[93],{"categoryNo":94,"categoryName":95,"taxonomyType":96,"taxonomyTypeDesc":97},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",[85,99,100,101,102,103,29,104,105,106,107,108,109,110,111,22,112],"processor","video processor","batch","create","reels","parts","segments","process","videos","you","segment","filter","ffmpeg","remove",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":120,"publishedAt":31},"01M6XEVXJ5KZ0NTY3XZKRY4AS1","silence-detector","Detect initial silence segments in audio\u002Fvideo using energy-based analysis. Use when you need to find low-energy periods at the start of recordings (title slides, setup time, pre-roll silence).","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Fsilence-detector\u002FSKILL.md",[119],{"categoryNo":94,"categoryName":95,"taxonomyType":96,"taxonomyTypeDesc":97},[121,122,123,124,29,108,125,126,127,128,129,105,130,131,85,132,133,134,22],"detector","silence detector","title","slides","time","energy","at","recordings","detect","find","Audio","analysis","start","setup",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":31},"01M6XEVT3NGRN1FT7JPMAPXS6M","segment-combiner","Combine multiple segment detection results into a unified list. Use when you need to merge segments from different detectors, prepare removal lists for video processing, or consolidate detection outputs.","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Fsegment-combiner\u002FSKILL.md",[],[109,142,85,143,144,145,146,27,29,147,148,105,108,149,150,22,151,152],"segment combiner","detection","prepare","merge","video processing","outputs","combine","processing","consolidate","results","list",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":162,"publishedAt":31},"01M6XEVMPVASGS2KX86QK4FMT7","report-generator","Generate compression reports for video processing. Use when you need to create structured JSON reports with duration statistics, compression ratios, and segment details after video processing.","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fvideo-silence-remover\u002Fenvironment\u002Fskills\u002Freport-generator\u002FSKILL.md",[159],{"categoryNo":160,"categoryName":161,"taxonomyType":66,"taxonomyTypeDesc":67},"01JBSEEDCAT000000000000034","行政与办公人员",[163,164,165,109,29,27,108,166,149,167,168,169,22,146,170,85,171,172,102],"generator","report generator","report","with","statistics","structured","reports","json","compression","generate"]