-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify how to distinguish a TemporalDimension with an AdditionalDimension object where type = 'temporal' #5
Comments
If you specify an additional dimension with type = temporal, the reference system should be set otherwise the temporal information is pretty meaningless. The ISO8601 temporal dimension doesn't have a reference system. Also, the extent is an array of strings for ISO 8601, which is not the case for the additional dimension (array of numbers). Feel free to re-open if that answer is not sufficient. :-) |
Should the reference system then be required if the type is The addition of the requirement of a reference system seems like it could be an sufficient differentiator if the spec language made it required in the temporal case, or else some other distinguishing factor should be put into place. This was discovered while implementing datacube in PySTAC and trying to determine which type the thing was, so I'm sure would be hit by other client authors if they don't push that distinction down to the user, who would also not be able to clearly make the call in a machine-readable way currently. |
extent is required in temporal dimension so a check for |
Ah, I see, was confused there. I was thinking about distinguishing an additional, but the process is first to check the extent to see if it exists, and then if it contains strings, and then you have a temporal, otherwise it's additional. Not a great process but at least one exists. Keeping this issue open as I think the README should outline this more clearly; I'll put it on my list of PRs to get to unless someone beats me to it :-) |
…nsion object where type = 'temporal' #5
Clarified. |
…nsion object where type = 'temporal' #5
The spec says an AdditionalDimension object can have type 'temporal'. It's unclear to me how one would look at the JSON of a Temporal or Additional dimension with type 'temporal' and determine which one it is. Are client libraries checking if the values are ISO 8601 compliant and making the determination off of that?
The text was updated successfully, but these errors were encountered: