Replies: 1 comment 6 replies
-
It's worth noting that this seems to be done in the SGRID convention, which was indeed inspired by UGRID and that both conventions are strengthening ties with CF, albeit at the typical CF speed, see cf-convention/cf-conventions#153. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
The CF conventions have dealt with Arakawa fields for a long time, which are staggered. For instance, temperature might be on cell nodes, velocity on cell faces, vorticity on cell edges and density attached to cells. The traditional way was to provide additional coordinates for these fields, corresponding to their staggering. However, this does not accurately represent the fields. For instance, a face velocity is not located at the middle of a face middle; rather there is a mean velocity attached to that face. Likewise, a density is not at the cell centre but instead there is a mean density across the cell.
This distinction could easily be dismissed as unimportant in the case of a uniform lat-lon grid where everyone agrees where the middle point of a face is, but becomes more complicated in the case of the cubed-sphere, which has very distorted faces when projected onto a lat-lon coordinate system.
This issue can be addressed by using "extensive" fields instead of "intensive" fields. Extensive fields represent integrals of density, velocity, etc. Thus, with an extensive field we're saying there is a total mass inside each cell, a total flux across each face, etc. Extensive fields have many advantages over intensive fields: (1) there is no need for a separate masking array, (2) they don't suffer from pole singularities to the same extent and (3) they are critical for conserving mass, energy, fluxes, etc.
The problem is that we don't have any way to specify whether a field is integrated (extensive) or defined on nodes (intensive). If I'm not mistaken, neither CF nor UGRID have any attribute to distinguish extensive from intensive fields.
Possible solution
While it would be best to extend the CF and UGRID conventions, the presence/absence of the "coordinates" attribute could be used to distinguish intensive/extensive fields. Extensive fields would not have the "coordinates" attribute. Intensive fields are required to have the coordinates attribute.
Beta Was this translation helpful? Give feedback.
All reactions