compass.landice.tests.ismip7_forcing.fracture.remap_utils.add_xtime_and_write
- compass.landice.tests.ismip7_forcing.fracture.remap_utils.add_xtime_and_write(ds, years, output_file)[source]
Add an
xtimevariable (January 1st of each year), drop auxiliary remapping variables, and write the dataset.- Parameters:
ds (xarray.Dataset) – The dataset to finalize (annual fields applied at the start of the year)
years (numpy.ndarray) – The integer years, one per Time index
output_file (str) – Output file path