mpas_analysis.shared.timekeeping.utility.get_simulation_start_time

mpas_analysis.shared.timekeeping.utility.get_simulation_start_time(streams)[source]

Given a StreamsFile object, returns the simulation start time parsed from a restart file.

Parameters
steamsStreamsFile object

For parsing an MPAS streams file

Returns
simulation_start_timestr

The start date of the simulation parsed from a restart file identified by the contents of streams.

Raises
IOError

If no restart file can be found.