[NeXus-tech] NXcollimator has two "frequency" entries
Mark Koennecke
Mark.Koennecke at psi.ch
Tue Nov 25 07:29:43 GMT 2008
Pete,
Pete Jemian wrote:
> There are two "frequency" entries in the metaDTD definition of NXcollimator.
>
> <frequency type="NX_FLOAT">
> {Frequency of oscillating collimator}?
> </frequency>
> <NXlog name="frequency">
> {Log of frequency}?
> </NXlog>
>
> These were translated (by hand) to the NXDL
>
> <field name="frequency" type="NX_FLOAT">
> <doc>Frequency of oscillating collimator</doc>
> </field>
> <group type="NXlog" name="frequency">
> <doc>Log of frequency</doc>
> </group>
>
> and thus there are now two named entries for "frequency."
> Depending on how group elements are translated into XSD,
> this most likely results in an error. Using a template from other similar
> contexts (NXcrystal, NXfilter, NXmoderator, NXmonitor, NXsample),
> the second named element would be name="frequency_log" but our intent
> in first setting out NXDL was not to make corrections in the metaDTD.
>
> How best to proceed? My vote would be to call this "frequency_log"
> so as not to generate an XSD error but this might change the rules on
> existing NeXus files.
>
>
I support the frequency_log. I think we provided this entry for
completeness; I know of no one who actually measures
the frequency of her collimator.
Mark
> Pete
>
> [Pete at regitte,3017,~/NeXus-xslt]$ grep _log ../base_classes/*.xml | grep
> -v nxdl | grep NXlog
> ../base_classes/NXcrystal.xml: <temperature_log type="NXlog">
> ../base_classes/NXfilter.xml: <temperature_log type="NXlog">
> ../base_classes/NXmoderator.xml: <temperature_log type="NXlog">
> ../base_classes/NXmonitor.xml: <integral_log type="NXlog" units="">
> ../base_classes/NXsample.xml: <temperature_log type="NXlog">
> ../base_classes/NXsample.xml: <magnetic_field_log type="NXlog">
> ../base_classes/NXsensor.xml: <value_log type="NXlog">
> ../base_classes/NXsensor.xml: <value_deriv1_log type="NXlog">
> ../base_classes/NXsensor.xml: <value_deriv2_log type="NXlog">
>
>
>
More information about the NeXus-tech
mailing list