Closed hkershaw-brown closed 1 year ago
Conclusion from standup July 13th 2023: write_model_time should be dart time for files created by dart.
Existing model netcdf files do not have their time overwritten by dart.
Note there is a overwrite_time_in_output_file = .false.
in direct_netcdf_mod.f90 but it is hardcoded to false with this comment:
The default in CESM is to run with no leap year. For assimilating with real obs, we need to use the actual time.
Todos:
./xmlchange CALENDAR=GREGORIAN
Note on what happens if you don't set CALENDAR=GREGORIAN mom6 restart file has time in days from year 1. Starting the run at 2015-02-01:
If you don't have leap years switched on you end up with inconstant time information like this: Restart filename has the time 2015-02-11-00000. The Time variable is Time = 735151, which is 2013/10/11
read_model_time
read_model_time
is used for the move_ahead calculation. MOM6 Model time is days from year 1. This needs to be DART time (days from 1601) since that is what the observation times are.https://github.com/NCAR/DART/blob/502af7865e258530cba7c7daff6aed4390cbb649/assimilation_code/modules/assimilation/obs_model_mod.f90#L57-L65
Note the model_time for the whole ensemble is from the first ensemble member only: https://github.com/NCAR/DART/blob/502af7865e258530cba7c7daff6aed4390cbb649/assimilation_code/modules/io/state_vector_io_mod.f90#L288-L292
write_model_time
, is used for dart created files: inflation, mean. Should this be MOM6 time (days from year 1) to be consistent with the model restarts? Or DART time (days from 1601) to be consistent with the observations?