pyfvcom2.restart module

Functions for handling FVCOM restart files

pyfvcom2.restart.write_restart(template_file_path: str, output_path: str, data: dict, new_datetime: datetime | None = None) None[source]

Write data to a FVCOM restart file in NetCDF4 format

Args:

template_file_path (str): Path to the FVCOM restart template file. output_path (str): Path to save the FVCOM restart file. data (dict): Data to write to the restart file. new_datetime (str, optional): New datetime string to use, format ‘YYYY-MM-DD_HH:MM:SS’. Defaults to None.