Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Coupler history file output

Recently, I discovered this answer from Jim Edwards in a thread from 2022 regarding a question about the coupler history file designations in env_run.xml:

"Coupler output frequency can be adjusted with the XML variables
HIST_OPTION and HIST_N for instantaneous output or
AVGHIST_N and AVGHIST_OPTION for averaged values."

I had previously been using only HIST_OPTION and HIST_N, but I really wanted averaged variables, so I activated AVGHIST_N and AVGHIST_OPTION. I wanted daily means, so I set:

<entry id="AVGHIST_OPTION" value="ndays">
<entry id="AVGHIST_N" value="1">

But the values in the resulting cpl.ha files look suspiciously like what I had been getting for the cpl.hi files using:

<entry id="HIST_OPTION" value="ndays">
<entry id="HIST_N" value="1">

With all four of these options set, I made a short run and compared the output. I've done this with both a B compset and C compset and they behave consistently. For the B compset (BHIST_ctrl using cesm2.2.2), if you compare xaoo_Faox_swdn from BHIST_ctrl.cpl.hi.1850-01-02-00000.nc, it is IDENTICAL to xaooavg_Faox_swdn from BHIST_ctrl.cpl.ha.1850-01-01.nc. And if you plot them, they both look like instantaneous daily fields rather than daily means.

Is there a bug in the code that handles this stuff, or am I doing something wrong?

Thanks,
Mark Branson
 

dbailey

CSEG and Liaisons
Staff member
Did you try looking at other variables? This version of the model may only be exchanging fluxes with the ocean once a day. Note that the AVGHIST options were removed in subsequent versions of the code. Pinging @jedwards here.
 
Vote Upvote 0 Downvote
Top