Skip to content

Discussion: what should happen when self-contained STACs are copied? #61

Open
@jisantuc

Description

@jisantuc

I have a STAC that includes a bunch of chips of tifs. When I clone that STAC, I keep all of the items, and the assets point to the old tifs. I don't think this is necessarily wrong. I'm curious whether it's a deliberate choice to leave the references to the old tifs and not copy the tifs into the new stac or whether that's something that happened incidentally. I can see arguments for both ways --

In favor of not copying the data:

  • since the tifs are part of a different catalog, there's no relative path from the new catalog to the old data, so path construction requires some assumptions on PySTAC's part
  • presumably if I'm building stacs from other stacs i have access to the data in both places, so why copy?

In favor of being able within PySTAC to copy the data (obviously I can do whatever I want outside of PySTAC):

  • self-contained catalogs are nice, and there's currently no way to tell PySTAC to make a new self-contained catalog from an existing one as far as I can tell (it won't infer the copy behavior)
  • in multi-step pipelines for STAC production, I might want to delete everything but the output of the last step (i.e. only keep the "complete" catalog, where "complete" means "has had everything I want to do to it done), which means at the end my references to assets from previous stages will be invalid

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionAn issue to capture a discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions