read_master_time#

pydrad.parse.util.read_master_time(hydrad_root, read_from_cfg=False)[source]#

Get array of times that correspond to each timestep for the entire simulation.

Parameters:
  • hydrad_root (str or path-like)

  • read_from_cfg (bool, optional) – If True, create the time array from the cadence as specified in HYDRAD/config/hydrad.cfg and the start time as given in the first AMR file. Note that this is substantially faster than reading the time from every AMR file, but there may be small differences between these approximate time steps and the exact time steps listed in the AMR files.

Returns:

Quantity