Skip to content
Snippets Groups Projects
Commit c93e0e13 authored by Joris van Zwieten's avatar Joris van Zwieten
Browse files

Bug 1283: Fixed imports in solflag.py and renamed module to lofar.solutions

parent 77ad1aa5
Branches
No related tags found
No related merge requests found
lofarpython_PYTHON = __init__.py solfetch.py solplot.py solflag.py
lofarpythondir = $(pythondir)/lofar/sol
lofarpythondir = $(pythondir)/lofar/solutions
libdir = $(lofarpythondir)
include $(top_srcdir)/Makefile.common
import solflag
import lofar.solutions
solflag.flag("test.MS", "instrument.db", 20, 3.0)
lofar.solutions.flag("test.MS", "instrument.db", 20, 3.0)
import lofar.parmdb
import solplot
import lofar.solutions
db = lofar.parmdb.parmdb("instrument.db")
stations = ["CS00%d_HBA%d" % (x,y) for x in [1,8] for y in range(0,4)]
(ampl, phase) = solplot.fetch(db, stations)
(ampl, phase) = lofar.solutions.fetch(db, stations)
solplot.plot(ampl)
lofar.solutions.plot(ampl)
import sys
import math
import numpy
import pylab
import pyrap.tables
import lofar.parmdb
import solfetch
def flag(msName, dbName, half_window, threshold, sources=None, storeFlags=True,
......@@ -122,7 +124,7 @@ def flag(msName, dbName, half_window, threshold, sources=None, storeFlags=True,
pylab.clf()
pylab.subplot("21%d" % (el + 1))
pylab.plot(ampl[el][src][stat], 'k-')
pylab.plot(ampl[el][src][stat], 'r-')
pylab.plot(x_axis, sol_masked, 'go', markersize=4)
# Merge flags based on the solutions for the current direction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment