[Kalzium] [Blue-obelisk] Spectrum-Data

Carsten Niehaus cniehaus at gmx.de
Sat May 6 10:51:26 CEST 2006


Hi again

With some reg-exp magic I converted my 1200 lines of spectrum-data to 
something close to CML. I took the yUnit="units:angstrom" from a cml-file I 
found with google and the rest of the XML was taken from an example Egon gave 
me. The id="56% mean this is the spectrum of the element number 56, that is 
Barium.
I skipped the peakGroup as I don't know if that is really needed.

Please review and tell me what is wrong and/or missing :-)

Carsten

        <spectrum id="56">
                <peakList>
                        <peak xValue="30" yValue="3071.584" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="80" yValue="3501.108" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="1000" yValue="5535.481" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="250" yValue="6498.760" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="110" yValue="6527.312" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="100" yValue="6595.325" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="50" yValue="6693.842" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="200" yValue="7059.943" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="150" yValue="7280.296" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="80" yValue="7672.085" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="60" yValue="8559.998" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="60" yValue="14999.852" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="50" yValue="23253.56" xUnit="foo" 
yUnit="units:angstrom" />
                        <peak xValue="60" yValue="25514.88" xUnit="foo" 
yUnit="units:angstrom" />
                </peakList>
        </spectrum>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kalzium/attachments/20060506/a5a3517c/attachment.pgp 


More information about the Kalzium mailing list