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

Item geometry from raster data footprint #95

Merged
merged 11 commits into from
Feb 20, 2023

Conversation

pjhartzell
Copy link
Contributor

@pjhartzell pjhartzell commented Jan 31, 2023

Related Issue(s):

Description:
Adds a raster_footprint option to create_item and create_item_from_cogs functions and to the CLI commands.

  • Based on a subclass of the new stactools RasterFootprint class.
  • If a raster footprint can not be generated, a warning is logged and the Item geometry defaults to the "tile geometry".

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.
  • Example STAC Catalog has been updated to reflect changes, if applicable.
  • Changes are added to the CHANGELOG.

@gadomski
Copy link
Contributor

one that extracts the shapes in pixel coordinates and then applies the same manual reprojection and filtering to the pixel coordinates as currently done to produce the default "tile geometry".

Seems like this could be useful to push all the way to stactools, since we will at least have one other sinusoidal grid dataset (VIIRS) that will (presumably) want similar treatment?

src/stactools/modis/utils.py Outdated Show resolved Hide resolved
@pjhartzell pjhartzell marked this pull request as ready for review February 17, 2023 19:22
@pjhartzell pjhartzell requested a review from gadomski February 17, 2023 19:23
examples/catalog.json Outdated Show resolved Hide resolved
src/stactools/modis/sinusoidal.py Outdated Show resolved Hide resolved
src/stactools/modis/stac.py Outdated Show resolved Hide resolved
@pjhartzell pjhartzell requested a review from gadomski February 17, 2023 21:35
@pjhartzell pjhartzell merged commit e8ee4a3 into main Feb 20, 2023
@pjhartzell pjhartzell deleted the issues/94-add-raster-footprint branch February 20, 2023 12:04
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.

Add option to generate geometries from valid raster data footprint
2 participants