Benito Marcote 1 year ago
parent
commit
31457e0dc4
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      schedgaps.py

+ 8
- 2
schedgaps.py View File

@@ -70,7 +70,7 @@ for i,scope in enumerate(telescopes):
if float((scan[4+i])) >= args.early:
#print (scope, map(int,scan[1].split(':')))
currentTime=(scan[0]+'/'+scan[1])
#print(lastGap, currentTime)
# print(lastGap, currentTime)
tDiff = datetime.strptime(currentTime, '%j/%H:%M:%S') - datetime.strptime(lastGap, '%j/%H:%M:%S')
if tDiff.total_seconds()/60.0 > 15.0:
print("%s%s, %s to %s, Interval = %.1f minutes" % (contStationText, scope, lastGap, currentTime, (tDiff.total_seconds()/60)))
@@ -84,7 +84,11 @@ for i,scope in enumerate(telescopes):
pass


currentTime=(scan[0]+'/'+scan[1])
if ':' in scan[1]:
currentTime=(scan[0]+'/'+scan[1])
else:
currentTime=(scan[1]+'/'+scan[2])
# print(lastGap, currentTime)
tDiff = datetime.strptime(currentTime, '%j/%H:%M:%S') - datetime.strptime(lastGap, '%j/%H:%M:%S')
if tDiff.total_seconds()/60.0 > 15.0:
print("%s%s, %s to %s, Interval = %.1f minutes" % (contStationText, scope, lastGap, currentTime, (tDiff.total_seconds()/60)))
@@ -93,3 +97,5 @@ for i,scope in enumerate(telescopes):

print()
print("Stations with an * use continuous cal and can be ignored\n")



Loading…
Cancel
Save