-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add orbit state vectors #8
Conversation
I'm wondering whether they schould generally be externalized to keep things small? Just thinking out loud right now. |
Validation fails with STAC Node Validator while it works fine with this tool: https://jsonschema.dev/ |
json-schema/schema.json
Outdated
"type": "object", | ||
"$comment": "The key is a date-time string, and the value is an array of numbers.", | ||
"patternProperties": { | ||
"^([\\+-]?\\d{4}(?!\\d{2}\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Various comments:
- The
\b
might cause the issue with esacping in the node validator. Try\\b
. - STAC generally requires
Z
/UTC as timezone so we can probably simplify from([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?
to([zZ])?
- What is this part about:
W([0-4]\\d
? I've never ween a W in ISO date-times. I guess that's forW([0-4]\\d
, which is not valid here.
Before we get too deep into regexes: Would it be good enough to just define a relation type? Is state vectors something that you'd search for? I don't quite like embedding these "big" constructs to STAC such as state vectors, histograms, etc. |
Do you have any updates on this PR? |
Co-authored-by: Matthias Mohr <m.mohr@uni-muenster.de>
@emmanuelmathot Any updates on the open comments ;-) |
Co-authored-by: Matthias Mohr <m.mohr@uni-muenster.de>
This PR adds the possibility to provides with orbit state vectors either inline or with a linked file.
It fixes #3