[mcstas-users] NeXuS format

Vasily piyadov at lns.pnpi.spb.ru
Mon Feb 28 12:56:10 CET 2011


Dear all,
We try to use the NeXuS format for output and we have some troubles with
validating in NeXus.

What we do:
#1 Translate into C code
mcstas -o ./SANS.c -I ./ -t --verbose /usr/lib/mcstas/examples/SANS.instr
#2 Compiling with NeXuS:
icc -o ./SANS.out ./SANS.c -lmpi -DUSE_NEXUS -lNeXus
#3 Run:
mcrun ./SANS.out --mpi=4 --ncount=1000000 --file=out1.nxs --format=NEXUS
Lambda=6 D_lambda=0.05 r=100 PHI=0.001 Delta_Rho=0.6 Sigma_a=0.5 Qmax=0.3

mcrun ./SANS.out --mpi=4 --ncount=1000000 --file=out1.xml --format=XML
Lambda=6 D_lambda=0.05 r=100 PHI=0.001 Delta_Rho=0.6 Sigma_a=0.5 Qmax=0.3

#4 Try to convert with the NeXuS tool
(http://download.nexusformat.org/doc/html/Utilities.html )

nxconvert -x out1.nxs out2.xml

Error: "Converting out1.nxs to XML NeXus file out2.xml
No dataset open"

# Try to validate
nxvalidate out1.xml

Error:
* Validating out1.xml using definition BASE.xsd
Corrupted file, userData for X_position__cm_ not found
* Error converting file out1.xml to definiton XML format

If somebody knows about this let me know, please.

Best wishes,
Vasily

-- 
Department of Condensed Matter
Petersburg Nuclear Physics Institute
Orlova Roscha, Gatchina, St.-Petersburg
188300 Russia
E-mail: piyadov at lns.pnpi.spb.ru




More information about the mcstas-users mailing list