fix: Update metadata to include HLS granule ID and links to Fmask layer #48
+85
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds two extra pieces of metadata to the HLS-VI product metadata and addresses these tickets,
How I did it
<AdditionalAttribute>
sectionOnlineAccessURLs
section. The links are well formed so we can simply construct the links based on the original HLS product granule ID.Granule.xsd
to define theInput_GranuleUR
and used theGranuleUR
type as its type because both granule IDs should share the same validation (e.g., 1 <= length <= 250)lxml
to latest so we can use the indent method and have an easier time installing it locally. This should also resolve 5 of the 7 Dependabot changes.How you can test it
I updated the test "golden (meta)data" with these two metadata additions. You can run the metadata tests to compare against these by running,
(the
-k metadata
scopes the run to just the metadata tests, which is nice because the other ones involve a lot of computation so take longer)