def add_arguments(parser): parser.add_argument('title', default='Plot', type=str, help='The title of the plot') parser.add_argument('pad', default=50, type=int, help='The time in milliseconds aboe and below the wedge') parser.add_argument('thickness', default=50, type=int, help='The maximum thickness of the wedge') parser.add_argument('Rpp0', type=rock_properties_type, help='rock properties of upper rock', required=True) parser.add_argument('Rpp1', type=rock_properties_type, help='rock properties of lower rock', required=True) parser.add_argument('theta', type=float, action='list', help='Angle of incidence', default='0,60,1') parser.add_argument('f', type=float, help='Frequency of wavelet', default=25) parser.add_argument('points', type=int, help='Length of wavelet in samples', default=100) parser.add_argument('reflectivity_method', type=reflectivity_type, help='Algorithm for calculating reflectivity', default='zoeppritz', choices=MODELS.keys()) parser.add_argument('colour', type=str, help='Matplotlib colourmap', default='Greys') return parser
def add_arguments(parser): parser.add_argument('title', default='Plot', type=str, help='The title of the plot') parser.add_argument('xlim', type=float, action='list', help='The range of amplitudes to plot eg. xlim=-1.0,1.0') parser.add_argument('time', default=150, type=int, help='The size in milliseconds of the plot') parser.add_argument('Rpp0', type=rock_properties_type, help='rock properties of upper rock', required=True) parser.add_argument('Rpp1', type=rock_properties_type, help='rock properties of lower rock', required=True) parser.add_argument('theta1', type=float, help='angle of incidence') parser.add_argument('f', type=float, help='frequency', default=25) parser.add_argument('reflectivity_model', type=reflectivity_type, help='Algorithm for calculating reflectivity', default='zoeppritz', choices=MODELS.keys()) return parser