[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XD7WAXD6FQVX6PHFPPBT5D":3,"skill-same:01M6XD7WAXD6FQVX6PHFPPBT5D":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},"01M6XD7WAXD6FQVX6PHFPPBT5D","matched-filtering",null,"Matched filtering techniques for gravitational wave detection. Use when searching for signals in detector data using template waveforms, including both time-domain and frequency-domain approaches. Works with PyCBC for generating templates and performing matched filtering.","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\u002Fmatched-filtering\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"filtering","matched filtering","data","templates","detection","template","use","domain","time","signals","with","detector","techniques","for","performing","when","2026-11-10 10:12:30",false,"---\nname: matched-filtering\ndescription: Matched filtering techniques for gravitational wave detection. Use when searching for signals in detector data using template waveforms, including both time-domain and frequency-domain approaches. Works with PyCBC for generating templates and performing matched filtering.\n---\n\n# Matched Filtering for Gravitational Wave Detection\n\nMatched filtering is the primary technique for detecting gravitational wave signals in noisy detector data. It correlates known template waveforms with the detector data to find signals with high signal-to-noise ratio (SNR).\n\n## Overview\n\nMatched filtering requires:\n1. Template waveform (expected signal shape)\n2. Conditioned detector data (preprocessed strain)\n3. Power spectral density (PSD) of the noise\n4. SNR calculation and peak finding\n\nPyCBC supports both time-domain and frequency-domain approaches.\n\n## Time-Domain Waveforms\n\nGenerate templates in time domain using `get_td_waveform`:\n\n```python\nfrom pycbc.waveform import get_td_waveform\nfrom pycbc.filter import matched_filter\n\n# Generate time-domain waveform\nhp, hc = get_td_waveform(\n    approximant='IMRPhenomD',  # or 'SEOBNRv4_opt', 'TaylorT4'\n    mass1=25,                  # Primary mass (solar masses)\n    mass2=20,                  # Secondary mass (solar masses)\n    delta_t=conditioned.delta_t,  # Must match data sampling\n    f_lower=20                 # Lower frequency cutoff (Hz)\n)\n\n# Resize template to match data length\nhp.resize(len(conditioned))\n\n# Align template: cyclic shift so merger is at the start\ntemplate = hp.cyclic_time_shift(hp.start_time)\n\n# Perform matched filtering\nsnr = matched_filter(\n    template,\n    conditioned,\n    psd=psd,\n    low_frequency_cutoff=20\n)\n\n# Crop edges corrupted by filtering\n# Remove 4 seconds for PSD + 4 seconds for template length at start\n# Remove 4 seconds at end for PSD\nsnr = snr.crop(4 + 4, 4)\n\n# Find peak SNR\nimport numpy as np\npeak_idx = np.argmax(abs(snr).numpy())\npeak_snr = abs(snr[peak_idx])\n```\n\n### Why Cyclic Shift?\n\nWaveforms from `get_td_waveform` have the merger at time zero. For matched filtering, we typically want the merger aligned at the start of the template. `cyclic_time_shift` rotates the waveform appropriately.\n\n## Frequency-Domain Waveforms\n\nGenerate templates in frequency domain using `get_fd_waveform`:\n\n```python\nfrom pycbc.waveform import get_fd_waveform\nfrom pycbc.filter import matched_filter\n\n# Calculate frequency resolution\ndelta_f = 1.0 \u002F conditioned.duration\n\n# Generate frequency-domain waveform\nhp, hc = get_fd_waveform(\n    approximant='IMRPhenomD',\n    mass1=25,\n    mass2=20,\n    delta_f=delta_f,           # Frequency resolution (must match data)\n    f_lower=20                 # Lower frequency cutoff (Hz)\n)\n\n# Resize template to match PSD length\nhp.resize(len(psd))\n\n# Perform matched filtering\nsnr = matched_filter(\n    hp,\n    conditioned,\n    psd=psd,\n    low_frequency_cutoff=20\n)\n\n# Find peak SNR\nimport numpy as np\npeak_idx = np.argmax(abs(snr).numpy())\npeak_snr = abs(snr[peak_idx])\n```\n\n## Key Differences: Time vs Frequency Domain\n\n### Time Domain (`get_td_waveform`)\n- **Pros**: Works for all approximants, simpler to understand\n- **Cons**: Can be slower for long waveforms\n- **Use when**: Approximant doesn't support frequency domain, or you need time-domain manipulation\n\n### Frequency Domain (`get_fd_waveform`)\n- **Pros**: Faster for matched filtering, directly in frequency space\n- **Cons**: Not all approximants support it (e.g., SEOBNRv4_opt may not be available)\n- **Use when**: Approximant supports it and you want computational efficiency\n\n## Approximants\n\nCommon waveform approximants:\n\n```python\n# Phenomenological models (fast, good accuracy)\n'IMRPhenomD'      # Good for most binary black hole systems\n'IMRPhenomPv2'    # More accurate for precessing systems\n\n# Effective One-Body models (very accurate, slower)\n'SEOBNRv4_opt'    # Optimized EOB model (time-domain only typically)\n\n# Post-Newtonian models (approximate, fast)\n'TaylorT4'        # Post-Newtonian expansion\n```\n\n**Note**: Some approximants may not be available in frequency domain. If `get_fd_waveform` fails, use `get_td_waveform` instead.\n\n## Matched Filter Parameters\n\n### `low_frequency_cutoff`\n- Should match your high-pass filter cutoff (typically 15-20 Hz)\n- Templates are only meaningful above this frequency\n- Lower values = more signal, but more noise\n\n### Template Resizing\n- **Time domain**: `hp.resize(len(conditioned))` - match data length\n- **Frequency domain**: `hp.resize(len(psd))` - match PSD length\n- Critical for proper correlation\n\n### Crop Amounts\nAfter matched filtering, crop edges corrupted by:\n- **PSD filtering**: 4 seconds at both ends\n- **Template length**: Additional 4 seconds at start (for time-domain)\n- **Total**: `snr.crop(8, 4)` for time-domain, `snr.crop(4, 4)` for frequency-domain\n\n## Best Practices\n\n1. **Match sampling\u002Ffrequency resolution**: Template `delta_t`\u002F`delta_f` must match data\n2. **Resize templates correctly**: Time-domain → data length, Frequency-domain → PSD length\n3. **Crop after filtering**: Always crop edges corrupted by filtering\n4. **Use `abs()` for SNR**: Matched filter returns complex SNR; use magnitude\n5. **Handle failures gracefully**: Some approximants may not work for certain mass combinations\n\n## Common Issues\n\n**Problem**: \"Approximant not available\" error\n- **Solution**: Try time-domain instead of frequency-domain, or use different approximant\n\n**Problem**: Template size mismatch\n- **Solution**: Ensure template is resized to match data length (TD) or PSD length (FD)\n\n**Problem**: Poor SNR even with correct masses\n- **Solution**: Check that PSD low_frequency_cutoff matches your high-pass filter, verify data conditioning\n\n**Problem**: Edge artifacts in SNR time series\n- **Solution**: Increase crop amounts or verify filtering pipeline order\n\n## Dependencies\n\n```bash\npip install pycbc numpy\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) - Comprehensive tutorial demonstrating waveform generation, matched filtering in both time and frequency domains, and SNR analysis\n- [PyCBC Waveform Documentation](https:\u002F\u002Fpycbc.org\u002Fpycbc\u002Flatest\u002Fhtml\u002Fpycbc.waveform.html)\n- [PyCBC Filter Documentation](https:\u002F\u002Fpycbc.org\u002Fpycbc\u002Flatest\u002Fhtml\u002Fpycbc.filter.html)\n","# Matched Filtering for Gravitational Wave Detection\n\nMatched filtering is the primary technique for detecting gravitational wave signals in noisy detector data. It correlates known template waveforms with the detector data to find signals with high signal-to-noise ratio (SNR).\n\n## Overview\n\nMatched filtering requires:\n1. Template waveform (expected signal shape)\n2. Conditioned detector data (preprocessed strain)\n3. Power spectral density (PSD) of the noise\n4. SNR calculation and peak finding\n\nPyCBC supports both time-domain and frequency-domain approaches.\n\n## Time-Domain Waveforms\n\nGenerate templates in time domain using `get_td_waveform`:\n\n```python\nfrom pycbc.waveform import get_td_waveform\nfrom pycbc.filter import matched_filter\n\n# Generate time-domain waveform\nhp, hc = get_td_waveform(\n    approximant='IMRPhenomD',  # or 'SEOBNRv4_opt', 'TaylorT4'\n    mass1=25,                  # Primary mass (solar masses)\n    mass2=20,                  # Secondary mass (solar masses)\n    delta_t=conditioned.delta_t,  # Must match data sampling\n    f_lower=20                 # Lower frequency cutoff (Hz)\n)\n\n# Resize template to match data length\nhp.resize(len(conditioned))\n\n# Align template: cyclic shift so merger is at the start\ntemplate = hp.cyclic_time_shift(hp.start_time)\n\n# Perform matched filtering\nsnr = matched_filter(\n    template,\n    conditioned,\n    psd=psd,\n    low_frequency_cutoff=20\n)\n\n# Crop edges corrupted by filtering\n# Remove 4 seconds for PSD + 4 seconds for template length at start\n# Remove 4 seconds at end for PSD\nsnr = snr.crop(4 + 4, 4)\n\n# Find peak SNR\nimport numpy as np\npeak_idx = np.argmax(abs(snr).numpy())\npeak_snr = abs(snr[peak_idx])\n```\n\n### Why Cyclic Shift?\n\nWaveforms from `get_td_waveform` have the merger at time zero. For matched filtering, we typically want the merger aligned at the start of the template. `cyclic_time_shift` rotates the waveform appropriately.\n\n## Frequency-Domain Waveforms\n\nGenerate templates in frequency domain using `get_fd_waveform`:\n\n```python\nfrom pycbc.waveform import get_fd_waveform\nfrom pycbc.filter import matched_filter\n\n# Calculate frequency resolution\ndelta_f = 1.0 \u002F conditioned.duration\n\n# Generate frequency-domain waveform\nhp, hc = get_fd_waveform(\n    approximant='IMRPhenomD',\n    mass1=25,\n    mass2=20,\n    delta_f=delta_f,           # Frequency resolution (must match data)\n    f_lower=20                 # Lower frequency cutoff (Hz)\n)\n\n# Resize template to match PSD length\nhp.resize(len(psd))\n\n# Perform matched filtering\nsnr = matched_filter(\n    hp,\n    conditioned,\n    psd=psd,\n    low_frequency_cutoff=20\n)\n\n# Find peak SNR\nimport numpy as np\npeak_idx = np.argmax(abs(snr).numpy())\npeak_snr = abs(snr[peak_idx])\n```\n\n## Key Differences: Time vs Frequency Domain\n\n### Time Domain (`get_td_waveform`)\n- **Pros**: Works for all approximants, simpler to understand\n- **Cons**: Can be slower for long waveforms\n- **Use when**: Approximant doesn't support frequency domain, or you need time-domain manipulation\n\n### Frequency Domain (`get_fd_waveform`)\n- **Pros**: Faster for matched filtering, directly in frequency space\n- **Cons**: Not all approximants support it (e.g., SEOBNRv4_opt may not be available)\n- **Use when**: Approximant supports it and you want computational efficiency\n\n## Approximants\n\nCommon waveform approximants:\n\n```python\n# Phenomenological models (fast, good accuracy)\n'IMRPhenomD'      # Good for most binary black hole systems\n'IMRPhenomPv2'    # More accurate for precessing systems\n\n# Effective One-Body models (very accurate, slower)\n'SEOBNRv4_opt'    # Optimized EOB model (time-domain only typically)\n\n# Post-Newtonian models (approximate, fast)\n'TaylorT4'        # Post-Newtonian expansion\n```\n\n**Note**: Some approximants may not be available in frequency domain. If `get_fd_waveform` fails, use `get_td_waveform` instead.\n\n## Matched Filter Parameters\n\n### `low_frequency_cutoff`\n- Should match your high-pass filter cutoff (typically 15-20 Hz)\n- Templates are only meaningful above this frequency\n- Lower values = more signal, but more noise\n\n### Template Resizing\n- **Time domain**: `hp.resize(len(conditioned))` - match data length\n- **Frequency domain**: `hp.resize(len(psd))` - match PSD length\n- Critical for proper correlation\n\n### Crop Amounts\nAfter matched filtering, crop edges corrupted by:\n- **PSD filtering**: 4 seconds at both ends\n- **Template length**: Additional 4 seconds at start (for time-domain)\n- **Total**: `snr.crop(8, 4)` for time-domain, `snr.crop(4, 4)` for frequency-domain\n\n## Best Practices\n\n1. **Match sampling\u002Ffrequency resolution**: Template `delta_t`\u002F`delta_f` must match data\n2. **Resize templates correctly**: Time-domain → data length, Frequency-domain → PSD length\n3. **Crop after filtering**: Always crop edges corrupted by filtering\n4. **Use `abs()` for SNR**: Matched filter returns complex SNR; use magnitude\n5. **Handle failures gracefully**: Some approximants may not work for certain mass combinations\n\n## Common Issues\n\n**Problem**: \"Approximant not available\" error\n- **Solution**: Try time-domain instead of frequency-domain, or use different approximant\n\n**Problem**: Template size mismatch\n- **Solution**: Ensure template is resized to match data length (TD) or PSD length (FD)\n\n**Problem**: Poor SNR even with correct masses\n- **Solution**: Check that PSD low_frequency_cutoff matches your high-pass filter, verify data conditioning\n\n**Problem**: Edge artifacts in SNR time series\n- **Solution**: Increase crop amounts or verify filtering pipeline order\n\n## Dependencies\n\n```bash\npip install pycbc numpy\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) - Comprehensive tutorial demonstrating waveform generation, matched filtering in both time and frequency domains, and SNR analysis\n- [PyCBC Waveform Documentation](https:\u002F\u002Fpycbc.org\u002Fpycbc\u002Flatest\u002Fhtml\u002Fpycbc.waveform.html)\n- [PyCBC Filter Documentation](https:\u002F\u002Fpycbc.org\u002Fpycbc\u002Flatest\u002Fhtml\u002Fpycbc.filter.html)\n",{"name":5,"description":7},"main","7eeb258ada72b7f58119b0e7a2c00ea89d9beedd","tasks-no-skills\u002Fgravitational-wave-detection\u002Fenvironment\u002Fskills\u002Fmatched-filtering","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 matched-filtering",{"tool":52,"command":53},"bunx","bunx skills add Waaaalnut\u002Fskillsbench --skill matched-filtering",{"tool":55,"command":56},"pnpm","pnpm dlx skills add Waaaalnut\u002Fskillsbench --skill matched-filtering","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks-no-skills\u002Fgravitational-wave-detection\u002Fenvironment\u002Fskills\u002Fmatched-filtering\u002FSKILL.md",true,[],[61,74,89,115,135,152],{"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":71,"publishedAt":34},"01M6XEWMJ6VY3ZC53MPDCPG3GH","data-reconciliation","https:\u002F\u002Fgithub.com\u002FWaaaalnut\u002Fskillsbench\u002Fblob\u002Fmain\u002Ftasks\u002Fxlsx-recover-data\u002Fenvironment\u002Fskills\u002Fdata-reconciliation\u002FSKILL.md",[66],{"categoryNo":67,"categoryName":68,"taxonomyType":69,"taxonomyTypeDesc":70},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[72,73,20],"data reconciliation","reconciliation",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"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",[],[81,82,83,84,85,86,87,88],"speech","text","speech to text","transcribe video","whisper","model","Video","transcribe",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":100,"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",[95],{"categoryNo":96,"categoryName":97,"taxonomyType":98,"taxonomyTypeDesc":99},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",[87,101,102,103,104,105,33,106,107,108,109,110,111,112,113,24,114],"processor","video processor","batch","create","reels","parts","segments","process","videos","you","segment","filter","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":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",[121],{"categoryNo":96,"categoryName":97,"taxonomyType":98,"taxonomyTypeDesc":99},[29,123,124,125,33,110,26,126,127,128,129,107,130,131,87,132,133,134,24],"silence detector","title","slides","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":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",[],[111,142,87,22,143,144,145,31,33,146,147,107,110,148,149,24,150,151],"segment combiner","prepare","merge","video processing","outputs","combine","processing","consolidate","results","list",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":161,"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",[158],{"categoryNo":159,"categoryName":160,"taxonomyType":69,"taxonomyTypeDesc":70},"01JBSEEDCAT000000000000034","行政与办公人员",[162,163,164,111,33,31,110,28,148,165,166,167,24,145,168,87,169,170,104],"generator","report generator","report","statistics","structured","reports","json","compression","generate"]