stxm4tostxm5.pro

This procedure can convert a STXM 4 data file to STXM 5 format. Due to the differences in the file format, you have to give some additional information. The information for the silicon detector calibration will be read from some files which you also have to specify. The calling sequence is:

    IDL> stxm4tostxm5, data_file=data_file, $
                       crosstalk_file=crosstalk_file, $
                       c_tune_file=c_tune_file, $
                       disp_file=disp_file, $
                       output_file=output_file, $
                       detector=detector, $
                       disp_name=disp_name

data_file
is the name of the STXM 4 data file you want to convert.

crosstalk_file, c_tune_file, disp_file
are the names of the files which hold silicon detector calibration information. STXM 4 data files don't store this information, STXM 5 data files will. These files can usually be found in the X1a configuration / settings files for the corresponding day, which can be downloaded from the xray1 website.

output_file
is the name of the STXM 5 file you want to write.

detector
is a code for the detector which was used in the scan. 0 for the proportional counter, 1 for the silicon detector.

disp_name
is the display name that should be written into the file. Should be one of the names accepted by stmx5_displays.pro.

Holger Fleckenstein 2008-07-08