roms_tools.Grid.copy_with_ds

roms_tools.Grid.copy_with_ds#

Grid.copy_with_ds(ds: Dataset) Grid#

Return a copy of this Grid with the given Dataset.

Grid metadata is preserved; only the backing xarray Dataset is replaced. The original Grid is not modified.