sloop.models.hycom3d.io.write_res

sloop.models.hycom3d.io.write_res(ds, outfile_pattern='{field}.res')[source]

Write a Dataset to an unformatted fortran files

One file per variable.

Parameters
  • ds (xarray.Dataset) –

  • outfile_pattern (str) – File pattern that must contain {field}

Returns

Dict of lists of written files, where keys are fields

Return type

dict