Open dataset parametersο
This page is intended to provide level of support/applicability of the various parameters that can be passed to the open_dataset function when dealing with the different dataset layouts. Tabular and trajectories datasets are recent additions to the anemoi-datasets package and are still under development. The meaning of the emojis, applied per layout column, is as follows:
β : Parameter has been tested and works for this layout.
π: Parameter will work, but has a slightly different meaning or behaviour for this layout.
β: Parameter is not applicable to this layout.
β: Parameter may work, but has not been tested with this layout.
π§ͺ: Parameter should work, but has not been tested with this layout.
β οΈ: Parameter may work, but the behaviour is not fully understood.
π οΈ: Will work in the future. Not yet implemented or tested, but expected to work without major issues.
ποΈ: Is obsolete and will be removed in the future. Should not be used for new code, but may still work for now. Will be removed in a future release.
Warning
Datasets of different layouts cannot be combined. So concat, join, and similar operations are not supported between layouts. The table below assumes that when combining datasets, they have the same layout. See Dataset layouts for more information.
parameter |
gridded |
tabular |
trajectories |
comment |
adjust |
β |
β οΈ |
β οΈ |
Adjustment mode when combining datasets, e.g. select common dates, variables, etc. This needs testing and possibly decision on expected behaviour for tabular and trajectory datasets. |
area |
β |
β |
π§ͺ |
Spatial cropping area as a list [lon_min, lat_min, lon_max, lat_max]. |
base_end |
β |
β |
β |
Trajectories only: filter the base-date axis directly (no valid-time envelope logic). See Trajectories-only options. |
base_start |
β |
β |
β |
Trajectories only: filter the base-date axis directly (no valid-time envelope logic). See Trajectories-only options. |
chain |
ποΈ |
ποΈ |
ποΈ |
Experimental chain operation. Same behaviour as concat, but does not check that the dates are continous. Will be removed in the future. |
concat |
β |
β οΈ |
π§ͺ |
Concatanate two or more datasets along the time dimension. That may work, but the behaviour of the windowing at the seam is not well defined. So it should be skipped for now. |
complement |
β |
β |
π§ͺ |
Complement/cutout configuration (used for creating complements). |
cutout |
β |
β |
π§ͺ |
List of datasets used as cutouts for complements/cutout operations. |
drop |
β |
π§ͺ |
π§ͺ |
Variables to drop (list). |
end |
β |
π |
π |
Set the end date for the opened dataset. For gridded datasets,
the date must be present in the dataset. For tabular datasets,
the date is used as-is, and any windows requested between the
actual end of date of the data and that date will return empty
arrays (See Tabular). For trajectories, the
date applies to the validity-time envelope: a base date is
kept iff |
ensemble |
β |
β |
π§ͺ |
List of datasets forming an ensemble (e.g. |
fill_missing_dates |
β |
β |
β |
Method to fill missing dates (βinterpolateβ or βclosestβ). Trajectories have no missing-date concept. |
fill_missing_gaps |
β |
β |
β |
Fill virtual datasets for gaps when concatenating. |
frequency |
β |
π |
π |
For gridded dataset, select the frequency of the return sample;
it must be a multiple of the dataset frequency. For tabular
datasets, it is used to create windows of the specified
frequency (e.g. β1Dβ for daily windows) and is not connected to
the dataset frequency (which is undefined) (See
Tabular). For trajectories, |
grids |
β |
β |
π§ͺ |
List of grids/datasets to combine as multiple grid sources. |
interpolate_frequency |
β |
β |
π§ͺ |
Frequency used to interpolate a dataset to a higher temporal resolution. |
interpolate_variables |
β |
β |
π§ͺ |
Variables to interpolate spatially (with optional
|
interpolation |
β |
β |
π§ͺ |
Interpolation method (example: βnearestβ). |
join |
β |
π§ͺ |
π§ͺ |
Join two or more datasets along the variable dimension. |
max_distance |
β |
β |
π§ͺ |
Maximum distance used by spatial interpolation (e.g. nearest-neighbour). |
member, members |
β |
β |
π§ͺ |
0-based member selection (see number for 1-based selection). |
merge |
β |
β |
π§ͺ |
Merge operation key to combine datasets by overlaying fields. |
name |
β |
β |
β |
Experimental. Optional name assigned to the resulting dataset subset that can be used to name masks that will be retrieved in inference. |
number, numbers |
β |
β |
π§ͺ |
1-based member selection (see member for 0-based selection). |
reorder |
β |
π§ͺ |
π§ͺ |
Reorder variables (list or mapping). |
rename |
β |
π§ͺ |
π§ͺ |
Rename variables mapping. |
rescale |
β |
π οΈ |
π§ͺ |
Rescaling mapping/tuples/units for variables. |
select |
β |
β |
π§ͺ |
Select variables (list, set or string). |
set_missing_dates |
β |
β |
β |
Debug option: list of dates to mark as missing. |
shuffle |
ποΈ |
ποΈ |
ποΈ |
Boolean to shuffle dataset indices when subsetting. |
skip_missing_dates |
β |
β |
β |
Boolean: skip missing dates when iterating (requires
|
source |
β |
β |
π§ͺ |
Source dataset name/path used in complement examples. |
start |
β |
π |
π |
Set the start date for the opened dataset. For gridded
datasets, the date must be present in the dataset. For tabular
datasets, the date is used as-is, and any windows requested
between that date and the actual start of date of the data will
return empty arrays (See Tabular). For
trajectories, |
statistics |
β |
π§ͺ |
π§ͺ |
Use the statistics of another dataset. |
step |
β |
β |
β |
Trajectories only: select a single forecast step. Returns a
4-D view |
step_end |
β |
β |
β |
Trajectories only: end of a step-axis range selection. |
step_frequency |
β |
β |
β |
Trajectories only: frequency for a step-axis range selection. |
step_start |
β |
β |
β |
Trajectories only: start of a step-axis range selection. |
steps |
β |
β |
β |
Trajectories only: list of forecast steps to retain. Keeps the 5-D shape with the step axis narrowed. See Trajectories-only options. |
thinning |
β |
β |
π§ͺ |
Thinning factor or proportion. |
trim_edge |
β |
β |
π§ͺ |
Tuple to trim edges of the grid (e.g. |
window |
β |
β |
β |
Window specification for tabular datasets. For gridded and trajectory datasets, that parameter is ignored. See Tabular for details. |
x |
ποΈ |
ποΈ |
ποΈ |
Experimental: x coordinate for xy selection. |
xy |
ποΈ |
ποΈ |
ποΈ |
Experimental xy selection mode. |
y |
ποΈ |
ποΈ |
ποΈ |
Experimental: y coordinate for xy selection. |
zip |
ποΈ |
ποΈ |
ποΈ |
Experimental zip mode to combine datasets. |