Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtm1_0_85: Standardize time metadata #35

Merged
merged 10 commits into from
Jan 15, 2025

Conversation

samsrabin
Copy link
Contributor

@samsrabin samsrabin commented Jul 13, 2023

Description of changes

Standardizes a dimension name of output variable time_bounds, as well as attributes for that plus mcdate, mcsec, mdcur, and mscur.

Specific notes

Contributors other than yourself: @phillips-ad, @ekluzek

RTM Issues Fixed:

Are answers expected to change (and if so in what way)? No.

Any User Interface Changes (namelist or namelist defaults changes)? No.

Testing performed

New metadata in a history file from a short test:

netcdf standardize-time-metadata_rtm.rtm.h0.1850-01-06-00000 {
dimensions:
	...
	nbnd = 2 ;
	...
variables:
	...
	int mcdate(time) ;
		...
		mcdate:calendar = "noleap" ;
	int mcsec(time) ;
		...
		mcsec:calendar = "noleap" ;
	int mdcur(time) ;
		...
		mdcur:calendar = "noleap" ;
	int mscur(time) ;
		...
		mscur:calendar = "noleap" ;
	double time_bounds(time, nbnd) ;
		time_bounds:long_name = "time interval endpoints" ;
		time_bounds:units = "days since 1850-01-01 00:00:00" ;
		time_bounds:calendar = "noleap" ;

An arbitrarily-chosen CTSM test, ERS_D_Ld5.f10_f10_mg37.I2000Clm50BgcCropRtm.cheyenne_intel.rtm-rtmOnFloodOnEffvelOn, passed bit-for-bit against tag ctsm5.1.dev130, despite the changed metadata.

  • Reminder to update ChangeLog

Eliminate the 0th time step from RTM simulations

slevis resolved conflicts:
src/riverroute/RtmHistFile.F90
@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Nov 18, 2024

@slevis-lmwg reminder to self:
DONE Merge to master (without making new tags) updates to the ChangeLog for rtm tags 81, 82, 83 and for mosart tags 03, 04, 05.

Adding here separately to facilitate testing.
The RTM rpointer file now has the simulation timestamp in the filename

Have the restart pointer filenames for RTM with the simulation time-stamp in them. Make it backwards compatible to using filenames without the simulation time-stamp as well. This changes time-manager setup from reading in the restart time from the restart file -- to using the current time sent from the coupler. Previously you would EITHER call timemgr_init OR timemgr_restart. Now, you always call timemgr_init -- and only call timemgr_restart for a restart case, with most of what it does is to make sure the time on the restart file agrees with the time sent from the coupler.

Also remove use of shr_file_mod throughout the code.

Change the ChangeLog file into a markdown file and start using some markdown syntax.

Resolves: ESCOMP#53

Resolves: ESCOMP#46

PR
ESCOMP#57
@slevis-lmwg
Copy link
Contributor

@samsrabin your rtm PR here is ready for me to merge. Could you have a look and approve, as you see fit? Thanks!

@slevis-lmwg
Copy link
Contributor

Oh @samsrabin may not be eligible to approve his own PR. In fact I can probably approve it myself :-)))

Copy link
Contributor

@slevis-lmwg slevis-lmwg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes here agree with ESCOMP/MOSART#66. I will initiate testing and then make a new tag.
PASS ./run_sys_tests -s rtm -c rtm1_0_84-ctsm5.3.019 -g rtm1_0_85-ctsm5.3.019

@slevis-lmwg slevis-lmwg merged commit ddcf859 into ESCOMP:master Jan 15, 2025
@slevis-lmwg slevis-lmwg changed the title Standardize time metadata rtm1_0_85: Standardize time metadata Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Modify naming and attributes of time variables on history files to be consistent with other CESM components
3 participants