nsidc.metgen.metgen¶
Implements all core functionality of the MetGenC utility: logging, metadata generation, CNM message creation, as well as staging the metadata and posting the notification message.
Functions
|
|
|
Apply JSON schema to generated JSON content. |
|
Associate pre-fetched collection information with the Granule. |
|
Displays the name of this utility using incredible ASCII-art. |
|
Build a trace message with MetGenC version. |
|
|
|
|
|
|
|
|
|
Create a CNM submission message for the Granule. |
|
Create the UMM-G file for the Granule. |
|
|
|
|
|
Finalize the Ledger of operations on its Granule. |
|
Return directory containing JSON files to be validated. |
|
|
|
|
|
Identify granules based on unique data file basenames (minus file name extension) in lieu of a "granuleid" regex match group. |
|
Identify granules based on a "granuleid" regex match group |
|
Important! granule_regex argument must include a captured match group. |
|
Identify file(s) related to each granule. |
|
Prompts the user for configuration values and then creates a valid configuration file. |
|
Initialize the logger for metgenc. |
|
|
|
Log a Ledger of the operations performed on a Granule. |
|
|
|
|
|
Return a string representation of any additional attributes or platform information found in a premet file. |
|
Return a string representation of a bounding rectangle |
|
Return a string representation of a point or polygon, based on the length of the spatial_values list. |
|
Return a string representation of a geometry (point, bounding box, gpolygon) |
|
Return a string representation of a temporal range or single value, as appropriate. |
|
Prepare the Granule for creating metadata and submitting it. |
|
Determine whether errors were raised during pipeline steps thus far. |
|
Process all Granules and record the results and summary. |
|
Publish a CNM message to a Kinesis stream. |
|
Higher-order function that, given a granule operation function and a Ledger, will execute the function on the Ledger's granule, record the results, and return the resulting new Ledger. |
|
Identify the file to use as the "reference" file for purposes of extracting granule metadata, in the case of a multi-science-file granule. |
|
Returns the full s3 object path for the granule |
|
Returns the full s3 URL for the given file name. |
|
Identify the schema to be used for validation |
|
Stage a set of files for the Granule in S3. |
|
Start a new Ledger of the operations on the given Granule. |
|
Log a summary of the operations performed on all Granules. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Validate local CNM or UMM-G (JSON) files |
|
Confirm collection metadata meet requirements for our granule metadata generation. |
|
Ensure granule spatial representation exists, and verify the collection geometry can be used if a collection geometry override is requested. |
|
Verify collection temporal extent information is usable if a collection temporal override is requested. |
|
Write a CNM message to a file. |
Classes
|
An audit of a single action performed on a Granule |
|
Granule to ingest |
|
An audit of the Actions performed on a Granule |