18.2.0 • Published 3 days ago

@cumulus/hyrax-metadata-updates v18.2.0

Weekly downloads
26
License
Apache-2.0
Repository
github
Last release
3 days ago

@cumulus/hyrax-metadata-updates

Description

This lambda function is responsible for augmenting granule metadata files with the correct Hyrax (OPeNDAP) URL to provide subsetting and reformatting services on your granules. The URL will convey enough information to Hyrax to discover the granule using CMR. Hyrax will then determine the archive location within Cumulus from the granule's metadata.

For example, the Hyrax URL for a granule from provider GHRC_CLOUD and collection entry title 'ACES CONTINUOUS DATA V1' with granule UR aces1cont_2002.191_v2.50.nc:

https://opendap.earthdata.nasa.gov/providers/GHRC_CLOUD/datasets/ACES CONTINUOUS DATA V1/granules/aces1cont_2002.191_v2.50.nc

This url will be added to the Urls portion of the granule metadata as follows,

UMM-G example

"RelatedUrls": [
    ...
    {
        "URL": "https://opendap.earthdata.nasa.gov/providers/GHRC_CLOUD/datasets/ACES CONTINUOUS DATA V1/granules/aces1cont_2002.191_v2.50.nc",
        "Type": "GET DATA",
        "Subtype": "OPENDAP DATA",
        "Description": "OPeNDAP request URL"
    }
]

ECHO-10 example

<OnlineResources>
    ...
    <OnlineResource>
        <URL>https://opendap.earthdata.nasa.gov/providers/GHRC_CLOUD/datasets/ACES CONTINUOUS DATA V1/granules/aces1cont_2002.191_v2.50.nc</URL>
        <Description>OPeNDAP request URL</Description>
        <Type>GET DATA : OPENDAP DATA</Type>
    </OnlineResource>
</OnlineResources>

The four properties we need to construct this url are as follows, | Property | Source | Notes | -------- | ------ | ----- | Provider ID | Configuration config.cmr.provider | | Entry Title | Derived from retrieval of parent collection from CMR | This requires a call to the CMR search API | Granule UR | Granule metadata: UMM-G GranuleUR ECHO10 Granule->GranuleUR | Environment | process.env.CMR_ENVIRONMENT | Specifies the environment of Hyrax (e.g. SIT, UAT, PROD)

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

Config

Config object fields:

field nametypedefaultdescription
bucketstring(required)Name of S3 bucket containing public/private key pair to decrypt CMR credentials
stackstring(required)Name of deployment stack
cmrobject(required)CMR credentials object

Input

Input object fields:

field nametypedefaultdescription
granulesarray\<object>(required)List of granule objects

Output

Output object fields:

field nametypedefaultdescription
granulesarray\<object>N/AList of granule objects

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.

16.1.4

3 days ago

18.2.0

3 months ago

16.1.3

4 months ago

18.2.0-alpha.0

5 months ago

16.1.1

9 months ago

16.1.2

6 months ago

18.1.0

6 months ago

17.0.0

9 months ago

18.0.0

8 months ago

16.0.3-alpha.0

10 months ago

16.0.0

10 months ago

15.0.4

10 months ago

16.0.1-alpha.0

11 months ago

16.0.2-alpha.0

11 months ago

15.0.2

1 year ago

15.0.3

1 year ago

15.0.1

1 year ago

14.1.0

1 year ago

15.0.0

1 year ago

13.3.3-alpha.0

1 year ago

13.4.0

2 years ago

14.0.0

1 year ago

13.3.3-alpha.1

1 year ago

11.1.8

1 year ago

13.3.2

2 years ago

12.0.3

2 years ago

13.3.1

2 years ago

11.1.6

2 years ago

11.1.7

2 years ago

13.3.0

2 years ago

13.1.0

2 years ago

12.0.1

2 years ago

12.0.2

2 years ago

10.1.3

2 years ago

13.2.0

2 years ago

13.2.1

2 years ago

13.0.0

2 years ago

13.0.1

2 years ago

11.1.5

2 years ago

11.1.3

2 years ago

11.1.4

2 years ago

11.1.2

2 years ago

12.0.0

2 years ago

10.0.2

2 years ago

11.1.1

2 years ago

11.1.0

2 years ago

11.0.0

2 years ago

9.9.4

2 years ago

10.1.2

2 years ago

9.4.2

2 years ago

10.1.1

2 years ago

9.4.1

2 years ago

10.0.0

2 years ago

10.0.1

2 years ago

9.9.1

2 years ago

9.7.1

2 years ago

10.1.0

2 years ago

9.9.2

2 years ago

9.9.3

2 years ago

9.2.4

2 years ago

9.2.3

2 years ago

10.0.0-beta.0

2 years ago

9.9.0

2 years ago

9.8.0

3 years ago

9.7.0

3 years ago

9.6.0

3 years ago

9.5.0

3 years ago

9.4.0

3 years ago

9.2.2

3 years ago

8.1.2

3 years ago

9.2.1

3 years ago

9.3.0

3 years ago

9.2.0

3 years ago

8.1.1

3 years ago

9.1.0

3 years ago

8.1.0

3 years ago

9.0.1

3 years ago

9.0.0

3 years ago

8.0.0

3 years ago

6.0.1

3 years ago

7.2.0

3 years ago

7.1.0

3 years ago

7.0.0

3 years ago

6.0.0

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.0.0

3 years ago

3.0.1

4 years ago

2.0.8

4 years ago

3.0.0

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.24.0

4 years ago

1.23.2

4 years ago

1.23.1

4 years ago

1.23.0

4 years ago

1.22.1

4 years ago

1.22.0

4 years ago

1.21.0

4 years ago

1.20.0

4 years ago