Skip to content

Conversation

@pierrepetersmeier
Copy link
Contributor

@pierrepetersmeier pierrepetersmeier commented Jan 22, 2026

This PR aligns the temperature parsing logic in CosmoTimeBasedWeatherValueFactory with the Icon factory. Temperature inputs are now interpreted as Kelvin and converted to Celsius. Fix NullPointerException for temperature in Icon and Cosmo Factory.

Resolves #1521

…use Kelvin units for ground temperature values, ensuring consistency with standard temperature units. Added null-checks before unit conversion in both Cosmo and Icon factories to prevent NullPointerException when processing time steps with missing temperature values.
@pierrepetersmeier pierrepetersmeier self-assigned this Jan 22, 2026
@pierrepetersmeier pierrepetersmeier added the bug Something isn't working label Jan 22, 2026
Copy link
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

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

Some little hints how to handle the additional issues you discovered. Please also do not forget the changelog entry.

…n units, adding null-checks to prevent NullPointerException for missing temperature values. Update tests to reflect changes in exception handling for missing temperature fields.
Copy link
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

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

And please add some changelog entry

…n units, adding null-checks to prevent FactoryException for missing temperature values. Update tests to reflect changes in exception handling.
Removed duplicate entry for temperature processing alignment in Cosmo and Icon factories.
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.

Align temperature processing of COSMO and ICON TimeBasedWeatherValueFactories

3 participants