2929@click .option ('--relax-sanity-checks' , is_flag = True , default = False , show_default = True ,
3030 help = 'RF traces with amplitudes > 1.0 or troughs around onset time are dropped by default. '
3131 'This option allows RF traces with amplitudes > 1.0 to pass through' )
32+ @click .option ('--normalize' , is_flag = True , default = False , show_default = True ,
33+ help = 'Normalizes each trace by its maximum absolute value' )
3234@click .option ('--dz' , type = float , default = 0.1 , show_default = True ,
3335 help = 'Depth-step (km)' )
3436@click .option ('--max-depth' , type = click .FloatRange (0 , 750 ), default = 150 , show_default = True ,
5153 default = 100 , show_default = True ,
5254 help = 'Maximum depth (km) up to which velocities from the ANT model are to be extracted. '
5355 'Has no impact if --ant-model is not speficied.' )
54- def main (rf_h5_file , output_h5_file , relax_sanity_checks , dz , max_depth , fmin , fmax ,
56+ def main (rf_h5_file , output_h5_file , relax_sanity_checks , normalize , dz , max_depth , fmin , fmax ,
5557 min_slope_ratio , ant_model , ant_model_max_depth ):
5658 """Perform 3D migration of RFs
5759 RF_H5_FILE : Path to RFs in H5 format
@@ -71,7 +73,8 @@ def main(rf_h5_file, output_h5_file, relax_sanity_checks, dz, max_depth, fmin, f
7173 m = Migrator (rf_filename = rf_h5_file , dz = dz , max_depth = max_depth ,
7274 min_slope_ratio = min_slope_ratio , ant_model = am ,
7375 logger = log )
74- m .process_streams (output_h5_file , relax_sanity_checks = relax_sanity_checks , fmin = fmin , fmax = fmax )
76+ m .process_streams (output_h5_file , relax_sanity_checks = relax_sanity_checks ,
77+ normalize = normalize , fmin = fmin , fmax = fmax )
7578# end
7679
7780if __name__ == "__main__" :
0 commit comments