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

_yaml method for stac obj #108

Merged
merged 22 commits into from
Sep 24, 2021
Merged

_yaml method for stac obj #108

merged 22 commits into from
Sep 24, 2021

Conversation

jukent
Copy link
Contributor

@jukent jukent commented Sep 13, 2021

Per NASA-ACCESS work with @jhamman

This PR makes it so .yaml() will accept a stac-obj and create a YAML that includes all of the data for its assets.

Recreation of #103 in a safe branch.

One file (sandbox.ipynb) will be removed before push.

@jhamman jhamman marked this pull request as ready for review September 14, 2021 16:32
@jukent
Copy link
Contributor Author

jukent commented Sep 14, 2021

@jhamman Can you approve the workflow?

@jhamman
Copy link
Collaborator

jhamman commented Sep 14, 2021

@scottyhq and @martindurant - if you have a minute to take a look here, your review would be appreciated. To review, the goal here is to enabling serialization of intake-stac objects. Things got complicated because intake-stac maintains a reference to underlying stac objects which, requires some careful packing/unpacking.

@@ -354,7 +363,7 @@ def __init__(self, key, asset):
name=key,
description=asset.title,
driver=driver,
direct_access=True,
direct_access='allow',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In hindsight, this is far from obvious! It won't matter to anyone not running an Intake server.

intake_stac/catalog.py Show resolved Hide resolved
@jhamman jhamman merged commit 52b1ba2 into intake:main Sep 24, 2021
@jhamman
Copy link
Collaborator

jhamman commented Sep 24, 2021

Thanks again for working on this @jukent!

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

Successfully merging this pull request may close these issues.

3 participants