@cumulus/files-to-granules

18.3.0 • Public • Published

@cumulus/files-to-granules

This lambda function converts array-of-files input payloads into granule object output payloads. It is primarily intended to support compatibility with the standard output of a cumulus-process task, and convert that output into a granule object accepted as input by the majority of other Cumulus tasks.

Message configuration

For more information on configuring a Cumulus Message Adapter task, see the Cumulus workflow input/output documentation.

Config

Config object fields:

field name type default description
inputGranules array<object> (required) Granules to which the files belong
granuleIdExtraction string (.*) Regex used to extract granuleId from filenames

Input

Input array specification:

field name type default description
N/A array<string> (required) Array of S3 URIs (i.e. s3://bucket/path/to/file);

Output

Output object fields:

field name type default description
granules array<object> N/A Array of inputGranules merged with S3 files input

About Cumulus

Cumulus is a cloud-based data ingest, archive, distribution and management prototype for NASA's future Earth science data streams.

Cumulus Documentation

Contributing

To make a contribution, please see our contributing guidelines.

Readme

Keywords

none

Package Sidebar

Install

npm i @cumulus/files-to-granules

Weekly Downloads

120

Version

18.3.0

License

Apache-2.0

Unpacked Size

30.3 MB

Total Files

18

Last publish

Collaborators

  • cumuluspublisher
  • nsidc_kovarik
  • jennyhliu
  • npauzenga