read_dmat
read_dmat(file_path)
Read a binary or ascii DMAT file and return a numpy array.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path
|
str
|
Path to the DMAT file. |
required |
Returns:
Name | Type | Description |
---|---|---|
data |
ndarray
|
The data in the DMAT file. |
Notes
dmat files are described well here
Examples:
# Read a DMAT file
data = gpytoolbox.read_dmat('data.dmat')
print(data)
Source code in src/gpytoolbox/read_dmat.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|