[NeXus-tech] Scattering application definition of Rainer Gehrke HDRI

Pete Jemian prjemian at gmail.com
Fri Mar 16 18:39:34 GMT 2012


Eugen:

I examined that file (NXscattering.nxdl.xml as pulled from the PDF) for 
basic syntax and validation against the XML Schema, nxdl.xsd.  (Ignore 
the changes I had to make in the schema declarations of the root element 
to fit my local directory mess.)  Here are some changes for Rainer:

This is easy:
- <dimensions size="2">
+ <dimensions rank="2">

This is a bit more work:
- <dim value="frameindex" />
+ <dim index="frameindex_position" value="frameindex" />

Also, these two symbols must be defined using a <symbols /> element near 
the very top of the NXDL, just before the <doc> element:

     <symbols>
         <doc>These symbols will be used below to coordinate dimensions 
with the same lengths.</doc>
         <symbol name="frameindex"><doc>number of detector image 
frame</doc></symbol>
         <symbol name="frameindex_position"><doc>index of data where 
frameindex appears</doc></symbol>
     </symbols>


The <dim /> element requires an index attribute which (at this time)
MUST be an NX_INT.  Here is a problem for NeXus, which has not yet 
allowed a symbol to describe the subscript position for Rainer's 
frameindex.

The change to nxdl.xsd is trivial to make and (I believe) backwards 
compatible.  I might need to add some code to ensure that the value of 
the index attribute is actually a defined symbol or a positive integer 
and not an empty string.

Also attached is the revised and now compliant NXDL file.

Pete


On 3/12/2012 6:47 AM, Wintersberger, Eugen wrote:
> Hi all
> attached to this mail you find the Scattering application definition
> of Rainer Gehrke. Sorry that it took quite a while to post it to this
> list. I only took a glimpse on the definition so I am not sure if it
> really satisfies all formalities.
>
> regards
> Eugen
>
>
>
> _______________________________________________
> NeXus-tech mailing list
> NeXus-tech at nexusformat.org
> http://lists.nexusformat.org/mailman/listinfo/nexus-tech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NXscattering.nxdl.xml
Type: text/xml
Size: 6695 bytes
Desc: not available
URL: <http://lists.nexusformat.org/mailman/private/nexus-tech/attachments/20120316/38c48564/attachment.xml>


More information about the NeXus-tech mailing list