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

Optionally skip regenerating geoparquet assets #24

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

TomAugspurger
Copy link
Member

Description:

Currently, stac.create_item requires creating the geoparquet assets if you want geoparquet metadata in the asset. This PR updates stac.create_item to accept geoparquet hrefs in addition to the NetCDF hrefs. If the geoparquet hrefs are provided then asset generation is skipped.

WIP, since I haven't properly tested everything.

PR checklist:

  • Code is formatted (run scripts/format).
  • Code lints properly (run scripts/lint).
  • Tests pass (run scripts/test).
  • Documentation has been updated to reflect changes, if applicable.
  • Examples have been updated to reflect changes, if applicable
  • Changes are added to the CHANGELOG.

@@ -175,3 +175,131 @@ class OrbitalSlot(str, enum.Enum):
]
],
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

The columns can't be constant as the columns vary slightly. Sometimes there are for example columns containing ...frame_time_offset..., sometimes they are missing (here it seems they are missing). So you need to read the files to get the actual content...

Copy link
Member Author

@TomAugspurger TomAugspurger Oct 27, 2022

Choose a reason for hiding this comment

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

Well, that's unfortunate! But thanks for the note. I'll get that info from the parquet file / netcdf file then.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ignore my latest commit, which really mangles parquet.create_asset. I intend to clean it up.

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.

2 participants