cansas1d-template.xml: Difference between revisions

From canSAS
(moved all documentation to documentation page, eliminated nonsense elements from template (the template does not show the rules but is used to test them))
(point to subversion)
 
Line 1: Line 1:
<pre>
This file is now in the subversion respository:
<?xml version="1.0"?>
[http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d-template.xml  http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d-template.xml]
<?xml-stylesheet type="text/xsl" href="example.xsl" ?>
 
<SASroot version="1.0"
A nicely-formatted display version can be viewed through the TRAC repository:
xmlns="http://www.smallangles.net/cansas1d"
[http://svn.smallangles.net/trac/canSAS/browser/1dwg/trunk/cansas1d-template.xml  http://svn.smallangles.net/trac/canSAS/browser/1dwg/trunk/cansas1d-template.xml]
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.smallangles.net/cansas1d/ http://www.smallangles.net/cansas1d/1.0/cansas1d.xsd"
>
<!--
  file: cansas1d-template.xml
  purpose: Template file for canSAS 1-D reduced SAS XML data format
  notes: Each element in the standard is shown, some with comments.
          All elements, when present, must appear in the order shown below.
          When shown in the template below, the "unit" attribute is required.
          If in doubt, try validating against the XML Schema as described in
          http://www.smallangles.net/wgwiki/index.php/cansas1d_documentation#Validation_of_XML_against_the_Schema
-->
<SASentry name="this name is optional">
<!--* SASentry: [1..inf] a single SAS scan -->
<!-- repeat SASentry for as many scans as needed -->
<Title>Title of the scan goes here.</Title>
<Run>Could be a number or text</Run>
<SASdata name="this name is optional">
<Idata>
<!--* Idata: contains one SAS data point -->
<Q unit="1/A">0.02</Q>
<I unit="1/cm">1000</I>
<Qdev unit="1/A">0.01</Qdev>
<Idev unit="1/cm">3</Idev>
<Qfwhm unit="1/A" /><!-- optional -->
<Qmean unit="1/A" /><!-- optional -->
<Shadowfactor /><!-- optional -->
</Idata>
<Idata>
<!-- repeat Idata for as many data points as needed -->
<Q unit="1/A">0.03</Q><I unit="1/cm">989</I><Qdev unit="1/A">0.01</Qdev><Idev unit="1/cm">3</Idev>
</Idata>
</SASdata>
<SASsample name="this name is optional">
<ID>SI600-new-long</ID>
<thickness unit="mm">1.03</thickness>
<transmission>0.327 <!-- unit is always fraction: do not specify a "unit" --></transmission>
<temperature unit="C">22.0000</temperature>
<position name="this name is optional">
<x unit="mm">10.00</x>
<y unit="mm">0.00</y>
</position>
<orientation name="this name is optional">
<roll unit="degree">22.5</roll>
<pitch unit="degree">0.020</pitch>
<yaw unit="degree">0.020</yaw>
</orientation>
<details>
http://chemtools.chem.soton.ac.uk/projects/blog/blogs.php/bit_id/2720
</details>
</SASsample>
<SASinstrument>
<name>canSAS instrument</name>
<SASsource>
<radiation>neutron</radiation>
<beam_size name="this name is optional">
<x unit="mm">12.00</x>
<y unit="mm">12.00</y>
</beam_size>
<beam_shape>disc</beam_shape>
<wavelength unit="A">6.00</wavelength>
<!-- these values are examples and are not meant to be self-consistent here -->
<wavelength_min unit="nm">0.22</wavelength_min>
<wavelength_max unit="nm">1.00</wavelength_max>
<wavelength_spread unit="percent">14.3</wavelength_spread>
</SASsource>
<SAScollimation name="this name is optional">
<distance unit="m">11.000</distance>
<aperture name="source" type="radius">
<size>
<x unit="mm">50</x>
<y unit="mm">2.1</y>
</size>
<distance unit="mm">15.0</distance>
</aperture>
</SAScollimation>
<SASdetector>
<name>fictional hybrid detector</name>
<SDD unit="m"> 4.150 </SDD>
<offset name="this name is optional">
<x unit="mm">322.64</x>
<y unit="mm">327.68</y>
<z unit="mm">0.00</z>
</offset>
<orientation name="this name is optional">
<roll unit="degree">0.00</roll>
<pitch unit="degree">0.00</pitch>
<yaw unit="degree">0.00</yaw>
</orientation>
<beam_center name="this name is optional">
<x unit="mm">322.64</x>
<y unit="mm">327.68</y>
</beam_center>
<pixel_size name="this name is optional">
<x unit="mm">5.0</x>
<y unit="mm">5.0</y>
</pixel_size>
<slit_length unit="1/A"> 0.05 </slit_length>
</SASdetector>
</SASinstrument>
<SASprocess name="this name is optional">
<!-- Use as many SASprocess elements as needed. -->
<name>spol</name>
<date>04-Sep-2007 18:35:02</date>
<description> free form description of processing routine </description>
<term name="calibration" unit="a.u./cm"> 10.000 </term>
<term name="MASK_file">USER:MASK.COM</term>
<SASprocessnote name="this name is optional">
free form description of processing
</SASprocessnote>
<SASprocessnote name="this name is optional">
Use as many as needed.
</SASprocessnote>
<SASprocessnote name="this name is optional">
AvA1 0.0000E+00 AsA2 1.0000E+00 XvA3 1.0526E+03 XsA4  5.2200E-02 XfA5 0.0000E+00
</SASprocessnote>
</SASprocess>
<SASnote name="this name is optional">
free form description of processing
</SASnote>
<SASnote name="this name is optional">
Use as many as needed
</SASnote>
</SASentry>
</SASroot>
</pre>

Latest revision as of 18:14, 22 March 2008

This file is now in the subversion respository: http://svn.smallangles.net/svn/canSAS/1dwg/trunk/cansas1d-template.xml

A nicely-formatted display version can be viewed through the TRAC repository: http://svn.smallangles.net/trac/canSAS/browser/1dwg/trunk/cansas1d-template.xml