contrailcirrus / pycontrails

Python library for modeling contrails and other aviation climate impacts
https://py.contrails.org/
Apache License 2.0
59 stars 18 forks source link

Feature/better filtering #141

Closed trdean1 closed 10 months ago

trdean1 commented 10 months ago

Closes #51

Changes

Removes fit_altitude method in favor of filter_altitude Reworks filter_altitude to only apply median filter during cruise Creates clean_and_resample class method Creates filter_altitude class method

Internals

The clean_and_resample method uses the following logic:

For flights with a median sample rate >10 seconds, no smoothing is applied For flights with gaps larger than 5 minutes, the flight is first resampled to a one second interval, then smoothed, then resampled to the requested rate

Tests

trdean1 commented 10 months ago

TODO

review-notebook-app[bot] commented 10 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB