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

Output history files time axis problem

HI all,I have a question regarding the time axis created in the monthly output history files. The first time point is set to 1st february. Eg. if my run start at year 1940, first monthly output history file will show the time axis as:>>>f = cdms2.open('test.cam.h0.1940-01.nc')
>>> ts = f('TS')
>>> ts.getTime()
   id: time
   Designated a time axis.
   units:  days since 1940-01-01 00:00:00
   Length: 1
   First:  31.0
   Last:   31.0
   Other axis attributes:
      long_name: time
      calendar: noleap
      axis: T
   Python id:  0x1a96890and time bounds are given as [0. ,  31.]If 0 is suppose to be the first time point and 31 the last , then monthly average output history file will be from 1940-1-1 to 1940-2-1 i.e 1st january to 1st february. 1) Is the model calculating mean of january by including 1st february time point as the bounds reads 31 as the las time point? 2) To set the time value to the correct time (instead of Feb-1, say Jan15 or Jan 16), what should be the correct time bounds that shuld be used?i.e time_bounds = [0. ,30.] or time_bounds = [1., 31.] Im not sure if I am understanding the time bounds correctly. Please let me knowThanks in advance!
 

eaton

CSEG and Liaisons
The CAM user guide contains a discussion of the timestamps and time intervals in history files.  Note that there is no "correct" timestamp for representing a monthly average output, but the convention that is used is well defined.  
 
Top