Skip to content

l103.deltas ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceGaussian log
idl103.deltas
repeat*
pattern\s*Variable\s+Old X.*$\s*\(Linear\).*
endPattern.*$\s+((?![ARD][0-9]+).)*
endPattern2~
endOffset1
xml:basel103/l103.deltas.xml

Input ​

 Variable       Old X    -DE/DX   Delta X   Delta X   Delta X     New X
                                 (Linear)    (Quad)   (Total)
    R1        2.10327  -0.01257   0.00000  -0.03869  -0.03869   2.06457
    R2        2.10327  -0.01257   0.00000  -0.03869  -0.03869   2.06457
    R3        2.10327  -0.01257   0.00000  -0.03869  -0.03869   2.06457
    R4        2.10327  -0.01257   0.00000  -0.03869  -0.03869   2.06457
    A1        1.91063   0.00000   0.00000   0.00000   0.00000   1.91063
    A2        1.91063   0.00000   0.00000   0.00000   0.00000   1.91063
    A3        1.91063   0.00000   0.00000   0.00000   0.00000   1.91063
    A4        1.91063   0.00000   0.00000   0.00000   0.00000   1.91063
    A5        1.91063   0.00000   0.00000   0.00000   0.00000   1.91063
    A6        1.91063   0.00000   0.00000   0.00000   0.00000   1.91063

Output text ​

xml
<comment class="example.output" id="l103.deltas">
    <module cmlx:templateRef="l103.deltas">
      <list cmlx:lineCount="10" cmlx:templateRef="delta">
        <array dataType="xsd:string" dictRef="cc:variable" size="10">R1 R2 R3 R4 A1 A2 A3 A4 A5 A6</array>
        <array dataType="xsd:double" dictRef="g:lastval" size="10">2.10327 2.10327 2.10327 2.10327 1.91063 1.91063 1.91063 1.91063 1.91063 1.91063</array>
        <array dataType="xsd:double" dictRef="cc:deriv" size="10">-0.01257 -0.01257 -0.01257 -0.01257 0.0 0.0 0.0 0.0 0.0 0.0</array>
        <array dataType="xsd:double" dictRef="cc:delta.linear" size="10">0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0</array>
        <array dataType="xsd:double" dictRef="cc:delta.quad" size="10">-0.03869 -0.03869 -0.03869 -0.03869 0.0 0.0 0.0 0.0 0.0 0.0</array>
        <array dataType="xsd:double" dictRef="cc:delta.total" size="10">-0.03869 -0.03869 -0.03869 -0.03869 0.0 0.0 0.0 0.0 0.0 0.0</array>
        <array dataType="xsd:double" dictRef="cc:newval" size="10">2.06457 2.06457 2.06457 2.06457 1.91063 1.91063 1.91063 1.91063 1.91063 1.91063</array>
      </list>
    </module>
  </comment>

Template definition ​

xml
<record repeat="2" />
<record repeat="*" id="delta" makeArray="true">\s*&#123;A,cc:variable&#125;&#123;F,g:lastval&#125;&#123;F,cc:deriv&#125;&#123;F,cc:delta.linear&#125;&#123;F,cc:delta.quad&#125;&#123;F,cc:delta.total&#125;&#123;F,cc:newval&#125;\s*</record>
<transform process="delete" xpath=".//cml:list[count(*)=0]" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />