Dfs1
Class for reading/writing dfs1 files.
Parameters
| filename |
str | Path |
Path to dfs1 file |
required |
Methods
| read |
Read data from a dfs1 file. |
read
Dfs1.read(items=None, time=None, keepdims=False, dtype=np.float32)
Read data from a dfs1 file.
Parameters
| items |
str | int | Sequence[str | int] | None |
Read only selected items, by number (0-based), or by name |
None |
| time |
int | str | slice | Sequence[int] | None |
Read only selected time steps, by default None (=all) |
None |
| keepdims |
bool |
When reading a single time step only, should the time-dimension be kept in the returned Dataset? by default: False |
False |
| dtype |
Any |
Define the dtype of the returned dataset (default = np.float32) |
np.float32 |