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

TC track forecast missing time period handling #91

Merged

Conversation

ThomasRoosli
Copy link
Collaborator

TC track forecast continue reading messages from a multimessage bufr file in case a track is missing the field timeperiod
For example: the forecast of ECMWF contains a storm that is not trackable: https://charts.ecmwf.int/products/cyclone?base_time=202308220000&product=tc_strike_probability&unique_id=07L_EMILY_2023

This is represented in the bufr file by not having a timeperiod defined. In the case of a multimessage bufr file, the rest of the messages should still be read even if one track needs to be discarded. This MR fixes that behaviour and tests it with the above example. The behaviour is now the same for one multimessage bufr file and several bufr files.

PR Author Checklist

PR Reviewer Checklist

@ThomasRoosli ThomasRoosli self-assigned this Aug 23, 2023
@ThomasRoosli ThomasRoosli added the bug Something isn't working label Aug 23, 2023
Copy link
Member

@peanutfun peanutfun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! The binary file is small, so I think adding it is reasonable. I have two small suggestions for improvement.

climada_petals/hazard/test/test_tc_tracks_forecast.py Outdated Show resolved Hide resolved
climada_petals/hazard/test/test_tc_tracks_forecast.py Outdated Show resolved Hide resolved
@peanutfun peanutfun merged commit 0cb3655 into develop Sep 6, 2023
3 checks passed
@emanuel-schmid emanuel-schmid deleted the feature/tc_forecast_missing-timeperiod-multimessage branch September 7, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants