![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
Functions | |
| def | add_doc_content (*content) |
| adds content to a docstring (to be used as decorator) More... | |
| fits.HDUList | write_wfs_custom_fits (str file_name, str WFS_type, np.ndarray xpos, np.ndarray ypos, xcenter, ycenter, pixsize, pupm, subap_diam) |
| Write a custom_wfs fits file based on user provided data. More... | |
| def | export_custom_wfs (str file_name, p_wfs, p_geom, *p_tel=None) |
| Return an HDUList (FITS) with the data required for a WFS. More... | |
Variables | |
| string | wfs_fits_content |
| def shesha.util.wfs_util.add_doc_content | ( | * | content | ) |
adds content to a docstring (to be used as decorator)
Definition at line 26 of file wfs_util.py.
| def shesha.util.wfs_util.export_custom_wfs | ( | str | file_name, |
| p_wfs, | |||
| p_geom, | |||
| * | p_tel = None |
||
| ) |
Return an HDUList (FITS) with the data required for a WFS.
and write the associated fits file
| file_name | (str) : name of the wfs fits file |
| p_wfs | (Param_wfs) : wfs settings |
Definition at line 95 of file wfs_util.py.
| fits.HDUList shesha.util.wfs_util.write_wfs_custom_fits | ( | str | file_name, |
| str | WFS_type, | ||
| np.ndarray | xpos, | ||
| np.ndarray | ypos, | ||
| xcenter, | |||
| ycenter, | |||
| pixsize, | |||
| pupm, | |||
| subap_diam | |||
| ) |
Write a custom_wfs fits file based on user provided data.
| file_name | (str) : name of the wfs fits file |
| WFS_type | (str) : the wfs type (sh:shack-hartmann) |
| xpos | (np.ndarray): x coordinate of the bottom left corner of the subapertures in the pupil (meters) |
| ypos | (np.ndarray): y coordinate of the bottom left corner of the subapertures in the pupil (meters) |
| xcenter | (float) : x coordinate of the centre of the pupil, expressed in pixels |
| ycenter | (float) : y coordinate of the centre of the pupil, expressed in pixels |
| pixsize | (float) : size of the pixels on the maps in meters |
| pupm | (float) : diameter of pupil stop (meters). |
| subap_diam | (float) : subaperture diameter (meters) i.e. side of the subaperture square. |
Definition at line 60 of file wfs_util.py.
| string shesha.util.wfs_util.wfs_fits_content |
Definition at line 5 of file wfs_util.py.