ecmwf / eckit

A C++ toolkit that supports development of tools and applications at ECMWF.

Home Page:https://confluence.ecmwf.int/display/eckit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

literal input of string array in configuration?

mmiesch opened this issue · comments

JEDI uses eckit::Configuration.get() methods to read our yaml configuration files. One of our data assimilation applications requires a list of state variables which includes nitric oxide (NO):

    state variables: [u,v,T,DELP,ps,sphum,ice_wat,liq_wat,o3mr,
                      no2, no,o3,no3,h2o2,n2o5,
                      hno3,hono,pna,so2,sulf,
[...]

Well, when the configuration get() method parses this string vector, it is converting no to false. This is causing an error in our application.

Is there currently a way to suppress this conversion? In other words, read the string literally, without modification? If not, do you have any suggestions on how to address this? We could of course change the variable name but this is not ideal because the variable names for the application (FV3 LAM) are standardized. Thanks for any ideas you may have.

We're using eckit 1.16.0

Actually - it looks like quotes work no.