roms_tools.tiling.join.join_netcdf#
- roms_tools.tiling.join.join_netcdf(files: str | Path | list[Path | str], output_path: Path | None = None, format: Literal['NETCDF4', 'NETCDF3_CLASSIC', 'NETCDF3_64BIT_OFFSET', 'NETCDF3_64BIT_DATA'] = 'NETCDF4') Path#
Join partitioned NetCDFs into a single dataset.
- Parameters:
files (str | List[str | Path]) – List or wildcard pattern describing files to join, e.g. “roms_rst.20121209133435.*.nc”
output_path (Path, optional) – If provided, the joined dataset will be saved to this path. Otherwise, the common base of pattern (e.g. roms_rst.20121209133435.nc) will be used.
format ({"NETCDF4", "NETCDF3_CLASSIC", "NETCDF3_64BIT_OFFSET", "NETCDF3_64BIT_DATA"}, optional) – NetCDF file format. Defaults to
"NETCDF4".
- Returns:
Path – The path of the saved file