Skip to content

Conversation

@earth-chris
Copy link
Owner

Data collection / sensor management data were handled in a very strange fashion:

  • a python script, create_collection.py, was used to define the collections in a python dictionary.
  • this script would write a JSON file to earthlib/data/collections.json
  • the json file would be read and returned as a dictionary

This is all very silly. This refactor creates a dataclass object that defines the key properties we need to track for the different earth observing sensors we support. This keeps everything in python, and does not require tracking and including data files.

This MR deletes the collections.json file, the script for generating it, the make target, and simplifies some patterns around getting key pairs.

@earth-chris earth-chris merged commit 1680b5b into main Sep 29, 2025
4 checks passed
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