Opened 5 years ago

Closed 4 years ago

#92 closed enhancement (worksforme)

Using named constants in filters/operations

Reported by: ssenesi Owned by: ymipsl
Priority: minor Component: XIOS
Version: 2.0 Keywords:
Cc:

Description

Assume you want to convert an energy flux in mass flux using an XIOS filter :


   <field id="tran"    name="tran"  unit="kg m-2 s-1"> evptr / 2.5008E+6</field>

It would be smarter to use (and re-use) a named constant, such as in :


 <variable_definition>
    <variable id="coeffl"  type="float">2.5008E+6</variable>
  </variable_definition>

    <field_definition id="field_definition" operation="instant" prec="4">
        <field id="tran"    name="tran"  unit="kg m-2 s-1"> evptr / coeffl </field>
    </field_definition>

However, this does not work

Change History (3)

comment:1 Changed 4 years ago by rlacroix

Hello Stephane,

Have you tried using $coeffl instead of just coeffl?

Best regards,
Rémi

comment:2 Changed 4 years ago by ssenesi

Yes, it works
Thanks Remi.

comment:3 Changed 4 years ago by rlacroix

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.