Notebook name: radial_profile.ipynb
This notebook allows you to display and export the radial profile of a set of images. Radial profile means that, after defining the center of your profile region, the closest pixel to the center will produces the first data point. Then the next ones will produces the second data point (average counts over the set of each pixels).
Confusing!
Well the following drawings should help you understand how that works.
If you need help accessing this notebook, check the How To > Start the python notebooks tutorial.
Need help using the IPTS selector?
Select the images you want to process using the File Selector. Once you click the Select button, the time stamp and the images will be automatically loaded. Wait for the progress bar to be done.
Need help using the File Selector?
After running the lauch User Interface cell, the following GUI pops up.
Using the mouse, click the vertical and then horizontal lines on the image window to define the center of the sector.
It’s possible to change the settings of the grid (usefull when color of image and grid are too close).
Jump to the Profile tab and click the Calculate Profiles to calculate the radial profile of each image loaded. All those profiles will be displayed in the same plot below.
Once the calculation of all profiles has been performed, the Export Profiles button becomes available. Click the Export Profiles … and select where you want to create the ascii files.
The ASCII files creates will have the names bases such as
<name_of_image>_profile_c_x<x_center>_y<y_center>angle<from_angle_in_deg>to<to_angle_in_deg>.txt
where:
giving a name of
20170811_Nautical_compass_0030_356_250_1875_profile_c_x1024.0_y1024.0_angle_24.0_to_137.0.txt
Each ASCII file produced start with the following metadata
# source image: /Volumes/my_book_thunderbolt_duo/IPTS/IPTS-19621-CLOCK/CT/20170811_Nautical_compass_0030_356_250_1875.tiff
# center [x0, y0]: [1024.0,1024.0]
# angular range from 24.0degrees to 137.0degrees
#pixel_from_center, Average_counts