Skip to content
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

Merged
merged 13 commits into from
Dec 18, 2024
Merged

Add orbit state vectors #8

merged 13 commits into from
Dec 18, 2024

Conversation

emmanuelmathot
Copy link
Member

This PR adds the possibility to provides with orbit state vectors either inline or with a linked file.

It fixes #3

@emmanuelmathot emmanuelmathot marked this pull request as ready for review May 13, 2024 14:51
@emmanuelmathot emmanuelmathot requested a review from m-mohr May 13, 2024 14:52
@m-mohr
Copy link
Contributor

m-mohr commented May 13, 2024

I'm wondering whether they schould generally be externalized to keep things small? Just thinking out loud right now.

json-schema/schema.json Outdated Show resolved Hide resolved
@emmanuelmathot
Copy link
Member Author

Validation fails with STAC Node Validator while it works fine with this tool: https://jsonschema.dev/
@m-mohr any idea?

"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)?)?)?)?$": {
Copy link
Contributor

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 for W([0-4]\\d, which is not valid here.

@m-mohr
Copy link
Contributor

m-mohr commented Jul 22, 2024

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.

@AleMScof
Copy link

Do you have any updates on this PR?
We are interested in embedding orbit state vector information for AIS data.

README.md Outdated Show resolved Hide resolved
emmanuelmathot and others added 2 commits October 7, 2024 08:55
Co-authored-by: Matthias Mohr <m.mohr@uni-muenster.de>
@m-mohr
Copy link
Contributor

m-mohr commented Nov 15, 2024

@emmanuelmathot Any updates on the open comments ;-)

README.md Outdated Show resolved Hide resolved
Co-authored-by: Matthias Mohr <m.mohr@uni-muenster.de>
@m-mohr m-mohr merged commit 1bf9b01 into main Dec 18, 2024
2 checks passed
@m-mohr m-mohr deleted the osv branch December 18, 2024 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Satellite Location
3 participants