[Nexus] Question about links

Peterson, Peter F. petersonpf at ornl.gov
Tue Mar 14 13:15:58 GMT 2006


Stephanie,

Unfortunately this is what happens when examples are written by hand using an editor rather than with the NeXus API. While I agree that it would be helpful to have the link source and target poses different names, this is not currently possible with the API.

P^2

-----Original Message-----
From: nexus-bounces at anl.gov [mailto:nexus-bounces at anl.gov] On Behalf Of POIRIER Stephane
Sent: Tuesday, March 14, 2006 5:22 AM
To: nexus at anl.gov
Subject: [Nexus] Question about links

Hello,

I have a question about the way of making links in a NeXus file.

I can read in this page http://www.nexus.anl.gov/mediawiki/index.php?title=NXmonotas-NIAC2006 the following part of a meta-dtd :

 <NXdata name="data">
    <Qh NAPIlink="NXentry/NXsample/Qh" />
    <Qk NAPIlink="NXentry/NXsample/Qk" />
    <Ql NAPIlink="NXentry/NXsample/Ql" />
    <energy_transfer NAPIlink="NXentry/NXsample/energy_transfer" />
    <counts NAPIlink="NXentry/NXinstrument/detector/counts" />
    <count_start NAPIlink="NXentry/NXtimer/start" />
    <count_duration NAPIlink="NXentry/NXtimer/duration" />
    <count_monitor NAPIlink="NXentry/NXmonitor/data" />
    <energy NAPIlink="NXentry/NXinstrument/analyzer/energy" />
  </NXdata>

One can see that some links have names that are different from linked data (count_start, count_duration, count_monitor).

My question is: how is it possible using the NeXus API ?
(NXmakelink take only one parameter : dataset or group id, but not a link name)

In the aim of storing data from scan where one can have multiple variables coming from several instances of a instrument (motor by example), it would be very useful to have differents variables in the NXdata group pointing to the same 'value' dataset of corresponding motors (using the definition proposed by S. Campbell : http://www.nexus.anl.gov/mediawiki/index.php?title=Motor). Example :

 <NXdata name="data">
    <motor1 NAPIlink="NXentry/NXinstrument/motor1(NXmotor)/values" />
    <motor2 NAPIlink="NXentry/NXinstrument/motor2(NXmotor)/values" />
    ...
  </NXdata>

Is it a way to do this ?

Thank you for your attention.

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
Stéphane POIRIER
Data management group
SYNCHROTRON SOLEIL
Web site: <http://www.synchrotron-soleil.fr/>
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

_______________________________________________
NeXus mailing list
NeXus at anl.gov
http://www.neutron.anl.gov/mailman/listinfo/nexus



More information about the NeXus mailing list