Source
121
121
if (msFound):
122
122
antstring = msAnt[antID]
123
123
else:
124
124
antstring = '%02d' % (antID)
125
125
if (antstring.isdigit()):
126
126
Antstring = "Ant %s" % antstring
127
127
else:
128
128
Antstring = antstring
129
129
return(antstring, Antstring)
130
130
131
-
132
131
def makeplot(figfile,msFound,msAnt,overlayAntennas,pages,pagectr,density,
133
132
interactive,antennasToPlot,spwsToPlot,overlayTimes,overlayBasebands,
134
133
locationCalledFrom, xant, ispw, subplot, resample='1',
135
134
debug=False,
136
135
figfileSequential=False, figfileNumber=0):
137
136
if (type(figfile) == str):
138
137
if (figfile.find('/')>=0):
139
138
directories = figfile.split('/')
140
139
directory = ''
141
140
for d in range(len(directories)-1):
589
588
def lineNumber():
590
589
"""Returns the current line number in our program."""
591
590
return inspect.currentframe().f_back.f_lineno
592
591
593
592
def drawAtmosphereAndFDM(showatm, showtsky, atmString, subplotRows, mysize, TebbSky,
594
593
TebbSkyImage,plotrange, xaxis, atmchan, atmfreq, transmission,
595
594
subplotCols, showatmPoints,xframe, channels,LO1,atmchanImage,
596
595
atmfreqImage,transmissionImage, firstFrame,showfdm,nChannels,tableFormat,
597
596
originalSpw_casa33, chanFreqGHz_casa33,originalSpw,chanFreqGHz,
598
597
overlayTimes, overlayAntennas, xant, antennasToPlot, overlaySpws,
599
-
baseband, showBasebandNumber, basebandDict, overlayBasebands, overlayColors,
598
+
baseband, showBasebandNumber, basebandDict, overlayBasebands, overlayColors,
600
599
drewAtmosphere):
601
600
"""
602
601
If requested by the user at the command line, draw the atmospheric curve
603
602
and the FDM window locations.
604
603
"""
605
604
mylineno = lineNumber()
606
605
ylim = pb.ylim() # CAS-8655
607
606
if ((showatm or showtsky) and len(atmString) > 0):
608
607
ylim = DrawAtmosphere(showatm, showtsky, subplotRows, atmString,
609
608
mysize, TebbSky, plotrange, xaxis, atmchan,
610
-
atmfreq, transmission, subplotCols, overlayColors,
609
+
atmfreq, transmission, subplotCols,
611
610
showatmPoints=showatmPoints, xframe=xframe,
612
611
channels=channels,
613
612
mylineno=mylineno,xant=xant,
614
613
overlaySpws=overlaySpws, overlayBasebands=overlayBasebands,
615
614
drewAtmosphere=drewAtmosphere)
616
615
if (LO1 != '' and LO1 is not None):
617
616
# Now draw the image band
618
617
ylim = DrawAtmosphere(showatm,showtsky, subplotRows, atmString,
619
618
mysize, TebbSkyImage, plotrange, xaxis,
620
619
atmchanImage, atmfreqImage, transmissionImage,