read_data

dustpy.utils.read_data(data, filename='data', extension='hdf5', Na=50)[source]

Function returns a SimpleNamespace with the most useful data that can be used for plotting or other purposes. This avoids reading the entirety of data files.

Parameters:
  • data (str | dustpy.Simulation) – Either a path to the data directory or a TriPoD simulation frame

  • filename (str, optional, default: "data") – Stem of the data files in the data directory

  • extension (str, optional, default: "hdf5") – File extension of the data file in the data directory

Returns:

data – SimpleNamespace with the extracted data fields

Return type:

SimpleNamespace