⇐ ⇒

[CF-metadata] time unit in CF-netCDF

From: John Caron <caron>
Date: Mon, 02 Jul 2007 15:25:17 -0600

Wenli Yang wrote:
> Benno,
>

>>> 1. the coordinate variable value itself is actually unitless because the coordinate values are completely determined by the values is the bound variable. For example, the time intervals are solely determined by the time_bnds (= -12.,0., 0.,12., 12.,24., 24.,36., 36.,48.) while the time values (time = 0., 12., 24., 36., 48.) play only a role of indexing and can be replaced by something like (time = 1.,2.,3.,4.,5.). If the time_bnds values are used as offsets to the time values rather than absolute value (in time:units), then the time:units would apply to both the time variable and the time_bnds variable.

>
>> 1) is not true -- one is not required to look at the bounds values,
>> and the coordinate values should be centered in the intervals for
>> programs that do not look at the bounds, or in situations where the
>> bounds are not necessary (simple plotting, for example). I think that
>> the bounds variable should have explicit units and be (usually but not
>> necessarily) the same as the original variable, though common usage
>> (and the official example) is to leave off the units on the bounds
>> variable.
>
> It is reasonable that the unit of a bounds variable, if not specified,
> is default to the same as the original coordinate variable. When I
> first read the boundary clause, I was confused on how the values of a
> bounds variable should be used, i.e., whether as absolute values or as
> offset values to the original variable. Your example helped clarify its
> usage, i.e., using them as absolute values (in the unit of the original
> coordinate variable if no unit is given to the bounds variable). This,
> on the other hand, implies that the value in the original coordinate
> variable is useless and only the size of the variable is useful. That
> is, the number of bound pairs is the size of the original variable and
> the bounds values come solely from the bounds variable. Thus, it seems
> better to move the unit from original coordinate variable to the bounds
> variable. Anyway, it's the choice of the specification designer. I am
> most interested in getting the coordinate values correctly set in our
> CF-netCDF file.
>
> Thanks for all your responses.
>
> Wenli

Hi Benno, Wenli:

Thanks for discussing and clarifying these issues!

I wanted to clarify one aspect of this discussion, and im cc'ing to netcdfgroup and cf in case others have something to add.

1) Coordinate values should always have units, there's no real point to having them without units.

2) If you are using packed (scale/offset) variables, the units should refer to the unpacked values. (This point is not clear in the Netcdf User's Manual, but we will remedy that).

3. I cant think of an example when the bounds units would be different from the coordinate units. Can anyone?

John
Received on Mon Jul 02 2007 - 15:25:17 BST

This archive was generated by hypermail 2.3.0 : Tue Sep 13 2022 - 23:02:40 BST

⇐ ⇒