GEOS-ESM / GMAOpyobs

GMAO pyobs
Apache License 2.0
4 stars 1 forks source link

AOP assumes 'DU' field in file #50

Closed pcase13 closed 3 months ago

pcase13 commented 6 months ago

aop.py assumes that a lookup table for "DU" exists no matter the configuration: https://github.com/GEOS-ESM/GMAOpyobs/blob/6bf5a9707d855ff9b52d0b72e152e04dc3264066/src/pyobs/aop.py#L142

It might be an edge case but the code throws an error here when you don't provide a dust table in the config yaml file. I came across this when I was using AOP to calculate the extinction of CARMA aerosols which only have sulfate, for example.