def initialise_algorithm(self, input_data): self.cnf = ConfigurationFile() self.cst = ConstantsFile( c_cst=input_data['c_cst'], pi_cst=input_data['pi_cst'], semi_major_axis_cst=input_data['semi_major_axis_cst'], flat_coeff_cst=input_data['flat_coeff_cst'], semi_minor_axis_cst=input_data['semi_minor_axis_cst'], sec_in_day_cst=60*60*24 ) self.chd = CharacterisationFile( self.cst, freq_ku_chd=input_data['freq_ku_chd'], N_ku_pulses_burst_chd=input_data['n_ku_pulses_burst_chd'], pri_sar_pre_dat=input_data['pri_sar_pre_dat'] ) self.surface_location_algorithm = SurfaceLocationAlgorithm(self.chd, self.cst, self.cnf)
def initialise_algorithm(self, input_data: TestDataLoader): self.cnf = ConfigurationFile( flag_surface_focusing_cnf=input_data["flag_surface_focusing_cnf"], surface_focusing_lat_cnf=input_data.get("surface_focusing_lat_cnf"), surface_focusing_lon_cnf=input_data.get("surface_focusing_lon_cnf"), surface_focusing_alt_cnf=input_data.get("surface_focusing_alt_cnf") ) self.cst = ConstantsFile( c_cst=input_data['c_cst'], pi_cst=input_data['pi_cst'], semi_major_axis_cst=input_data['semi_major_axis_cst'], flat_coeff_cst=input_data['flat_coeff_cst'], semi_minor_axis_cst=input_data['semi_minor_axis_cst'], sec_in_day_cst=60*60*24 ) self.chd = CharacterisationFile( self.cst, freq_ku_chd=input_data['freq_ku_chd'], N_ku_pulses_burst_chd=input_data['n_ku_pulses_burst_chd'], pri_sar_pre_dat=input_data['pri_sar_pre_dat'] ) self.surface_location_algorithm = SurfaceLocationAlgorithm(self.chd, self.cst, self.cnf)