Using the ExtData component: Difference between revisions

Bmauer (talk | contribs)
Bmauer (talk | contribs)
Line 155: Line 155:
=== Derived Exports ===
=== Derived Exports ===


The user can also specify Derived Export lists. These are import fields that are satisfied via an arithmetic expression or function using fields from the primary or mask export lists.  The user specifies an import to satisfy, an expression involving mask or derived exports, and a refresh template. The import is updated with the result of the expression. The expression can be an arithmetic expression using fields from the Primary Export lists and is evaluated using the MAPL parser component. Although it is currently not checked, the refresh template on the derived export should be the same as the primary exports in the expression. Also, the primary exports in the expression need not actually be needed to fulfill an import but can still be used in a derived expression. In this case the ExtData component adds the Primary Export to the list of fields it needs to fulfil and allocates space for it. In addition to arithmetic expressions the there two functions that are currently supported for derived expressions.
The user can also specify Derived Export lists. These are import fields that are satisfied via an arithmetic expression or function using fields from the primary or mask export lists.  The user specifies an import to satisfy, an expression involving mask or derived exports, and a refresh template. The import is updated with the result of the expression. The expression can be an arithmetic expression using fields from the Primary Export lists and is evaluated using the MAPL parser component. Although it is currently not checked, the refresh template on the derived export should be the same as the primary exports in the expression. Also, the primary exports in the expression need not actually be needed to fulfil an import but can still be used in a derived expression. In this case the ExtData component adds the Primary Export to the list of fields it needs to fulfil and allocates space for it. In addition to arithmetic expressions the there two functions that are currently supported for derived expressions.
The two supported functions are a region mask and zone mask.  
The two supported functions are a region mask and zone mask.  


Line 180: Line 180:
The following are some examples of derived expressions. The refresh template follows the same logic as the refresh template in the Primary Exports.
The following are some examples of derived expressions. The refresh template follows the same logic as the refresh template in the Primary Exports.
DerivedExports%%
DerivedExports%%
# ---------|------------|------|
# ---------|-----------------------------------|---------------------|
Export | Name on    |     |
Import |           Expression            | Refresh            |
#  Name    |   File    | File |
#  Name    |                                   | Template            |
# ---------|------------|------|
# ---------|-----------------------------------|---------------------|
CO_CH4nbeu regionmask(CO_CH4,CO_regionMask;3,9) %y4-%m2-%d2t12:00:00
CO_CH4nbeu regionmask(CO_CH4,CO_regionMask;3,9) %y4-%m2-%d2t12:00:00
CO_CH4bbbo zonemask(CO_CH4,45,90)              %y4-%m2-%d2t12:00:00
CO_CH4bbbo zonemask(CO_CH4,45,90)              %y4-%m2-%d2t12:00:00
UVMAG     U^2+V^2                              0
UVMAG       U^2+V^2                              0
%%
%%
</pre>
</pre>