[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XE8GK0SFKA85RR0GDTNAS1":3,"skill-same:01M6XE8GK0SFKA85RR0GDTNAS1":61},{"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":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":13,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M6XE8GK0SFKA85RR0GDTNAS1","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\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,34],"spectral","matched filtering","when","for","techniques","high","detector","with","artifacts","strain","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\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":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add Waaaalnut\u002Fskillsbench --skill conditioning",{"tool":53,"command":54},"bunx","bunx skills add Waaaalnut\u002Fskillsbench --skill conditioning",{"tool":56,"command":57},"pnpm","pnpm dlx skills add Waaaalnut\u002Fskillsbench --skill conditioning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fgravitational-wave-detection\u002Fenvironment\u002Fskills\u002Fconditioning\u002FSKILL.md",true,[],[62,75,90,115,136,154],{"skillNo":63,"name":64,"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":65,"categories":66,"keywords":72,"publishedAt":35},"01M6XEWMJ6VY3ZC53MPDCPG3GH","data-reconciliation","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fxlsx-recover-data\u002Fenvironment\u002Fskills\u002Fdata-reconciliation\u002FSKILL.md",[67],{"categoryNo":68,"categoryName":69,"taxonomyType":70,"taxonomyTypeDesc":71},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[73,74,33],"data reconciliation","reconciliation",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":35},"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",[],[82,83,84,85,86,87,88,89],"speech","text","speech to text","transcribe video","whisper","model","Video","transcribe",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":101,"publishedAt":35},"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",[96],{"categoryNo":97,"categoryName":98,"taxonomyType":99,"taxonomyTypeDesc":100},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",[88,102,103,104,105,106,20,107,108,109,110,111,112,28,113,31,114],"processor","video processor","batch","create","reels","parts","segments","process","videos","you","segment","ffmpeg","remove",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":122,"publishedAt":35},"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",[121],{"categoryNo":97,"categoryName":98,"taxonomyType":99,"taxonomyTypeDesc":100},[24,123,124,125,20,111,126,127,128,129,130,108,131,132,88,133,134,135,31],"silence detector","title","slides","time","energy","at","recordings","detect","find","Audio","analysis","start","setup",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":35},"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",[],[112,143,88,144,145,146,147,21,20,148,149,108,111,150,151,31,152,153],"segment combiner","detection","prepare","merge","video processing","outputs","combine","processing","consolidate","results","list",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":163,"publishedAt":35},"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",[160],{"categoryNo":161,"categoryName":162,"taxonomyType":70,"taxonomyTypeDesc":71},"01JBSEEDCAT000000000000034","行政与办公人员",[164,165,166,112,20,21,111,25,150,167,168,169,31,147,170,88,171,172,105],"generator","report generator","report","statistics","structured","reports","json","compression","generate"]