[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XD7S63CGN5ZA8FHTTV7GCY":3,"skill-same:01M6XD7S63CGN5ZA8FHTTV7GCY":60},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":13,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6XD7S63CGN5ZA8FHTTV7GCY","conditioning",null,"Data conditioning techniques for gravitational wave detector data. Use when preprocessing raw detector strain data before matched filtering, including high-pass filtering, resampling, removing filter wraparound artifacts, and estimating power spectral density (PSD). Works with PyCBC TimeSeries data.","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-no-skills\u002Fgravitational-wave-detection\u002Fenvironment\u002Fskills\u002Fconditioning\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"strain","when","for","techniques","high","detector","with","spectral","artifacts","filter","preprocessing","power","use","filtering","data","timeseries","2026-11-10 10:12:30",false,"---\nname: conditioning\ndescription: Data conditioning techniques for gravitational wave detector data. Use when preprocessing raw detector strain data before matched filtering, including high-pass filtering, resampling, removing filter wraparound artifacts, and estimating power spectral density (PSD). Works with PyCBC TimeSeries data.\n---\n\n# Gravitational Wave Data Conditioning\n\nData conditioning is essential before matched filtering. Raw gravitational wave detector data contains low-frequency noise, instrumental artifacts, and needs proper sampling rates for computational efficiency.\n\n## Overview\n\nThe conditioning pipeline typically involves:\n1. High-pass filtering (remove low-frequency noise below ~15 Hz)\n2. Resampling (downsample to appropriate sampling rate)\n3. Crop filter wraparound (remove edge artifacts from filtering)\n4. PSD estimation (calculate power spectral density for matched filtering)\n\n## High-Pass Filtering\n\nRemove low-frequency noise and instrumental artifacts:\n\n```python\nfrom pycbc.filter import highpass\n\n# High-pass filter at 15 Hz (typical for LIGO\u002FVirgo data)\nstrain_filtered = highpass(strain, 15.0)\n\n# Common cutoff frequencies:\n# 15 Hz: Standard for ground-based detectors\n# 20 Hz: Higher cutoff, more aggressive noise removal\n# 10 Hz: Lower cutoff, preserves more low-frequency content\n```\n\n**Why 15 Hz?** Ground-based detectors like LIGO\u002FVirgo have significant low-frequency noise. High-pass filtering removes this noise while preserving the gravitational wave signal (typically >20 Hz for binary mergers).\n\n## Resampling\n\nDownsample the data to reduce computational cost:\n\n```python\nfrom pycbc.filter import resample_to_delta_t\n\n# Resample to 2048 Hz (common for matched filtering)\ndelta_t = 1.0 \u002F 2048\nstrain_resampled = resample_to_delta_t(strain_filtered, delta_t)\n\n# Or to 4096 Hz for higher resolution\ndelta_t = 1.0 \u002F 4096\nstrain_resampled = resample_to_delta_t(strain_filtered, delta_t)\n\n# Common sampling rates:\n# 2048 Hz: Standard, computationally efficient\n# 4096 Hz: Higher resolution, better for high-mass systems\n```\n\n**Note**: Resampling should happen AFTER high-pass filtering to avoid aliasing. The Nyquist frequency (half the sampling rate) must be above the signal frequency of interest.\n\n## Crop Filter Wraparound\n\nRemove edge artifacts introduced by filtering:\n\n```python\n# Crop 2 seconds from both ends to remove filter wraparound\nconditioned = strain_resampled.crop(2, 2)\n\n# The crop() method removes time from start and end:\n# crop(start_seconds, end_seconds)\n# Common values: 2-4 seconds on each end\n\n# Verify the duration\nprint(f\"Original duration: {strain_resampled.duration} s\")\nprint(f\"Cropped duration: {conditioned.duration} s\")\n```\n\n**Why crop?** Digital filters introduce artifacts at the edges of the time series. These artifacts can cause false triggers in matched filtering.\n\n## Power Spectral Density (PSD) Estimation\n\nCalculate the PSD needed for matched filtering:\n\n```python\nfrom pycbc.psd import interpolate, inverse_spectrum_truncation\n\n# Estimate PSD using Welch's method\n# seg_len: segment length in seconds (typically 4 seconds)\npsd = conditioned.psd(4)\n\n# Interpolate PSD to match data frequency resolution\npsd = interpolate(psd, conditioned.delta_f)\n\n# Inverse spectrum truncation for numerical stability\n# This limits the effective filter length\npsd = inverse_spectrum_truncation(\n    psd,\n    int(4 * conditioned.sample_rate),\n    low_frequency_cutoff=15\n)\n\n# Check PSD properties\nprint(f\"PSD length: {len(psd)}\")\nprint(f\"PSD delta_f: {psd.delta_f}\")\nprint(f\"PSD frequency range: {psd.sample_frequencies[0]:.2f} - {psd.sample_frequencies[-1]:.2f} Hz\")\n```\n\n### PSD Parameters Explained\n\n- **Segment length (4 seconds)**: Longer segments give better frequency resolution but fewer averages. 4 seconds is a good balance.\n- **Low frequency cutoff (15 Hz)**: Should match your high-pass filter cutoff. Frequencies below this are not well-characterized.\n\n## Best Practices\n\n1. **Always high-pass filter first**: Remove low-frequency noise before resampling\n2. **Choose appropriate sampling rate**: 2048 Hz is standard, 4096 Hz for high-mass systems\n3. **Crop enough time**: 2 seconds is minimum, but may need more for longer templates\n4. **Match PSD cutoff to filter**: PSD low-frequency cutoff should match high-pass filter frequency\n5. **Verify data quality**: Plot the conditioned strain to check for issues\n\n## Dependencies\n\n```bash\npip install pycbc\n```\n\n## References\n\n- [PyCBC Tutorial: Waveform & Matched Filter](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgwastro\u002Fpycbc-tutorials\u002Fblob\u002Fmaster\u002Ftutorial\u002F3_WaveformMatchedFilter.ipynb) - Practical tutorial covering data conditioning, PSD estimation, and matched filtering\n- [PyCBC Filter Documentation](https:\u002F\u002Fpycbc.org\u002Fpycbc\u002Flatest\u002Fhtml\u002Fpycbc.filter.html)\n- [PyCBC PSD Documentation](https:\u002F\u002Fpycbc.org\u002Fpycbc\u002Flatest\u002Fhtml\u002Fpycbc.psd.html)\n\n## Common Issues\n\n**Problem**: PSD estimation fails with \"must contain at least one sample\" error\n- **Solution**: Ensure data is long enough after cropping (need several segments for Welch method)\n\n**Problem**: Filter wraparound artifacts in matched filtering\n- **Solution**: Increase crop amount or check that filtering happened before cropping\n\n**Problem**: Poor SNR due to low-frequency noise\n- **Solution**: Increase high-pass filter cutoff frequency or check PSD inverse spectrum truncation\n","# Gravitational Wave Data Conditioning\n\nData conditioning is essential before matched filtering. Raw gravitational wave detector data contains low-frequency noise, instrumental artifacts, and needs proper sampling rates for computational efficiency.\n\n## Overview\n\nThe conditioning pipeline typically involves:\n1. High-pass filtering (remove low-frequency noise below ~15 Hz)\n2. Resampling (downsample to appropriate sampling rate)\n3. Crop filter wraparound (remove edge artifacts from filtering)\n4. PSD estimation (calculate power spectral density for matched filtering)\n\n## High-Pass Filtering\n\nRemove low-frequency noise and instrumental artifacts:\n\n```python\nfrom pycbc.filter import highpass\n\n# High-pass filter at 15 Hz (typical for LIGO\u002FVirgo data)\nstrain_filtered = highpass(strain, 15.0)\n\n# Common cutoff frequencies:\n# 15 Hz: Standard for ground-based detectors\n# 20 Hz: Higher cutoff, more aggressive noise removal\n# 10 Hz: Lower cutoff, preserves more low-frequency content\n```\n\n**Why 15 Hz?** Ground-based detectors like LIGO\u002FVirgo have significant low-frequency noise. High-pass filtering removes this noise while preserving the gravitational wave signal (typically >20 Hz for binary mergers).\n\n## Resampling\n\nDownsample the data to reduce computational cost:\n\n```python\nfrom pycbc.filter import resample_to_delta_t\n\n# Resample to 2048 Hz (common for matched filtering)\ndelta_t = 1.0 \u002F 2048\nstrain_resampled = resample_to_delta_t(strain_filtered, delta_t)\n\n# Or to 4096 Hz for higher resolution\ndelta_t = 1.0 \u002F 4096\nstrain_resampled = resample_to_delta_t(strain_filtered, delta_t)\n\n# Common sampling rates:\n# 2048 Hz: Standard, computationally efficient\n# 4096 Hz: Higher resolution, better for high-mass systems\n```\n\n**Note**: Resampling should happen AFTER high-pass filtering to avoid aliasing. The Nyquist frequency (half the sampling rate) must be above the signal frequency of interest.\n\n## Crop Filter Wraparound\n\nRemove edge artifacts introduced by filtering:\n\n```python\n# Crop 2 seconds from both ends to remove filter wraparound\nconditioned = strain_resampled.crop(2, 2)\n\n# The crop() method removes time from start and end:\n# crop(start_seconds, end_seconds)\n# Common values: 2-4 seconds on each end\n\n# Verify the duration\nprint(f\"Original duration: {strain_resampled.duration} s\")\nprint(f\"Cropped duration: {conditioned.duration} s\")\n```\n\n**Why crop?** Digital filters introduce artifacts at the edges of the time series. These artifacts can cause false triggers in matched filtering.\n\n## Power Spectral Density (PSD) Estimation\n\nCalculate the PSD needed for matched filtering:\n\n```python\nfrom pycbc.psd import interpolate, inverse_spectrum_truncation\n\n# Estimate PSD using Welch's method\n# seg_len: segment length in seconds (typically 4 seconds)\npsd = conditioned.psd(4)\n\n# Interpolate PSD to match data frequency resolution\npsd = interpolate(psd, conditioned.delta_f)\n\n# Inverse spectrum truncation for numerical stability\n# This limits the effective filter length\npsd = inverse_spectrum_truncation(\n    psd,\n    int(4 * conditioned.sample_rate),\n    low_frequency_cutoff=15\n)\n\n# Check PSD properties\nprint(f\"PSD length: {len(psd)}\")\nprint(f\"PSD delta_f: {psd.delta_f}\")\nprint(f\"PSD frequency range: {psd.sample_frequencies[0]:.2f} - {psd.sample_frequencies[-1]:.2f} Hz\")\n```\n\n### PSD Parameters Explained\n\n- **Segment length (4 seconds)**: Longer segments give better frequency resolution but fewer averages. 4 seconds is a good balance.\n- **Low frequency cutoff (15 Hz)**: Should match your high-pass filter cutoff. Frequencies below this are not well-characterized.\n\n## Best Practices\n\n1. **Always high-pass filter first**: Remove low-frequency noise before resampling\n2. **Choose appropriate sampling rate**: 2048 Hz is standard, 4096 Hz for high-mass systems\n3. **Crop enough time**: 2 seconds is minimum, but may need more for longer templates\n4. **Match PSD cutoff to filter**: PSD low-frequency cutoff should match high-pass filter frequency\n5. **Verify data quality**: Plot the conditioned strain to check for issues\n\n## Dependencies\n\n```bash\npip install pycbc\n```\n\n## References\n\n- [PyCBC Tutorial: Waveform & Matched Filter](https:\u002F\u002Fcolab.research.google.com\u002Fgithub\u002Fgwastro\u002Fpycbc-tutorials\u002Fblob\u002Fmaster\u002Ftutorial\u002F3_WaveformMatchedFilter.ipynb) - Practical tutorial covering data conditioning, PSD estimation, and matched filtering\n- [PyCBC Filter Documentation](https:\u002F\u002Fpycbc.org\u002Fpycbc\u002Flatest\u002Fhtml\u002Fpycbc.filter.html)\n- [PyCBC PSD Documentation](https:\u002F\u002Fpycbc.org\u002Fpycbc\u002Flatest\u002Fhtml\u002Fpycbc.psd.html)\n\n## Common Issues\n\n**Problem**: PSD estimation fails with \"must contain at least one sample\" error\n- **Solution**: Ensure data is long enough after cropping (need several segments for Welch method)\n\n**Problem**: Filter wraparound artifacts in matched filtering\n- **Solution**: Increase crop amount or check that filtering happened before cropping\n\n**Problem**: Poor SNR due to low-frequency noise\n- **Solution**: Increase high-pass filter cutoff frequency or check PSD inverse spectrum truncation\n",{"name":5,"description":7},"main","7eeb258ada72b7f58119b0e7a2c00ea89d9beedd","tasks-no-skills\u002Fgravitational-wave-detection\u002Fenvironment\u002Fskills\u002Fconditioning","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":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add Waaaalnut\u002Fskillsbench --skill conditioning",{"tool":52,"command":53},"bunx","bunx skills add Waaaalnut\u002Fskillsbench --skill conditioning",{"tool":55,"command":56},"pnpm","pnpm dlx skills add Waaaalnut\u002Fskillsbench --skill conditioning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks-no-skills\u002Fgravitational-wave-detection\u002Fenvironment\u002Fskills\u002Fconditioning\u002FSKILL.md",true,[],[61,69,84,104,124,142],{"skillNo":62,"name":63,"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":64,"categories":65,"keywords":66,"publishedAt":34},"01M6XEWMJ6VY3ZC53MPDCPG3GH","data-reconciliation","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fxlsx-recover-data\u002Fenvironment\u002Fskills\u002Fdata-reconciliation\u002FSKILL.md",[],[67,68,32],"data reconciliation","reconciliation",{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":34},"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",[],[76,77,78,79,80,81,82,83],"speech","text","speech to text","transcribe video","whisper","model","Video","transcribe",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":34},"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",[],[82,91,92,93,94,95,19,96,97,98,99,100,101,27,102,30,103],"processor","video processor","batch","create","reels","parts","segments","process","videos","you","segment","ffmpeg","remove",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":34},"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",[],[23,111,112,113,19,100,114,115,116,117,118,97,119,120,82,121,122,123,30],"silence detector","title","slides","time","energy","at","recordings","detect","find","Audio","analysis","start","setup",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":34},"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",[],[101,131,82,132,133,134,135,20,19,136,137,97,100,138,139,30,140,141],"segment combiner","detection","prepare","merge","video processing","outputs","combine","processing","consolidate","results","list",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":34},"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",[],[149,150,151,101,19,20,100,24,138,152,153,154,30,135,155,82,156,157,94],"generator","report generator","report","statistics","structured","reports","json","compression","generate"]