Package pylal :: Module cSqrTutils
[hide private]
[frames] | no frames]

Module cSqrTutils

source code

* Copyright (C) 2004, 2005 Cristina V. Torres * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with with program; see the file COPYING. If not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA


Version:  

Date: $Date$

Author: Cristina Torres <cristina.torres@ligo.org>

Classes [hide private]
  cSqrTSensor
This class is just method globber that works expects as input TimeSeries objects defined by pylal.frutils.
Functions [hide private]
 
CSTdot(A, B)
Input two matrices Nx3 in size.
source code
 
CSTcross(A, B)
Input two matrices Nx3 in size.
source code
 
intersectPlanes(normA, normB, coordA, coordB, wiggleA=0.0)
Expects a 3xM matrices of 3D vectors for the plane norms also in addition to that we take vectors from the "origin" (0,0,0) (single 3x1 matrix) to be the coordinate input.
source code
 
intersectLines(vecA, vecB, coordA, coordB, wiggleA=0.0)
Expects inputs of 3xM matrices representing vectors along a line and a vector 3xM of matching points on lines for those vectors.
source code
Variables [hide private]
  disableGraphics = True
Function Details [hide private]

CSTdot(A, B)

source code 

Input two matrices Nx3 in size. Calculates the inner product row by row.

CSTcross(A, B)

source code 

Input two matrices Nx3 in size. Calculates the cross product row by row.

intersectPlanes(normA, normB, coordA, coordB, wiggleA=0.0)

source code 

Expects a 3xM matrices of 3D vectors for the plane norms also in addition to that we take vectors from the "origin" (0,0,0) (single 3x1 matrix) to be the coordinate input. The output is a tuple of 3xM arrays parameterized by their index, intersection vector and point on that line. Output is (linePoint,LineVector) ((3xM),(3xM)). The input wiggleA is the wiggle angle in radian to consider two vectors parrallel.

intersectLines(vecA, vecB, coordA, coordB, wiggleA=0.0)

source code 

Expects inputs of 3xM matrices representing vectors along a line and a vector 3xM of matching points on lines for those vectors. Output is in a 3xM collection of intersecting points. Examples: Input ([[vX,vY,vZ]],[[lX,lY,lZ]])

Output [[i,j,k]] A set of lines is considered parallel if angle(rads) between then is less than wiggleA, in this case the output coordinate is (NaN,NaN,NaN).