yt.frontends.ramses.io module

class yt.frontends.ramses.io.IOHandlerRAMSES(ds)[source]

Bases: BaseIOHandler

io_iter(chunks, fields: list[tuple[str, str]])
peek(grid, field)
preload(chunk, fields: list[tuple[str, str]], max_size)
push(grid, field, data)
yt.frontends.ramses.io.convert_ramses_ages(ds, conformal_ages)[source]
yt.frontends.ramses.io.convert_ramses_conformal_time_to_physical_time(ds, conformal_time: ndarray) unyt_array[source]

Convert conformal times (as defined in RAMSES) to physical times.

Parameters:
  • ds (RAMSESDataset) – The RAMSES dataset to use for the conversion

  • conformal_time (np.ndarray) – The conformal time as read from disk

Returns:

physical_age – The physical age in code units

Return type:

np.ndarray