Light Curve Preprocessing
Preprocessing and cleaning techniques for astronomical light curves. Use when preparing light curve data for period analysis, including outlier removal, trend removal, flattening, and handling data quality flags. Works with lightkurve and general time series data.
Install
npx skills add UCSB-NLP-Chang/Skill-Usage --skill light-curve-preprocessinggit clone --depth 1 https://github.com/UCSB-NLP-Chang/Skill-Usage.git /tmp/Skill-Usage
mkdir -p ~/.claude/skills
cp -r /tmp/Skill-Usage/tasks/exoplanet-detection-period/environment/skills/light-curve-preprocessing ~/.claude/skills/light-curve-preprocessingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Light Curve Preprocessing Preprocessing is essential before period analysis. Raw light curves often contain outliers, long-term trends, and instrumental effects that can mask or create false periodic signals. ## Overview Common preprocessing steps: 1. Remove outliers 2. Remove long-term trends 3. Handle data quality flags 4. Remove stellar variability (optional) ## Outlier Removal ### Using Lightkurve ```python import lightkurve as lk # Remove outliers using sigma clipping lc_clean, mask = lc.remove_outliers(sigma=3, return_mask=True) outliers = lc[mask] # Points that were removed # Common sigma values: # sigma=3: Standard (removes ~0.3% of data) # sigma=5: Conservative (removes fewer points) # sigma=2: Aggressive (removes more points) ``` ### Manual Outlier Removal ```python import numpy as np # Calculate median and standard deviation median = np.median(flux) std = np.std(flux) # Remove points beyond 3 sigma good = np.abs(flux - median) < 3 * std time_clean = time[good] flux_clean = flux[good] error_clean = error[good] ``` ## Removing Long-Term Trends ### Flattening with Lightkurve ```python # Flatten to remove low-frequency variability # window_length: number of cadences to use for smoothing lc_flat = lc_clean.flatten(window_length=500) # Common window lengths: # 100-200: Remove short-term trends # 300-500: Remove medium-term trends (typical for TESS) # 500-1000: Remove long-term trends ```
Details
- Skill name
light-curve-preprocessing- Repository
- UCSB-NLP-Chang/Skill-Usage
- Path
tasks/exoplanet-detection-period/environment/skills/light-curve-preprocessing/SKILL.md- Repo updated
- 8 April 2026
FAQ
What does the Light Curve Preprocessing skill do?
Preprocessing and cleaning techniques for astronomical light curves. Use when preparing light curve data for period analysis, including outlier removal, trend removal, flattening, and handling data quality flags. Works with lightkurve and general time series data.
How do I install the Light Curve Preprocessing skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add UCSB-NLP-Chang/Skill-Usage --skill light-curve-preprocessing. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Light Curve Preprocessing popular?
It lives in UCSB-NLP-Chang/Skill-Usage, which has 49 GitHub stars and 5 forks.
Related skills
Pubchem Database
49UCSB-NLP-Chang/Skill-Usage
Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics.
Pymatgen
49UCSB-NLP-Chang/Skill-Usage
Materials science toolkit. Crystal structures (CIF, POSCAR), phase diagrams, band structure, DOS, Materials Project integration, format conversion, for computational materials science.
Rdkit
49UCSB-NLP-Chang/Skill-Usage
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Locational Marginal Prices
49UCSB-NLP-Chang/Skill-Usage
Extract locational marginal prices (LMPs) from DC-OPF solutions using dual values. Use when computing nodal electricity prices, reserve clearing prices, or performing price impact analysis.
Integral Action Design
49UCSB-NLP-Chang/Skill-Usage
Adding integral action to MPC for offset-free tension tracking.
Map Optimization Strategy
49UCSB-NLP-Chang/Skill-Usage
Strategy for solving constraint optimization problems on spatial maps. Use when you need to place items on a grid/map to maximize some objective while satisfying constraints.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.