Data Formats Working Group: Difference between revisions
From canSAS
(→Current Definition: added tags to SASsample) |
|||
Line 35: | Line 35: | ||
<sample_transmission>0.327</sample_transmission> | <sample_transmission>0.327</sample_transmission> | ||
<sample_temperature units="C">0.0000</sample_temperature> | <sample_temperature units="C">0.0000</sample_temperature> | ||
<sample_rotation units="degrees"> | |||
22.5 | |||
</sample_rotation> | |||
<sample_offset_angle units="degrees"> | <sample_offset_angle units="degrees"> | ||
<!-- | <!-- | ||
Line 99: | Line 102: | ||
<simpleContent> | <simpleContent> | ||
<extension base="float"> | <extension base="float"> | ||
<attribute name="units" type="string" default=" | <attribute name="units" type="string" default="C" | ||
use="optional" /> | use="optional" /> | ||
</extension> | </extension> | ||
Line 154: | Line 157: | ||
<element name="sample_temperature" minOccurs="0" | <element name="sample_temperature" minOccurs="0" | ||
maxOccurs="1" type="tns:temperatureType" /> | maxOccurs="1" type="tns:temperatureType" /> | ||
<element name="sample_rotation" minOccurs="0" maxOccurs="1" | |||
type="tns:unitsType" /> | |||
<element name="sample_offset_angle" minOccurs="0" | <element name="sample_offset_angle" minOccurs="0" | ||
maxOccurs="1" type="tns:unitsType" /> | maxOccurs="1" type="tns:unitsType" /> | ||
<element name="sample_x" minOccurs="0 | <element name="sample_x" minOccurs="0" | ||
type="tns:lengthType" /> | type="tns:lengthType" /> | ||
<element name="sample_y" minOccurs="0" maxOccurs="1" | <element name="sample_y" minOccurs="0" maxOccurs="1" |
Revision as of 23:23, 18 December 2007
Timeline
- 2007-12-31 agree on v1.0 format
- 2008-01-01 start implementing v1 at facilities
- 2008-06 representative sampling of data available for inter-facility comparison
- 2008-10 presentation of results at NOBUGS2008 meeting (date TBA)
Current Definition
XML template: cansas1d.xml
<?xml version="1.0"?> <SASroot xmlns="http://www.smallangles.net/cansas1d" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.smallangles.net/cansas1d cansas1d.xsd" version="0.1a"> <SASentry> <Title></Title> <Run></Run> <SASdata> <Idata> <Q units="1/A">0.02</Q> <I units="1/cm">1000</I> <Qdev units="1/A" /> <Idev units="1/cm">3</Idev> <Qfwhm units="1/A"><!-- Qfwhm is optional --></Qfwhm> <Qmean units="1/A"><!-- Qmean is optional --></Qmean> <Shadowfactor><!-- Shadowfactor is optional --></Shadowfactor> </Idata> </SASdata> <SASsample> <sample_ID>SI600-new-long</sample_ID> <sample_thickness units="mm">1.03</sample_thickness> <sample_transmission>0.327</sample_transmission> <sample_temperature units="C">0.0000</sample_temperature> <sample_rotation units="degrees"> 22.5 </sample_rotation> <sample_offset_angle units="degrees"> <!-- ++ Exactly what is this? ++ Could there be two components? --> 0.020 </sample_offset_angle> <sample_x units="mm">10.00</sample_x> <sample_y units="mm">0.00</sample_y> <sample_prep> http://chemtools.chem.soton.ac.uk/projects/blog/blogs.php/bit_id/2720 </sample_prep> </SASsample> <SASinstrument> <SASsource></SASsource> <SAScollimation></SAScollimation> <SASdetector></SASdetector> </SASinstrument> <SASprocess> <SASprocessnote></SASprocessnote> </SASprocess> <SASnote></SASnote> </SASentry> </SASroot>
XML Schema: cansas1d.xsd
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.smallangles.net/cansas1d" xmlns:tns="http://www.smallangles.net/cansas1d" elementFormDefault="qualified"> <complexType name="QType"> <simpleContent> <extension base="float"> <attribute name="units" type="string" default="1/A" use="optional" /> </extension> </simpleContent> </complexType> <complexType name="IType"> <simpleContent> <extension base="float"> <attribute name="units" type="string" default="1/cm" use="optional" /> </extension> </simpleContent> </complexType> <complexType name="lengthType"> <simpleContent> <extension base="float"> <attribute name="units" type="string" default="mm" use="optional" /> </extension> </simpleContent> </complexType> <complexType name="temperatureType"> <simpleContent> <extension base="float"> <attribute name="units" type="string" default="C" use="optional" /> </extension> </simpleContent> </complexType> <complexType name="unitsType"> <simpleContent> <extension base="float"> <attribute name="units" type="string" use="required" /> </extension> </simpleContent> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="IdataType"> <sequence> <element name="Q" minOccurs="1" maxOccurs="1" type="tns:QType" /> <element name="I" minOccurs="1" maxOccurs="1" type="tns:IType" /> <element name="Qdev" minOccurs="0" maxOccurs="1" type="tns:QType" default="0" /> <element name="Idev" minOccurs="0" maxOccurs="1" type="tns:IType" default="0" /> <element name="Qfwhm" minOccurs="0" maxOccurs="1" type="tns:QType" default="0" /> <element name="Qmean" minOccurs="0" maxOccurs="1" type="tns:QType" default="0" /> <element name="Shadowfactor" minOccurs="0" maxOccurs="1" type="float" default="1.0" /> </sequence> </complexType> <complexType name="SASdataType"> <sequence> <element name="Idata" minOccurs="1" maxOccurs="unbounded" type="tns:IdataType" /> </sequence> <attribute name="name" type="string" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASsampleType"> <sequence> <element name="sample_ID" minOccurs="1" maxOccurs="1" type="string" /> <element name="sample_thickness" minOccurs="0" maxOccurs="1" type="tns:lengthType" /> <element name="sample_transmission" minOccurs="0" maxOccurs="1" type="float" /> <element name="sample_temperature" minOccurs="0" maxOccurs="1" type="tns:temperatureType" /> <element name="sample_rotation" minOccurs="0" maxOccurs="1" type="tns:unitsType" /> <element name="sample_offset_angle" minOccurs="0" maxOccurs="1" type="tns:unitsType" /> <element name="sample_x" minOccurs="0" type="tns:lengthType" /> <element name="sample_y" minOccurs="0" maxOccurs="1" type="tns:lengthType" /> <element name="sample_prep" minOccurs="0" maxOccurs="1" type="string" /> </sequence> <attribute name="name" type="string" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASprocessType"> <sequence> <element name="SASprocessnote" type="string" /> </sequence> <attribute name="name" type="string" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASinstrumentType"> <sequence> <element name="SASsource" type="string" /> <element name="SAScollimation" type="string" /> <element name="SASdetector" type="string" /> </sequence> <attribute name="name" type="string" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASentryType"> <sequence> <element name="Title" minOccurs="0" maxOccurs="1" type="string" /> <element name="Run" minOccurs="0" maxOccurs="1" type="string" /> <element name="SASdata" type="tns:SASdataType" /> <element name="SASsample" type="tns:SASsampleType" /> <element name="SASinstrument" type="tns:SASinstrumentType" /> <element name="SASprocess" type="tns:SASprocessType" /> <element name="SASnote" /> </sequence> <attribute name="name" type="string" /> </complexType> <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <complexType name="SASrootType"> <sequence> <element name="SASentry" minOccurs="1" maxOccurs="unbounded" type="tns:SASentryType"> </element> </sequence> <attribute name="version" type="string" fixed="0.1a" /> </complexType> <element name="SASroot" type="tns:SASrootType" /> </schema>
XML example
to be defined
Members
- Andrew Jackson (NIST)
- Pete Jemian (APS)
- Steve King (ISIS)
- Ken Littrell (ORNL)
- Andy Nelson (ANSTO)
- Ron Ghosh (ILL)
- Jan Ilavsky (APS)
News/Status
--Jemian 12:00, 14 December 2007 (EST)draft status updated