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

NAN in in edb-gaseous-v29b-engines.csv #215

Closed depion closed 4 months ago

depion commented 4 months ago

Description

In the table https://github.com/contrailcirrus/pycontrails/blob/98008ed98690f62d72027596cf23a5930c9a7c61/pycontrails/models/emissions/static/edb-gaseous-v29b-engines.csv there is an entry for UID 1ZM001 which has no entry/nan for Fuel Flow Idle (kg/sec) . This leads to a problem if the EmissionsProfileInterpolator is applied to this data, finally raising an exception here: https://github.com/contrailcirrus/pycontrails/blob/main/pycontrails/core/interpolation.py#L674

Details

mlshapiro commented 4 months ago

@roger-teoh can you please look into the entry in this CSV file?

roger-teoh commented 4 months ago

Hi Dennis, thank you for spotting this error! I had a look at it and can confirm that the value is also missing in the original ICAO EDB v29b dataset.

In all previous versions, we typically remove engines that contain missing fuel mass flow rate values. However, for this case, given that the engine characteristics of 1ZM001 is completely identical to 13ZM002, I have implemented a simple fix by filling the missing Fuel Flow Idle (kg/sec) value with those provided by the 13ZM002 engine. This minor change will be merged into the pycontrails repository pending approval from @mlshapiro

mlshapiro commented 4 months ago

Merged - this will get pushed to pypi on the next release, but available if you pull main!