0
# Input/Output
1
2
File I/O operations supporting HDF5 and CSV formats with full metadata preservation.
3
4
## Capabilities
5
6
### HDF5 Operations
7
8
Functions for reading and writing HDF5 files with complete scipp metadata support.
9
10
```python { .api }
11
def load_hdf5(filename):
12
"""
13
Load data from HDF5 file
14
15
Args:
16
filename (str): Path to HDF5 file
17
18
Returns:
19
Variable or DataArray or Dataset: Loaded data
20
"""
21
22
def save_hdf5(data, filename):
23
"""
24
Save data to HDF5 file
25
26
Args:
27
data (Variable or DataArray or Dataset): Data to save
28
filename (str): Output file path
29
"""
30
```
31
32
### CSV Operations
33
34
Functions for reading CSV files into scipp data structures.
35
36
```python { .api }
37
def load_csv(filename, **kwargs):
38
"""
39
Load data from CSV file
40
41
Args:
42
filename (str): Path to CSV file
43
**kwargs: Additional arguments for CSV parsing
44
45
Returns:
46
DataArray: Loaded data with inferred structure
47
"""
48
```