specfem::io::NPY

template<typename OpType>
class NPY

NPY I/O backend for folder-based NumPy arrays.

Provides File, Group, and Dataset abstractions using folder structure with .npy files. Compatible with NumPy’s binary format for easy post-processing with Python.

Template Parameters:

OpType – Operation type (specfem::io::read or specfem::io::write)

Public Types

using IO_OpType = OpType

Operation type (read/write)

using File = impl::NPY::File<OpType>

NPY file implementation.

using Group = impl::NPY::Group<OpType>

NPY group implementation.

template<typename ViewType>
using Dataset = impl::NPY::Dataset<ViewType, OpType>

NPY dataset implementation