Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to preserve the leading / from the path field #129

Open
hailiangzhang opened this issue Mar 28, 2022 · 0 comments
Open

How to preserve the leading / from the path field #129

hailiangzhang opened this issue Mar 28, 2022 · 0 comments

Comments

@hailiangzhang
Copy link
Contributor

hailiangzhang commented Mar 28, 2022

I understand this cumulus-cnm-to-granule step generates the path field (which is needed by the following ingest-granule step) based on uri field (which comes from the original CNM message).
I noticed that during this step, the leading / will be removed in the path field, e.g.:
"uri": "/data/Aura_OMI_Level2/OMNO2.003/2022/001/..."
will lead to:
"path": "data/Aura_OMI_Level2/OMNO2.003/2022/001"
This causes consistency issues for your ingest pipeline, because our parsing PDR step will eventually generate:
"path": "/data/Aura_OMI_Level2/OMNO2.003/2022/001"
which does include the leading / as shown above.
So, the question is: is there a good reason for CNM cumulus-cnm-to-granule step to remove the leading /? Is there anyway we can keep the leading / easily?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant