Skip to main content

Module xarray_io

Module xarray_io 

Source
Expand description

xarray-compatible multi-dimensional labeled array I/O.

Provides XarrayDataArray and XarrayDataset mirroring the Python xarray data model, together with CSV round-trip, VTK export, and array operations such as resampling, time-averaging, and finite-difference gradients.

Structs§

XarrayCoordinate
A labeled coordinate axis.
XarrayDataArray
A labeled N-dimensional array (mirrors xarray.DataArray).
XarrayDataset
A collection of XarrayDataArray variables (mirrors xarray.Dataset).

Functions§

linear_index
Compute the C-order (row-major) flat index from multi-dimensional indices.
read_csv_xarray
Read a labeled CSV back into an XarrayDataArray.
resample_linear
Resample an array to a new shape using nearest-neighbour / linear interpolation.
spatial_gradient
Compute the finite-difference gradient of an array along dimension dim.
time_average
Average an array along dimension time_dim.
write_csv_xarray
Write each variable in the dataset as a CSV file.
xarray_to_vtk_structured
Export a 3-D variable from a dataset as a VTK structured grid.