-
Notifications
You must be signed in to change notification settings - Fork 189
separation of eo, os and sat #734
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
Conversation
|
@matthewhanson @m-mohr @anayeaye - could you all review this and let me know what you think? Seems like we should get this in before release, since we've not yet put out anything except rc1 that had our grouping overhaul. See #722 for the context / background on it. |
|
Hmm, for me a RC is something that is basically feature-freeze except for bug fixes. This to me looks like a bit too much to change between RCs. On the other hand, I wouldn't want to change this again for 1.0 and the separation mostly seems to make sense. Let's get through them one by one:
That feels reasonable if there's no other data/extensions will be using these terms. SAR is not, but I can't tell whether other extensions would use it. Can anybody think of an upcoming extension that would also be related to sun angles? I'm especially thinking about Sentinel 3+, but most seems only EO related.
The prefix
Hmm, especially for incidence and azimuth I found the _angle prefix good in better describing the field. Incidence is a bit ambiguous (maybe only for me as a non-native speaker) and azimuth is just all over the place (azimuth[_angle], sun_azimuth[_angle], sar:(looks|pixel_spacing|resolution)_azimuth). So I think I'd prefer to leave the suffix in. This PR HAS breaking changes so I unticked the box. Don't get me wrong, I really appreciate all your background work on this, @davidraleigh . |
Is it that the abbreviation makes it confusing? If it is that Overhead Sensor isn't a good field we could use Capture Angles?
Azimuth, incidence and nadir as concepts are specifically about angles, so the
Understood. I'd created an issue and made suggestions for changes, I didn't want someone else to have to slog through the work of making the changes.
If you could point out to me the places where I need to fix it up, I'm happy to do the work.
Absolutely @m-mohr ! I'm stoked to help get this sorted for 1.0 release |
|
I've added some comments here: #722 (comment) Summarizing:
I like the name |
|
@m-mohr - yeah, I'm conflicted on RC being 'bug fix', but I think from the standpoint of a user who is just using our stable releases 0.9.0 is going to be the first time they see a lot of changes in prefixes. Like I view all the common changes we've made as 'unreleased' as of yet. So it seems better to me to get the first release 'right', then to put out 0.9.0 and then turn around and do a 0.9.1 or wait till 1.0-beta to do these changes, if we agree they're the right one. And I'd guess I see release candidate as 'this is what we believe the release should be', and if the feedback is more than a bug fix we should change it. As for specifics in this:
|
|
And I'm nuetral on all angles being in one extension. |
|
Okay, fine to do it for 0.9, @cholmes .
Overhead sensor in general seems to be about right for grouping the fields. It's just that "os" is a bit overloaded as Chris said and not self-explaining. "overhead_sensor" is probably too long and "sensor" too broad. So I don't have a better term yet, but I'm also not the best person to find one with my limited vocabulary. ;-) In general, I'd like the prefixes to be more descriptive, for example we once had "dtr:datetime_start", which I'd have preferred to be "datetime:start". Then, when moving fields to core, you'd in general just need to replace the ":" with "_". I'm even not a fan anymore of my own "cube:dimensions" and think it should be "datacube:dimensions". We already have this problem with "eo", which is electro optical, but most people think "earth observation". It may have been better to use the "spectral" prefix or so. This would all lead to "nice" names when moving to core, e.g. spectral_bands. os_incidence on the other hand just doesn't explain itself very well; sensor:incidence_angle (or so) would be IMHO. I'm not a fan of using the "angle" prefix as it would limit the extensibility of the overhead sensor extension to just contain angles. Would be a different thing if we group all angles. I'm undecided whether that's a good idea or not.
Only if you think about incidence in our context. In general, I'm thinking about software incidence management and other things first. It only really bugs me with incidence, the others are mostly fine as is although for SAR it could be a bit confusing with so many occurances of "azimuth". So I'm leaning towards adding _angles again. We don't really loose anything, just make it a bit more clear. Or is there any disadvantage in having them?
In all example files you edited you need to check whether it needs to be changed. Also, you need to add the extension prefix to the JSON Schema for items. I'm just about to head home so don't have the time to request the changes explicitly now, but will see what's left to do the next day(s). Thanks! |
|
The overhead sensor fields are really "viewing geometry", but that's not any shorter, and 'geometry' is way too overloaded to use. What about "view". It would be a viewing extension, and provide fields such as |
|
Things to do:
Hope it helps. |
|
@m-mohr @matthewhanson @cholmes @m-mohr I made the changes, but I'm not sure I addressed what you pointed out before:
|
|
Addressed items 1, 2, and 3 in #734 (comment) |
|
Thanks @davidraleigh. I checked it more precisely today, there's still files to update:
Unfortunately I can't push to your branch, otherwise I'd just committed the changes. |
|
@m-mohr I didn't want to add in any changes that I hadn't seen made when the |
|
Yeah, it seems the sat PR was also a bit flawed, but a good time to fix things. Thanks! |
m-mohr
left a comment
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.
Thanks for bearing with all my change requests. :-)
|
@m-mohr the other pull request wasn't as flawed as the pull request I dropped in your lap. Thanks for putting your eye on it all and identifying the errors. |
cholmes
left a comment
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.
Looks great, thanks for everyone's hard work on this! And especially @davidraleigh for driving it forward and @m-mohr for the detailed reviews.
I put in one very minor comment, questioning if we should recommend commons in the view extension. But no need to wait on that to merge.
|
|
||
| **Extension [Maturity Classification](../README.md#extension-maturity): Proposal** | ||
|
|
||
| This document explains the fields of the View Geometry Extension to a STAC Item. View Geometry adds metadata related to angles of sensors and other radiance angles that affect the view of resulting data. It will often be combined with other extensions that describe the actual data, such as the `eo`, `sat` or `sar` extensions. It is not necessary, but recommended to place common fields in [STAC Collections](../../collection-spec/collection-spec.md) using the [Commons extension](../commons/). |
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.
Very minor point, but on 'It is not necessary, but recommended to place common fields in [STAC Collections]' - won't most of these be changing if they are used? The sat extension orbit stuff I think is more likely to be static. But even planet has some variation in the view angles (not sure about landsat + sentinel, but I think they can?), and the sun angles will change with the time of year. So we can maybe get rid of this line.
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.
Yes, true. I think we should encourage commons only for EO/SAR due to the bands fields.
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.
I think I just lifted this directly from the sat extension README.md
I can delete it.
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.
but maybe @matthewhanson has input on this line?
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.
nevermind :D
Related Issue(s): #722
Proposed Changes:
eocontainssun_azimuthandsun_elevationos, Overhead Sensor for containingazimuth,off_nadir, andincidencesat_anglesuffixPR Checklist:
npm run generate-allto update the generated OpenAPI files.