sloop.models.hycom3d.io.nc_to_res
- sloop.models.hycom3d.io.nc_to_res(ncfiles, outfile_pattern='{field}.res{ifile:03d}', preproc=None)[source]
Convert netcdf files to .res files
There is one .res file per variable and per netcdf file.
- Parameters
ncfiles (list) – List of netcdf files
outfile_pattern (str) – Pattern for .res file names. {field} refers to the Hycom variable name and {ifile} refers to the file index starting from 1.
preproc (callable) – Callable that operates on the input datasets after reading it
- Returns
List of output files
- Return type
dict