def list_UTCs_from(start_utc):
    start = Observation(start_utc)
    cmd = (((('ls -1d ' + start.results_dir) + '/202* | grep -A 999999 ') + start_utc) + " | awk -F/ '{print $5}'")
    utcs = S.Popen(cmd, shell=True, stdout=S.PIPE).communicate()[0].strip().split('\n')
    '\n  if start.results_dir == start.conf.old_results_dir:\n    #Also append utcs from the new results directory\n    cmd = "ls -1d "+conf.results_dir+"/20* | grep -A 999999 "+start_utc+" | awk -F/ \'{print $5}\'"\n    utcs.extend(S.Popen(cmd, shell=True, stdout=S.PIPE).communicate()[0].strip().split("\n"))\n  '
    if (len(utcs) == 0):
        raise Exception('Given start UTC ({}) not found in {}'.format(start_utc, start.results_dir))
    return utcs
def list_UTCs_from(start_utc):
    start = Observation(start_utc)
    cmd = (((('ls -1d ' + start.results_dir) + '/202* | grep -A 999999 ') + start_utc) + " | awk -F/ '{print $5}'")
    utcs = S.Popen(cmd, shell=True, stdout=S.PIPE).communicate()[0].strip().split('\n')
    '\n  if start.results_dir == start.conf.old_results_dir:\n    #Also append utcs from the new results directory\n    cmd = "ls -1d "+conf.results_dir+"/20* | grep -A 999999 "+start_utc+" | awk -F/ \'{print $5}\'"\n    utcs.extend(S.Popen(cmd, shell=True, stdout=S.PIPE).communicate()[0].strip().split("\n"))\n  '
    if (len(utcs) == 0):
        raise Exception('Given start UTC ({}) not found in {}'.format(start_utc, start.results_dir))
    return utcs