[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BQWHPPQJGFC26K3S03H07P":3,"skill-same:01M7BQWHPPQJGFC26K3S03H07P":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7BQWHPPQJGFC26K3S03H07P","obspy-data-api",null,"An overview of the core data API of ObsPy, a Python framework for processing seismological data. It is useful for parsing common seismological file formats, or manipulating custom data into standard objects for downstream use cases such as ObsPy's signal processing routines or SeisBench's modeling API.","linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fdata\u002Fskillsbench87\u002Freferences\u002Fseismic-phase-picking\u002Fskills\u002Fobspy-data-api\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: obspy-data-api\ndescription: An overview of the core data API of ObsPy, a Python framework for processing seismological data. It is useful for parsing common seismological file formats, or manipulating custom data into standard objects for downstream use cases such as ObsPy's signal processing routines or SeisBench's modeling API.\n---\n\n# ObsPy Data API\n\n## Waveform Data\n\n### Summary\n\nSeismograms of various formats (e.g. SAC, MiniSEED, GSE2, SEISAN, Q, etc.) can be imported into a `Stream` object using the `read()` function.\n\nStreams are list-like objects which contain multiple `Trace` objects, i.e. gap-less continuous time series and related header\u002Fmeta information.\n\nEach Trace object has the attribute `data` pointing to a NumPy `ndarray` of the actual time series and the attribute `stats` which contains all meta information in a dict-like `Stats` object. Both attributes `starttime` and `endtime` of the Stats object are `UTCDateTime` objects.\n\nA multitude of helper methods are attached to `Stream` and `Trace` objects for handling and modifying the waveform data.\n\n### Stream and Trace Class Structure\n\n**Hierarchy:** `Stream` → `Trace` (multiple)\n\n**Trace - DATA:**\n- `data` → NumPy array\n- `stats`:\n  - `network`, `station`, `location`, `channel` — Determine physical location and instrument\n  - `starttime`, `sampling_rate`, `delta`, `endtime`, `npts` — Interrelated\n\n**Trace - METHODS:**\n- `taper()` — Tapers the data.\n- `filter()` — Filters the data.\n- `resample()` — Resamples the data in the frequency domain.\n- `integrate()` — Integrates the data with respect to time.\n- `remove_response()` — Deconvolves the instrument response.\n\n### Column-to-channel mapping contract for custom arrays\n\nWhen converting a custom two-dimensional array into ObsPy traces, validate the relationship between array columns and channel metadata before constructing the `Stream`:\n\n1. Record `n_columns`, parse the supplied channel labels, and compare the two counts. Direct positional mapping is valid only when the metadata defines one reliable label for every data column.\n2. If the counts differ, do not write `for i, label in enumerate(labels): Trace(data[:, i])`. That pattern silently truncates unlabelled columns and can turn a non-empty recording into an all-zero Stream.\n3. Audit every data column independently for finite-value coverage, non-zero occupancy, and an energy statistic such as RMS. Preserve every signal-bearing column while resolving the mapping from an explicit schema, component suffixes, or other source metadata.\n4. A single component label attached to a multi-column storage array does not prove that the label belongs to column 0. For example, if the only label denotes a vertical component and only one slot contains signal, map the label to the demonstrably signal-bearing slot rather than discarding it by position.\n5. If multiple columns contain signal but the available metadata cannot establish their component order, record the ambiguity and seek an auditable schema or model-supported missing-component policy. Do not fabricate orientations, silently drop active columns, or claim a confident three-component mapping.\n6. Before downstream processing, print or assert the final `source column -> Trace channel` mapping and verify that each constructed Trace has the expected sample count and non-zero\u002Ffinite statistics.\n\n### Example\n\nA `Stream` with an example seismogram can be created by calling `read()` without any arguments. Local files can be read by specifying the filename, files stored on http servers (e.g. at https:\u002F\u002Fexamples.obspy.org) can be read by specifying their URL.\n\n```python\n>>> from obspy import read\n>>> st = read()\n>>> print(st)\n3 Trace(s) in Stream:\nBW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - ... | 100.0 Hz, 3000 samples\nBW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - ... | 100.0 Hz, 3000 samples\nBW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - ... | 100.0 Hz, 3000 samples\n>>> tr = st[0]\n>>> print(tr)\nBW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - ... | 100.0 Hz, 3000 samples\n>>> tr.data\narray([ 0.        ,  0.00694644,  0.07597424, ...,  1.93449584,\n        0.98196204,  0.44196924])\n>>> print(tr.stats)\n         network: BW\n         station: RJOB\n        location:\n         channel: EHZ\n       starttime: 2009-08-24T00:20:03.000000Z\n         endtime: 2009-08-24T00:20:32.990000Z\n   sampling_rate: 100.0\n           delta: 0.01\n            npts: 3000\n           calib: 1.0\n           ...\n>>> tr.stats.starttime\nUTCDateTime(2009, 8, 24, 0, 20, 3)\n```\n\n## Event Metadata\n\nEvent metadata are handled in a hierarchy of classes closely modelled after the de-facto standard format [QuakeML](https:\u002F\u002Fquake.ethz.ch\u002Fquakeml\u002F). See `read_events()` and `Catalog.write()` for supported formats.\n\n### Event Class Structure\n\n**Hierarchy:** `Catalog` → `events` → `Event` (multiple)\n\n**Event contains:**\n- `origins` → `Origin` (multiple)\n  - `latitude`, `longitude`, `depth`, `time`, ...\n- `magnitudes` → `Magnitude` (multiple)\n  - `mag`, `magnitude_type`, ...\n- `picks`\n- `focal_mechanisms`\n\n## Station Metadata\n\nStation metadata are handled in a hierarchy of classes closely modelled after the de-facto standard format [FDSN StationXML](https:\u002F\u002Fwww.fdsn.org\u002Fxml\u002Fstation\u002F) which was developed as a human readable XML replacement for Dataless SEED. See `read_inventory()` and `Inventory.write()` for supported formats.\n\n### Inventory Class Structure\n\n**Hierarchy:** `Inventory` → `networks` → `Network` → `stations` → `Station` → `channels` → `Channel`\n\n**Network:**\n- `code`, `description`, ...\n\n**Station:**\n- `code`, `latitude`, `longitude`, `elevation`, `start_date`, `end_date`, ...\n\n**Channel:**\n- `code`, `location_code`, `latitude`, `longitude`, `elevation`, `depth`, `dip`, `azimuth`, `sample_rate`, `start_date`, `end_date`, `response`, ...\n\n## Classes & Functions\n\n| Class\u002FFunction | Description |\n|----------------|-------------|\n| `read` | Read waveform files into an ObsPy `Stream` object. |\n| `Stream` | List-like object of multiple ObsPy `Trace` objects. |\n| `Trace` | An object containing data of a continuous series, such as a seismic trace. |\n| `Stats` | A container for additional header information of an ObsPy `Trace` object. |\n| `UTCDateTime` | A UTC-based datetime object. |\n| `read_events` | Read event files into an ObsPy `Catalog` object. |\n| `Catalog` | Container for `Event` objects. |\n| `Event` | Describes a seismic event which does not necessarily need to be a tectonic earthquake. |\n| `read_inventory` | Function to read inventory files. |\n| `Inventory` | The root object of the `Network` → `Station` → `Channel` hierarchy. |\n\n## Modules\n\n| Module | Description |\n|--------|-------------|\n| `obspy.core.trace` | Module for handling ObsPy `Trace` and `Stats` objects. |\n| `obspy.core.stream` | Module for handling ObsPy `Stream` objects. |\n| `obspy.core.utcdatetime` | Module containing a UTC-based datetime class. |\n| `obspy.core.event` | Module handling event metadata. |\n| `obspy.core.inventory` | Module for handling station metadata. |\n| `obspy.core.util` | Various utilities for ObsPy. |\n| `obspy.core.preview` | Tools for creating and merging previews. |\n","# ObsPy Data API\n\n## Waveform Data\n\n### Summary\n\nSeismograms of various formats (e.g. SAC, MiniSEED, GSE2, SEISAN, Q, etc.) can be imported into a `Stream` object using the `read()` function.\n\nStreams are list-like objects which contain multiple `Trace` objects, i.e. gap-less continuous time series and related header\u002Fmeta information.\n\nEach Trace object has the attribute `data` pointing to a NumPy `ndarray` of the actual time series and the attribute `stats` which contains all meta information in a dict-like `Stats` object. Both attributes `starttime` and `endtime` of the Stats object are `UTCDateTime` objects.\n\nA multitude of helper methods are attached to `Stream` and `Trace` objects for handling and modifying the waveform data.\n\n### Stream and Trace Class Structure\n\n**Hierarchy:** `Stream` → `Trace` (multiple)\n\n**Trace - DATA:**\n- `data` → NumPy array\n- `stats`:\n  - `network`, `station`, `location`, `channel` — Determine physical location and instrument\n  - `starttime`, `sampling_rate`, `delta`, `endtime`, `npts` — Interrelated\n\n**Trace - METHODS:**\n- `taper()` — Tapers the data.\n- `filter()` — Filters the data.\n- `resample()` — Resamples the data in the frequency domain.\n- `integrate()` — Integrates the data with respect to time.\n- `remove_response()` — Deconvolves the instrument response.\n\n### Column-to-channel mapping contract for custom arrays\n\nWhen converting a custom two-dimensional array into ObsPy traces, validate the relationship between array columns and channel metadata before constructing the `Stream`:\n\n1. Record `n_columns`, parse the supplied channel labels, and compare the two counts. Direct positional mapping is valid only when the metadata defines one reliable label for every data column.\n2. If the counts differ, do not write `for i, label in enumerate(labels): Trace(data[:, i])`. That pattern silently truncates unlabelled columns and can turn a non-empty recording into an all-zero Stream.\n3. Audit every data column independently for finite-value coverage, non-zero occupancy, and an energy statistic such as RMS. Preserve every signal-bearing column while resolving the mapping from an explicit schema, component suffixes, or other source metadata.\n4. A single component label attached to a multi-column storage array does not prove that the label belongs to column 0. For example, if the only label denotes a vertical component and only one slot contains signal, map the label to the demonstrably signal-bearing slot rather than discarding it by position.\n5. If multiple columns contain signal but the available metadata cannot establish their component order, record the ambiguity and seek an auditable schema or model-supported missing-component policy. Do not fabricate orientations, silently drop active columns, or claim a confident three-component mapping.\n6. Before downstream processing, print or assert the final `source column -> Trace channel` mapping and verify that each constructed Trace has the expected sample count and non-zero\u002Ffinite statistics.\n\n### Example\n\nA `Stream` with an example seismogram can be created by calling `read()` without any arguments. Local files can be read by specifying the filename, files stored on http servers (e.g. at https:\u002F\u002Fexamples.obspy.org) can be read by specifying their URL.\n\n```python\n>>> from obspy import read\n>>> st = read()\n>>> print(st)\n3 Trace(s) in Stream:\nBW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - ... | 100.0 Hz, 3000 samples\nBW.RJOB..EHN | 2009-08-24T00:20:03.000000Z - ... | 100.0 Hz, 3000 samples\nBW.RJOB..EHE | 2009-08-24T00:20:03.000000Z - ... | 100.0 Hz, 3000 samples\n>>> tr = st[0]\n>>> print(tr)\nBW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z - ... | 100.0 Hz, 3000 samples\n>>> tr.data\narray([ 0.        ,  0.00694644,  0.07597424, ...,  1.93449584,\n        0.98196204,  0.44196924])\n>>> print(tr.stats)\n         network: BW\n         station: RJOB\n        location:\n         channel: EHZ\n       starttime: 2009-08-24T00:20:03.000000Z\n         endtime: 2009-08-24T00:20:32.990000Z\n   sampling_rate: 100.0\n           delta: 0.01\n            npts: 3000\n           calib: 1.0\n           ...\n>>> tr.stats.starttime\nUTCDateTime(2009, 8, 24, 0, 20, 3)\n```\n\n## Event Metadata\n\nEvent metadata are handled in a hierarchy of classes closely modelled after the de-facto standard format [QuakeML](https:\u002F\u002Fquake.ethz.ch\u002Fquakeml\u002F). See `read_events()` and `Catalog.write()` for supported formats.\n\n### Event Class Structure\n\n**Hierarchy:** `Catalog` → `events` → `Event` (multiple)\n\n**Event contains:**\n- `origins` → `Origin` (multiple)\n  - `latitude`, `longitude`, `depth`, `time`, ...\n- `magnitudes` → `Magnitude` (multiple)\n  - `mag`, `magnitude_type`, ...\n- `picks`\n- `focal_mechanisms`\n\n## Station Metadata\n\nStation metadata are handled in a hierarchy of classes closely modelled after the de-facto standard format [FDSN StationXML](https:\u002F\u002Fwww.fdsn.org\u002Fxml\u002Fstation\u002F) which was developed as a human readable XML replacement for Dataless SEED. See `read_inventory()` and `Inventory.write()` for supported formats.\n\n### Inventory Class Structure\n\n**Hierarchy:** `Inventory` → `networks` → `Network` → `stations` → `Station` → `channels` → `Channel`\n\n**Network:**\n- `code`, `description`, ...\n\n**Station:**\n- `code`, `latitude`, `longitude`, `elevation`, `start_date`, `end_date`, ...\n\n**Channel:**\n- `code`, `location_code`, `latitude`, `longitude`, `elevation`, `depth`, `dip`, `azimuth`, `sample_rate`, `start_date`, `end_date`, `response`, ...\n\n## Classes & Functions\n\n| Class\u002FFunction | Description |\n|----------------|-------------|\n| `read` | Read waveform files into an ObsPy `Stream` object. |\n| `Stream` | List-like object of multiple ObsPy `Trace` objects. |\n| `Trace` | An object containing data of a continuous series, such as a seismic trace. |\n| `Stats` | A container for additional header information of an ObsPy `Trace` object. |\n| `UTCDateTime` | A UTC-based datetime object. |\n| `read_events` | Read event files into an ObsPy `Catalog` object. |\n| `Catalog` | Container for `Event` objects. |\n| `Event` | Describes a seismic event which does not necessarily need to be a tectonic earthquake. |\n| `read_inventory` | Function to read inventory files. |\n| `Inventory` | The root object of the `Network` → `Station` → `Channel` hierarchy. |\n\n## Modules\n\n| Module | Description |\n|--------|-------------|\n| `obspy.core.trace` | Module for handling ObsPy `Trace` and `Stats` objects. |\n| `obspy.core.stream` | Module for handling ObsPy `Stream` objects. |\n| `obspy.core.utcdatetime` | Module containing a UTC-based datetime class. |\n| `obspy.core.event` | Module handling event metadata. |\n| `obspy.core.inventory` | Module for handling station metadata. |\n| `obspy.core.util` | Various utilities for ObsPy. |\n| `obspy.core.preview` | Tools for creating and merging previews. |\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fdata\u002Fskillsbench87\u002Freferences\u002Fseismic-phase-picking\u002Fskills\u002Fobspy-data-api",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill obspy-data-api",{"tool":37,"command":38},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill obspy-data-api",{"tool":40,"command":41},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill obspy-data-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fdata\u002Fskillsbench87\u002Freferences\u002Fseismic-phase-picking\u002Fskills\u002Fobspy-data-api\u002FSKILL.md",true,[],[46,53,60,67,72,77],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":68,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":73,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":78,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]