time dim values of interval; start middle midpoint end #439
Replies: 2 comments 9 replies
-
CF doesn't mandate where the time coordinate sits relative to the interval, so the user is free to choose. However, I would argue that best practice is to put it in the middle of the interval. In my experience, when the time it at one end of the interval, it's easy to get confused. If you have a time interval covering the year 1990 and you put the coordinate at the end, then it's at midnight on New Year's Eve, which is ambiguous as to which year it belongs to. If the time coordinate is instead at the beginning of July, you know exactly which year it belongs to. |
Beta Was this translation helpful? Give feedback.
-
This is a sensible question, which has been asked before, and it's included in the FAQ. There is also some relevant text in the conventions document. Section 1.4 "Overview" says
and Section 7.1 "Cell boundaries" says
We could certainly provide a more definite recommendation, for cases where the data-writer has no reason to make a particular choice. It would be logical to put this recommendation in Sect 7.1, I think. It could be referred to from Example 7.1 (in Sect 7.1.1), which Chris cites at the top of this issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi
Should the time dim values be at the beginning, middle, or end of the interval they represent?
Example 7.1 of the current CF version (1.12) reads
In example 7.5, a time series file with 5 time steps representing 12-hourly statistics has the time dim values
and below the example this info is given:
In example 7.9, a climatological file with 4 time steps representing seasonal means of MAM, JJA, SON, and DJF has the time dim values
In example 7.10, a climatological file with 3 time steps representing decadal means of 1961-1970, 1971-1980, and 1981-1990 has the time dim values
In example 7.11, a climatological file with 24 time steps representing hourly averages over all days of April 1997 has the time dim values
Hence, in many but not all examples the middle of the temporal interval is used, and I could not find a clear recommendation.
Note that e.g. cdo uses the middle by default:
Thanks a lot and cheers,
Chris
Beta Was this translation helpful? Give feedback.
All reactions