MetadataScript

The environment variable MetadataScript specifies a script which a dictionary of metadata which will be stored in NeXus and FIO files.

Here is an examples:

#!/usr/bin/env python
#
# file name /online_dir/metadataScript.py
#
# to activate this script use 'senv MetadataScript /online_dir/metadataScript.py'
#
# this script returns a dictionary to be filled into NeXus and .fio files. 
#

def main():

    dct = {}
    dct['temperature'] = -271
    dct['temperature@unit'] = 'Kelvin'
    dct[ 'ubmatrixMetadata'] = [ [1, 2, 3,], [4, 5, 6,], [7, 8, 9]]

    return dct

if __name__ == '__main__':
    main()