adjusted NetCdfWriter for writing necessary information for Checkpointing