platform, instrument, and location keywords #29
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.
@amilan17 This update looks for the following keywords and their vocabularies in global attributes and adds them to the ncISO output:
platform
platform_vocabulary
instrument
instrument_vocabulary
locations
locations_vocabulary
Note that the platform, platform_vocabulary, instrument, and instrument_vocabulary attributes are already "suggested" global attributes in the ACDD-1.3 convention. I have proposed adding locations and locations_vocabulary into the next ACDD version with favorable initial response from ESIP. Note that I previously modified ncISO to look for location keywords in THREDDSMetadata. This update continues to look there but gives precedence to the global attributes if present, especially because locations_vocabulary is not captured in THREDDSMetadata. As with the existing "keywords" attribute, I look for either comma-separated or space-separated values.
Below are examples of using these fields. Note that ">" symbols would be encoded as ">":
Each category creates its own "gmd:descriptiveKeywords" group in the ncISO output with separate "gmd:keyword" values and a "gmd:thesaurusName". Platform and instruments, like the "keywords" attribute, get assigned a "gmd:MD_KeywordTypeCode" of "theme" while locations are assigned "place".