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

Footprint behavior customization? #15

Open
pjhartzell opened this issue Aug 6, 2023 · 1 comment
Open

Footprint behavior customization? #15

pjhartzell opened this issue Aug 6, 2023 · 1 comment

Comments

@pjhartzell
Copy link
Owner

pjhartzell commented Aug 6, 2023

The stactools raster footprint utility uses a class for footprint creation. You can override any of the core steps (extract, densify, reproject, simplify) by subclassing. The primary motivation was the ability to use a custom reprojection function, specifically a custom implementation for the sinusoidal projection used by MODIS and VIIRS. By moving to functions only, we've lost that.

We could:

  1. Add a class to the footprint.py module that the existing functions in that module would use. This would keep the the API simple (just function imports and calls) for standard use-cases, but allow subclassing when needed.
  2. Do nothing. If you need different functionality in a specific step, write a custom function, import the others you need, and string them together yourself.

I'm leaning toward the "Do nothing" option

@pjhartzell pjhartzell changed the title Add back ability to use custom projection? Class for customization? Aug 7, 2023
@pjhartzell pjhartzell changed the title Class for customization? Class in the footprint module for customization? Aug 7, 2023
@pjhartzell
Copy link
Owner Author

Thinking of ways to make the custom sinusoidal projection available. I hate to lose track of that work.

We could include it in the projection module:

  • Glass half-empty = dumping ground for oddball projections
  • Glass half-full = curated, reviewed selection of unique projections

@pjhartzell pjhartzell changed the title Class in the footprint module for customization? Footprint behavior customization? Aug 20, 2023
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