Adds a ValidateTrajectoryHandler to pycontrails.datalib.spire.
The handler takes a pandas dataframe, where each row represents a single flight instance trajectory waypoint.
Certain columns are required (ValidateTrajectoryHandler.SCHEMA) beyond what is required in e.g. a Flight instance (pycontrails.core.flight), as those additional columns are used in the validation ruleset that evaluates the trajectory.
[ ] (?) additional consolidation and structuring of existing methods in spire.py (could also be a follow-up release, as those changes will be backward incompatible)
Changes
Features
Adds a
ValidateTrajectoryHandler
topycontrails.datalib.spire
.The handler takes a pandas dataframe, where each row represents a single flight instance trajectory waypoint.
Certain columns are required (
ValidateTrajectoryHandler.SCHEMA
) beyond what is required in e.g. aFlight
instance (pycontrails.core.flight
), as those additional columns are used in the validation ruleset that evaluates the trajectory.TODO
spire.py
(could also be a follow-up release, as those changes will be backward incompatible)Tests
make test
)