You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Thsi will ask for an epicentral distance, then more/less
## from this information, it will move the traces which meet the criteria of the above
##E.g. dist 85, below would move all traces which have a distance of less than 85 to a new directory.
importobspy
importos
importshutil
fromglobimport*
importargparse
parser=argparse.ArgumentParser(description='Move unwanted distance SAC files to a separate directory.')
parser.add_argument("-b","--back_azimuth", help="Enter the back azimuth in degrees", type=str, nargs=1, required=True, action="store")
parser.add_argument("-c","--above_or_below", help="Move traces which are either above(a) or below(b) the back azimuth.", type=str, nargs=1, required=True, action="store")
parser.add_argument("-v", "--verbose", help="Increase verbosity of output, just --verbose is enough to turn on.",action="store_true")