Skip to content
Back to skills

Io Raw Data

ASecurity

"Read, create, inspect, annotate, concatenate, save, and export

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
businesspythonawsapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill io-raw-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Io Raw Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Io Raw Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-io-raw-data/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-io-raw-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: io-raw-data
description: "Read, create, inspect, annotate, concatenate, save, and export
  MNE-Python Raw/Info data containers."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# IO and Raw Data

Use this sub-skill when the task starts from neurophysiology files or NumPy arrays and needs an MNE-Python `Raw`/`BaseRaw` object, `Info` metadata, channel picks/types, raw-level annotations, concatenation, preloading, FIF save, or external export.

## Route by task

- **Read a file**: choose `mne.io.read_raw()` for simple suffix-based dispatch, or a format-specific `read_raw_*` function when the format has sidecars, ambiguous suffixes, optional keyword choices, or better error messages. See [file-formats](references/file-formats.md) and [reader workflow](references/workflows.md#choose-a-reader).
- **Create synthetic data**: use `mne.create_info()` plus `mne.io.RawArray(data, info)` with data shaped `(n_channels, n_times)` and MNE SI units. See [RawArray workflow](references/workflows.md#build-a-rawarray-from-numpy-data) and the bundled helper [create_synthetic_raw.py](scripts/create_synthetic_raw.py).
- **Inspect or subset a Raw object**: use `raw.info`, `raw.ch_names`, `raw.n_times`, `raw.times`, `raw.get_data()`, `raw.pick()`, `raw.drop_channels()`, `raw.reorder_channels()`, `raw.rename_channels()`, and `raw.set_channel_types()`. See [API reference](references/api-reference.md#core-objects-and-methods).
- **Manage memory**: default readers keep data on disk; use `preload=True`, `preload="path.dat"`, or `raw.load_data(memmap="path.dat")` only when operations require writable in-memory data. Crop and pick before preloading when possible. See [preload workflow](references/workflows.md#manage-preload-and-memory).
- **Annotate raw spans**: create `mne.Annotations`, call `raw.set_annotations()`, and remember that descriptions beginning with `BAD` are respected by many later processing functions. See [annotations workflow](references/workflows.md#add-raw-level-annotations).
- **Concatenate or save/export**: use `mne.io.concatenate_raws()` or `raw.append()` only for compatible recordings; save MNE-native work with `raw.save(...raw.fif)`, and use `raw.export()` for BrainVision, EDF, or EEGLAB only when optional exporters are installed. See [save/export workflow](references/workflows.md#save-and-export-boundaries).

## Boundaries

Route these tasks elsewhere in the MNE-Python skill graph:

- Events, `Epochs`, `Evoked`, filtering, artifact rejection, ICA/SSP, and cleaning decisions → `preprocessing-epochs-evoked`.
- Raw plotting, browser backends, topomaps, figures, and reports → `visualization-reporting`.
- Source estimates, BEM, forward/inverse, morphing, and labels → `source-modeling-inverse`.
- CLI commands, dataset download/cache helpers, configuration, logging, and `sys_info` → `cli-datasets-config`.

## Operating rules

- Prefer verified public APIs in [API reference](references/api-reference.md); do not instantiate `BaseRaw` directly except for type checks.
- Treat `Raw` methods as mostly in-place. Use `raw.copy()` before experimental channel picking, cropping, type changes, annotation replacement, concatenation, or filtering.
- Do not make generated guidance depend on original repository files, examples, tests, or local environments. Source evidence was distilled into this subtree; use bundled references and scripts only at runtime.
- For reader failures, first identify the file family, sidecars, optional dependencies, preload choice, units, channel names/types, and whether generic dispatch masked a more specific reader error. See [troubleshooting](references/troubleshooting.md).

Files in this skill

  • SKILL.md3.6 KB
  • references/api-reference.md10 KB
  • references/file-formats.md6.3 KB
  • references/troubleshooting.md6.1 KB
  • references/workflows.md8 KB
  • scripts/create_synthetic_raw.py5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.