Read time variable and length from netCDF file in checkpointing