sdf_xarray.open_dataset#
- sdf_xarray.open_dataset(path, *, drop_variables=None, keep_particles=False, probe_names=None, deck_path=None)[source]#
Open an SDF file as a
xarray.Dataset. Variables related toboundaries,cpuandoutputfile are excluded as they are problematic. If you wish to load these variables in see Loading raw files.- Parameters:
- Return type:
Examples
>>> ds = open_dataset("0000.sdf") >>> ds["Electric_Field"]["Ex"].values # Access Electric_Field_Ex data