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
area
Area | None
Read only data inside (horizontal) area given as a bounding box (tuple with left, lower, right, upper), as list of coordinates for a polygon, or as a Polygon or MultiPolygon with __geo_interface__ (e.g. shapely), by default None. Elements are selected when their centre is inside the area or on its boundary.
None
x
float | None
Read only data for elements containing the (x,y,z) points(s)
None
y
float | None
Read only data for elements containing the (x,y,z) points(s)
None
z
float | None
Read only data for elements containing the (x,y,z) points(s)
None
layers
int | Layer | Sequence[int] | None
Read only data for specific layers, by default None
None
elements
Sequence[int] | np.ndarray | None
Read only selected element ids, by default None
None
error_bad_data
bool
raise error if data is corrupt, by default True,
True
fill_bad_data_value
float
fill value for to impute corrupt data, used in conjunction with error_bad_data=False default np.nan
np.nan
dtype
Any
Deprecated since v3.4: the parameter will be removed in v4.0, data is always read as np.float32. Use Dataset.astype() instead.