FieldModelDataset

class disco.readers.FieldModelDataset[source]

Bases: object

This is an abstract base class to provide delayed loading for simulation output.

__getitem__(index)[source]

Return field model for current index of the simulation dataset.

Parameters:
index: timestamp index, >= 0, and less then len(self)
Returns:
instance of disco.FieldModel with one timestep
__len__()[source]

Return length of the dataset in number of indices.

Returns:
integer number of timesteps

Notes

See also: disco.DynamicFieldModelLoader

Methods Summary

get_time_axis()

Get time axis with length equal to len(self)

Methods Documentation

get_time_axis()[source]

Get time axis with length equal to len(self)

Returns:
array with units of time, and size equal to len(self)