-
Notifications
You must be signed in to change notification settings - Fork 6
RASDintegration
For the first step you use the "ana.rasd_data.rasd_data()" function. This function is especially designed to for data measured with the "raxr" spec command as it is used at GSECARS. It takes four arguments:
-
spec_path (string containing the path to your spec file e.g. spec_path = 'D:/Data/APS/RASD')
-
spec_file (string containing the name of the spec file e.g. spec_file = 'caco3_mar10d.spc')
-
first_scan (integer number of the first scan in the spec file that belongs to your raxr scan)
-
last_scan (integer number of the last scan in the spec file that belongs to your raxr scan)
To create an instance called "A" that has your data available for integration, you type in the PDS command line e.g.:
A = ana.rasd_data.rasd_data('D:/Data/APS/RASD','caco3_mar10d.spc', 24, 102)
For the integration of image data in "A" you simply use the PDS "CTR Data" application, you find at: PDS --> Applications --> CTR Data
In the CTR Data GUI's "CTR Data Name" scroll bar you select "A" and you can start the integration analogous to the integration of CTR Data (for a description of how to do that see the section about "Processing CTR Data") (some of the GUI functionalities, like selecting a point or a list of points from the plot or appending a scan, may not work for RASD Data)
Once you are happy with your data integration you can quit the CTR Data GUI. To go on with data analyses it is so far still necessary that you dump the results of the data integration to an Ascii file. For the instance "A" you can do that by calling:
A.write_RSD()
If you do not like the default file names ('rasdHK_L.rsd') you may define your own file name:
A.write_RSD('yourfilename')