3 from shesha.util.writers
import common
6 file_name_atm="./atmParams.json", file_name_data="sys-input.fits",
7 wfss_indices=None, ts=False, dms_indices=None, imat_type="controller",
8 controller_id=-1,influ_index=0):
9 """write the parameter files for SHIPS
12 sup : (CompassSupervisor) : supervisor
15 file_name_sys : (str) : AO system parameter file name (default = sysParams.json)
17 file_name_atm : (str) : atmospheric parameter file name (default = atmParams.json)
19 file_name_data : (str) : data fits file name (default = sys-input.fits), contains sub-apertures and actuator position etc
21 wfss_indices : (list(int)) : list of wfs to write to file
23 ts : (bool) : write truth sensor to file
25 dms_indices : (list(int)) : list of dm to write to file
27 imat_type : (str) : (optional), default "controller" use of regular controller or split tomography (among "controller", "splitTomo")
29 controller_id : (int) : index of te controller (default : all)
31 influ_index : (int) : actuator index to get the influence function from
34 write_json_sys_param(sup, wfss_indices=wfss_indices, ts=ts,
35 dms_indices=dms_indices,file_name=file_name_sys)
37 write_json_atm_param(sup, file_name=file_name_atm)
39 common.write_data(file_name_data, sup, wfss_indices=wfss_indices,
40 dms_indices=dms_indices, controller_id=controller_id,
41 influ=influ_index, compose_type=
"controller")
def write_parfiles(sup, *file_name_sys="./sysParams.json", file_name_atm="./atmParams.json", file_name_data="sys-input.fits", wfss_indices=None, ts=False, dms_indices=None, imat_type="controller", controller_id=-1, influ_index=0)
write the parameter files for SHIPS