Single Facet Data Process
Module for processing and analyzing SOFAST data for a single facet mirror.
This script performs the following steps: 1. Load saved single facet SOFAST collection data from an HDF5 file. 2. Save projected sinusoidal fringe images to PNG format. 3. Save captured sinusoidal fringe images and mask images to PNG format. 4. Process data with SOFAST and save processed data to HDF5. 5. Generate a suite of plots and save image files.
Examples
To run the script, simply execute it as a standalone program:
>>> python example_process_single_facet.py
This will perform the processing steps and save the results to the data/output/single_facet directory with the following subfolders: 1_images_fringes_projected - The patterns sent to the display during the SOFAST measurement of the optic. 2_images_captured - The captured images of the displayed patterns as seen by the SOFAST camera 3_processed_data - The processed data from SOFAST. 4_processed_output_figures - The output figure suite from a SOFAST characterization.
Notes
The script assumes that the input data files are located in the specified directories.
Chat GPT 40 assisted with the generation of some docstrings in this file.
- example.sofast_fringe.example_process_single_facet.example_process_single_facet()
Performs processing of previously collected SOFAST data of single facet mirror.
Load saved single facet SOFAST collection data from HDF5 file
Save projected sinusoidal fringe images to PNG format
Save captured sinusoidal fringe images and mask images to PNG format
Processes data with SOFAST and save processed data to HDF5
Generate plot suite and save images files
Facet Ensemble Data Process
Module for processing and analyzing SOFAST data for an ensemble of mirrors.
This script performs the following steps:
Load saved facet ensemble SOFAST collection data from an HDF5 file.
Save projected sinusoidal fringe images to PNG format.
Save captured sinusoidal fringe images and mask images to PNG format.
Process data with SOFAST and save processed data to HDF5.
Generate a suite of plots and save image files.
Examples
To run the script, simply execute it as a standalone program:
>>> python example_process_facet_ensemble.py
This will perform the processing steps and save the results to the data/output/single_facet directory with the following subfolders:
1_images_fringes_projected - The patterns sent to the display during the SOFAST measurement of the optic. 2_images_captured - The captured images of the displayed patterns as seen by the SOFAST camera 3_processed_data - The processed data from SOFAST. 4_processed_output_figures - The output figure suite from a SOFAST characterization.
Notes
The script assumes that the input data files are located in the specified directories.
Chat GPT 4o assisted with the generation of some docstrings in this file.
- example.sofast_fringe.example_process_facet_ensemble.example_process_facet_ensemble()
Performs processing of previously collected SOFAST data of facet ensemble.
Load saved facet ensemble Sofast collection data
Save projected sinusoidal fringe images to PNG format
Save captured sinusoidal fringe images and mask images to PNG format
Processes data with SOFAST and save processed data to HDF5
Generate plot suite and save images files
Undefined Facet Data Process
Module for processing and analyzing SOFAST data for a single facet mirror of unknown shape.
This script performs the following steps: 1. Load saved single facet SOFAST collection data from an HDF5 file. 2. Save projected sinusoidal fringe images to PNG format. 3. Save captured sinusoidal fringe images and mask images to PNG format. 4. Process data with SOFAST and save processed data to HDF5. 5. Generate a suite of plots and save image files.
Examples
To run the script, simply execute it as a standalone program:
>>> python example_process_undefined_shape.py
This will perform the processing steps and save the results to the data/output/single_facet directory with the following subfolders: 1_images_fringes_projected - The patterns sent to the display during the SOFAST measurement of the optic. 2_images_captured - The captured images of the displayed patterns as seen by the SOFAST camera 3_processed_data - The processed data from SOFAST. 4_processed_output_figures - The output figure suite from a SOFAST characterization.
Notes
The script assumes that the input data files are located in the specified directories.
Chat GPT 40 assisted with the generation of some docstrings in this file.
- example.sofast_fringe.example_process_undefined_shape.example_process_undefined_shape_facet()
Performs processing of previously collected SOFAST data of single facet mirror with an unknown shape.
Load saved single facet SOFAST collection data from HDF5 file
Save projected sinusoidal fringe images to PNG format
Save captured sinusoidal fringe images and mask images to PNG format
Processes data with SOFAST and save processed data to HDF5
Generate plot suite and save images files
Generating Standard Mirror Output Plots
- example.sofast_fringe.example_standard_mirror_plot_output.example_single_facet() None
Loads and visualizes CSP facet from saved Sofast HDF file containing measured data of an NSTTF Facet.
Load Sofast measurement data
Define viewing/illumination geometry
- Create standard output plots:
Perform ray trace of facet
Plot orthorectified slope maps
Plot orthorectified slope error map
Plot facet in 3d
Plot sun images on receiver
Plot ensquared energy curve