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

use of accumulate_tavg_field in POP?

I would like to know what is the use of the accumulate_tavg_field subroutine. I have commented out the region of the code that in the hdifft_gm routine, how would it affect correctness of the output NC files?
 

njn01

Member
I don't know why you would have commented out a call to a subroutine if you didn't know what it does. In general, this is a very risky action, and I wouldn't recommend making a habit of it.In this instance: if you comment out a call to subroutine accumulate_tavg_field for field "A",  the result will be that time-averaged field "A" will show up as all zeroes in your $case.pop.h.* files, assuming that "A" is listed in the *_tavg_contents file. Depending on what "A" is,  this action may also set a term in pop diagnostics computations to zero, thereby causing the POP diagnostics to be incorrect.
 
Top