Skip to content
Snippets Groups Projects
Commit e6059399 authored by Martin Gels's avatar Martin Gels
Browse files

BugID:1005

Added chech observation mode.
parent b4f1a627
No related branches found
No related tags found
No related merge requests found
import time
import LOFAR_Parset
import math
import sys
class CS1_Parset(LOFAR_Parset.Parset):
......@@ -164,6 +165,10 @@ class CS1_Parset(LOFAR_Parset.Parset):
if len(subbandIDs) != self.nSubbands:
raise Exception('nSubbands(%d) != SubbandIDs(%d).' % (self.nSubbands, len(subbandIDs)))
if self.getInt32('Observation.nyquistZone') not in range(1,4):
print 'Use nyquistZone 1, 2 or 3'
sys.exit(0)
sbs = list()
for sb in range(0, len(subbandIDs)):
sbs.append((self.getInt32('Observation.nyquistZone')-1)*(self.getInt32('Observation.sampleClock')*1000000/2) + subbandIDs[sb] * subbandwidth)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment