Socket
Book a DemoInstallSign in
Socket

@cumulus/sync-granule

Package Overview
Dependencies
Maintainers
6
Versions
216
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cumulus/sync-granule

Download a given granule

latest
Source
npmnpm
Version
21.0.0
Version published
Maintainers
6
Created
Source

@cumulus/sync-granule

Download a given granule from a given provider to S3

Message Configuration

Config

field nametypedefaultvaluesdescription
bucketsobject(required)Object specifying AWS S3 buckets used by this task
downloadBucketstring(required)Name of AWS S3 bucket to use when downloading files
providerobject(required)The cumulus-api provider object
collectionobjectThe cumulus-api collection object
duplicateHandlingstringerror
  • error - Throws an error on duplicates
  • replace - Replaces the existing file
  • skip - Skips the duplicate file
  • version - Adds a suffix to the existing filename to avoid a clash
Specifies how duplicate filenames should be handled
fileStagingDirstringfile-stagingDirectory used for staging location of files. Granules are further organized by stack name and collection name making the full path file-staging/<stack name>/<collection name>
pdrobjectObject containing the name and path for a PDR file
sftpFastDownloadbooleanfalseIf true, sftp download is performed using parallel reads for faster throughput. Lambda ephemeral storage is used to download files before files are uploaded to s3. Please note that not all sftp servers have the concurrency support required. See https://www.npmjs.com/package/ssh2-sftp-client#orge45232c for more information.
syncChecksumFilesbooleanfalseIf true, checksum files are also synced.
stackstringThe name of the deployment stack to use. Useful as a prefix.
useGranIdPathbooleantruetrue, falseIf set to false, the granule file staging path will be '<staging_dir>/<collection_id>/`. If set to true, the granule file staging path will be '<staging_dir>/<collection_id>/<md5_granIdHash_file>. Please note that duplicate collision settings in sync granule are impacted by this as file collision will be -per granuleId- instead of -per collection- for this task
workflowStartTimeintegerSpecifies the start time (as a timestamp) for the current workflow and will be used as the createdAt time for granules output. If the specified timestamp is in the future, then the current time will be used instead.

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.

FAQs

Package last updated on 10 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts