dartobsgen.mom6_time_to_datetime#

dartobsgen.mom6_time_to_datetime(raw_days)[source]#

Convert a MOM6 Time value (days since 0001-01-01) to the datetime DART sees.

Mirrors read_model_time in DART’s MOM6 model_mod.f90: whole days via floor, the fractional day converted to seconds and truncated to an integer. A daily-mean slice stamped at noon therefore maps to 12:00.

Parameters:

raw_days (float)

Return type:

datetime