masses

Implementation level
Type Status
CML extraction template image0
HTML5 representation image1
Template attributes
Attribute Value
source ADF log
id masses
name Atomic Masses
pattern \s*AtomicsMasses:s*
endPattern \s*
endPattern2 ~
endOffset 1
xml:base frequencyanalysis/masses.xml

Input.

Atomic Masses:
---------------
   1. W             183.95093200
   2. W             183.95093200
   3. W             183.95093200
   4. W             183.95093200
   5. W             183.95093200
   6. O              15.99491400
   7. O              15.99491400
   8. O              15.99491400
   9. O              15.99491400
  10. O              15.99491400
  11. O              15.99491400
  12. O              15.99491400
  13. O              15.99491400
  14. O              15.99491400
  15. O              15.99491400
  16. O              15.99491400
  17. O              15.99491400
  18. O              15.99491400
  19. O              15.99491400
  20. O              15.99491400
  21. O              15.99491400
  22. O              15.99491400
  23. O              15.99491400
  24. H               1.00782500
  25. H               1.00782500
  26. H               1.00782500

Output text.

<comment class="example.output" id="masses">
      <module cmlx:templateRef="masses">
        <array dataType="xsd:string" dictRef="cc:elementType" size="26">W W W W W O O O O O O O O O O O O O O O O O O H H H</array>
        <array dataType="xsd:double" dictRef="cc:atomicmass" size="26">183.95093200 183.95093200 183.95093200 183.95093200 183.95093200 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 15.99491400 1.00782500 1.00782500 1.00782500</array>
      </module>
    </comment>

Template definition.

<record repeat="2" />
<record makeArray="true" repeat="*">\s*\d+\.\s*{A,cc:elementType}{F,cc:atomicmass}</record>
<transform process="pullup" xpath=".//cml:array" />
<transform process="delete" xpath=".//cml:list" />
<transform process="delete" xpath=".//cml:list" />
<transform process="delete" xpath=".//cml:module" />