Esempio n. 1
0
    def __init__(self, wkt, parent=None):
        QtWidgets.QDialog.__init__(self, parent)

        self.checkbox_smooth = QtWidgets.QCheckBox()
        self.proj = dp.GroupProj('Confirm Model Projection')
        self.proj.set_current(wkt)

        self.setupui()
Esempio n. 2
0
    def __init__(self, parent=None):
        QtWidgets.QDialog.__init__(self, parent=None)

        self.parent = parent
        self.indata = {}
        self.outdata = {}
        if parent is None:
            self.reportback = print
            self.piter = iter
        else:
            self.reportback = self.parent.showprocesslog
            self.piter = self.parent.pbar.iter

        MAXDEG = 13
        MAXCOEFF = (MAXDEG*(MAXDEG+2)+1)

        self.gh = np.zeros([4, MAXCOEFF])
        self.d = 0
        self.f = 0
        self.h = 0
        self.i = 0
        self.dtemp = 0
        self.ftemp = 0
        self.htemp = 0
        self.itemp = 0
        self.x = 0
        self.y = 0
        self.z = 0
        self.xtemp = 0
        self.ytemp = 0
        self.ztemp = 0
        self.xdot = 0
        self.ydot = 0
        self.zdot = 0
        self.fdot = 0
        self.hdot = 0
        self.idot = 0
        self.ddot = 0

        self.dsb_alt = QtWidgets.QDoubleSpinBox()
        self.dateedit = QtWidgets.QDateEdit()
        self.combobox_dtm = QtWidgets.QComboBox()
        self.combobox_mag = QtWidgets.QComboBox()
        self.proj = dp.GroupProj('Input Projection')

        self.setupui()

        self.ctrans = None
Esempio n. 3
0
def tests():
    """ Tests to debug """
    app = QtWidgets.QApplication(sys.argv)

    ttt = PTime()
    aaa = dp.GroupProj('Input Projection')

    ttt.since_last_call()
    pdb.set_trace()

    points = np.random.rand(1000000, 2)
    values = dp.func(points[:, 0], points[:, 1])

    dat = dp.quickgrid(points[:, 0], points[:, 1], values, .001, numits=-1)

    plt.imshow(dat)
    plt.colorbar()
    plt.show()