CF Section 7.5 Geometries coordinates/grid_mapping attribute "carried by" clarification #412
-
QuestionI am attempting to create a check for CF section 7.5 Geometries and need some clarification on the following paragraph:
Emphasis mine. What does "carried by" mean here? For example, can you have data variables with a polar |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Dear @benjwadams Thanks for the question. The text should be clearer! I believe that "carried by" means "attributes of" in that sentence. That is, the geometry container variable may (optionally) have a Best wishes Jonathan |
Beta Was this translation helpful? Give feedback.
-
Could you supply an example of a non-identical case where both the geometry container variable and parent attributes are defined? I.e. for coordinates for geometry variables I should be able to link to some unit test code briefly to ensure I have the proper implementation. |
Beta Was this translation helpful? Give feedback.
-
Basically checks if parent variable is defined with mismatched (as in string inequality) coordinates and/or grid_mapping values vs the geometry container variable. |
Beta Was this translation helpful? Give feedback.
-
Example 7.16 (in Sect 7.5) is a case where the
This isn't an ideal example, because The document doesn't have an example of the
In this conflated example, Since the node coordinates are given in the Does anyone else have real use-cases for a situation like this, which combines grid mapping and simple geometries? Do you have any among your example datasets, Luke @lhmarsden and Ag @agstephens, for instance? Could you comment on whether my example is correct, Dave @dblodgett-usgs? |
Beta Was this translation helpful? Give feedback.
-
@JonathanGregory I think your example looks okay.
I know of examples where people have encoded data like this. Though I am not sure they would be helpful in this case. They are someone's interpretation of CF, which could be a correct or incorrect interpretation. More complicated queries like this make me realise that it is very important that we have a catalogue of peer-reviewed example datasets, probably using synthetic rather than real-world examples. Much work ahead! |
Beta Was this translation helpful? Give feedback.
-
Thanks for having a look, Luke @lhmarsden. I agree that a collection of examples will be very valuable for many purposes. It has often been requested in past years too, so thanks for taking an interest in it. |
Beta Was this translation helpful? Give feedback.
Example 7.16 (in Sect 7.5) is a case where the
coordinates
attribute is attached to both the data variable and the geometry container variable, but they are not identical, although they are consistent. These are the relevant lines:This isn't an ideal example, because
time(time)
is a coordinate variable (not an auxiliary coordinate variable). Therefore it's unnecessary to include it in thecoordinates
attribute of the data variable, although it's allowed to do so. Another way in which they could be consistent but not identical is si…