[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BVM6PYZ278ZGRYRJ2F3DF3":3,"skill-same:01M7BVM6PYZ278ZGRYRJ2F3DF3":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},"01M7BVM6PYZ278ZGRYRJ2F3DF3","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\u002Fresults\u002FMMG2Skill-Opus47-Gold15-20260924\u002Fruns\u002Fmmg2skill-opus47-gold15-20260924\u002Fseismic-phase-picking-mmg2skill-opus47-r001\u002Finputs\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## Waveform Data\n### Summary\nSeismograms of various formats (e.g. SAC, MiniSEED, GSE2, SEISAN, Q, etc.) can be imported into a `Stream` object using the `read()` function.\nStreams are list-like objects which contain multiple `Trace` objects, i.e. gap-less continuous time series and related header\u002Fmeta information.\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.\nA multitude of helper methods are attached to `Stream` and `Trace` objects for handling and modifying the waveform data.\n### Stream and Trace Class Structure\n**Hierarchy:** `Stream` → `Trace` (multiple)\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**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### Example\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```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## Event Metadata\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### Event Class Structure\n**Hierarchy:** `Catalog` → `events` → `Event` (multiple)\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## Station Metadata\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### Inventory Class Structure\n**Hierarchy:** `Inventory` → `networks` → `Network` → `stations` → `Station` → `channels` → `Channel`\n**Network:**\n- `code`, `description`, ...\n**Station:**\n- `code`, `latitude`, `longitude`, `elevation`, `start_date`, `end_date`, ...\n**Channel:**\n- `code`, `location_code`, `latitude`, `longitude`, `elevation`, `depth`, `dip`, `azimuth`, `sample_rate`, `start_date`, `end_date`, `response`, ...\n## Classes & Functions\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## Modules\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## Building Traces from NPZ Trace Files\nWhen trace data comes as `.npz` files with fields `data` (shape `(N_samples, N_channels)`), `dt` (sampling interval in seconds), and `channels` (comma-separated channel names), do the following before constructing a `Stream`:\n1. Inspect the declared shape vs. actual content. Some files declare 3 channels but store real data in only 1–2 columns with the remaining columns zero-padded (e.g. patterns like `(0,0,1)`, `(0,1,0)`, `(1,1,0)`). Detect zero-columns via `np.count_nonzero(col) == 0`.\n2. Keep only the non-zero columns and map them positionally onto the declared channel names — do not blindly attach all three declared channel codes to zero-padded columns, since SeisBench\u002FEQTransformer will otherwise train on junk channels and miss picks.\n3. Build one `obspy.Trace` per surviving channel, setting `stats.delta = dt`, `stats.sampling_rate = 1\u002Fdt`, and `stats.channel` to the mapped code, then assemble them into a `Stream`.\nThis is the single largest coverage lever observed: extracting non-zero columns before ingestion raised files-with-picks from ~65 to 95 out of 100.\n","# ObsPy Data API\n## Waveform Data\n### Summary\nSeismograms of various formats (e.g. SAC, MiniSEED, GSE2, SEISAN, Q, etc.) can be imported into a `Stream` object using the `read()` function.\nStreams are list-like objects which contain multiple `Trace` objects, i.e. gap-less continuous time series and related header\u002Fmeta information.\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.\nA multitude of helper methods are attached to `Stream` and `Trace` objects for handling and modifying the waveform data.\n### Stream and Trace Class Structure\n**Hierarchy:** `Stream` → `Trace` (multiple)\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**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### Example\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```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## Event Metadata\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### Event Class Structure\n**Hierarchy:** `Catalog` → `events` → `Event` (multiple)\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## Station Metadata\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### Inventory Class Structure\n**Hierarchy:** `Inventory` → `networks` → `Network` → `stations` → `Station` → `channels` → `Channel`\n**Network:**\n- `code`, `description`, ...\n**Station:**\n- `code`, `latitude`, `longitude`, `elevation`, `start_date`, `end_date`, ...\n**Channel:**\n- `code`, `location_code`, `latitude`, `longitude`, `elevation`, `depth`, `dip`, `azimuth`, `sample_rate`, `start_date`, `end_date`, `response`, ...\n## Classes & Functions\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## Modules\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## Building Traces from NPZ Trace Files\nWhen trace data comes as `.npz` files with fields `data` (shape `(N_samples, N_channels)`), `dt` (sampling interval in seconds), and `channels` (comma-separated channel names), do the following before constructing a `Stream`:\n1. Inspect the declared shape vs. actual content. Some files declare 3 channels but store real data in only 1–2 columns with the remaining columns zero-padded (e.g. patterns like `(0,0,1)`, `(0,1,0)`, `(1,1,0)`). Detect zero-columns via `np.count_nonzero(col) == 0`.\n2. Keep only the non-zero columns and map them positionally onto the declared channel names — do not blindly attach all three declared channel codes to zero-padded columns, since SeisBench\u002FEQTransformer will otherwise train on junk channels and miss picks.\n3. Build one `obspy.Trace` per surviving channel, setting `stats.delta = dt`, `stats.sampling_rate = 1\u002Fdt`, and `stats.channel` to the mapped code, then assemble them into a `Stream`.\nThis is the single largest coverage lever observed: extracting non-zero columns before ingestion raised files-with-picks from ~65 to 95 out of 100.\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FMMG2Skill-Opus47-Gold15-20260924\u002Fruns\u002Fmmg2skill-opus47-gold15-20260924\u002Fseismic-phase-picking-mmg2skill-opus47-r001\u002Finputs\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\u002Fresults\u002FMMG2Skill-Opus47-Gold15-20260924\u002Fruns\u002Fmmg2skill-opus47-gold15-20260924\u002Fseismic-phase-picking-mmg2skill-opus47-r001\u002Finputs\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",[],[]]