Previous topic

pycrtools.core.harray

Next topic

pycrtools.core.hftools.mFFT

This Page

pycrtools.core.hftools.mCalibration

pycrtools.core.hftools.mCalibration.hProjectPolarizations()

hProjectPolarizations(polx, poly, polz, polt, polp, az, el)

Project on-sky polarizations onto x,y,z.

Parameters

polx Polarization X.
poly Polarization Y.
polz Polarization Z.
polt Polarization theta.
polp Polarization phi.
az Azimuth in radians East positive from North.
el Elevation in radians positive up.
pycrtools.core.hftools.mCalibration.hProjectPolarizationsInverse()

hProjectPolarizationsInverse(pol0, pol1, polx, poly, polz, az, el)

Project on-sky polarizations onto x,y,z.

Parameters

pol0 Polarization 0.
pol1 Polarization 1.
polx Polarization X.
poly Polarization Y.
polz Polarization Z.
az Azimuth with respect to antenna frame.
el Elevation with respect to antenna frame.
pycrtools.core.hftools.mCalibration.hStokesParameters()

hStokesParameters(S, polx, poly, polxh, polyh, signal_start, signal_end)

Calculate Stokes parameters I, Q, U and V

Parameters

S Stokes parameters I, Q, U and V.
polx Polarization X.
poly Polarization Y.
polxh Hilbert transform of polarization X.
polyh Hilbert transform of polarization Y.
signal_start Start of signal window.
signal_end End of signal window.
pycrtools.core.hftools.mCalibration.hGetJonesMatrix()

hGetJonesMatrix(J, f, az, el, Vtheta, Vphi, fstart, fstep, fn, tstart, tstep, tn, pstart, pstep, pn)

Calculate Jones matrix for given frequencies and positions.

Parameters

J Jones matrix.
f Frequency.
az Azimuth in degrees East positive from North.
el Elevation in degrees positive up.
Vtheta Table with response of theta polarization.
Vphi Table with response of phi polarization.
fstart  
fstep  
fn  
tstart  
tstep  
tn  
pstart  
pstep  
pn  
pycrtools.core.hftools.mCalibration.hDiagonalMatrix()

hDiagonalMatrix(M, v)

Create matrix with a given values on the diagonal

Parameters

M Square diagonal matrix.
v Values to put on the diagonal.
pycrtools.core.hftools.mCalibration.hSwap()

hSwap(vec0, vec1)

Swap two vectors

Parameters

vec0 Vector 0.
vec1 Vector 1.
pycrtools.core.hftools.mCalibration.hMatrixMix()

hMatrixMix(vec0, vec1, M)

Mix two vectors using a mixing matrix

Parameters

vec0 Vector 0.
vec1 Vector 1.
M 2 dimensional mixing matrix.
pycrtools.core.hftools.mCalibration.hInvertMatrix()

hInvertMatrix(Minv, M, n)

Invert n x n matrix

Parameters

Minv Inverse matrix (can be the same as the input to save memory).
M Matrix.
n Dimension.
pycrtools.core.hftools.mCalibration.hInvertComplexMatrix()

hInvertComplexMatrix(Minv, M, n)

Invert n x n matrix

Parameters

Minv Inverse matrix (can be the same as the input to save memory).
M Matrix.
n Dimension.
pycrtools.core.hftools.mCalibration.hMultiplyMatrix()

hMultiplyMatrix(C, A, B, n, m, p)

Multiply two matrices

Parameters

C Output (n * p) matrix (can be the same as one of the two inputs to save memory but only for square matrices).
A Input (n * m) matrix.
B Input (m * p) matrix.
n Dimension.
m Dimension.
p Dimension.
pycrtools.core.hftools.mCalibration.hMultiplyComplexMatrix()

hMultiplyComplexMatrix(C, A, B, n, m, p)

Multiply two matrices

Parameters

C Output (n * p) matrix (can be the same as one of the two inputs to save memory but only for square matrices).
A Input (n * m) matrix.
B Input (m * p) matrix.
n Dimension.
m Dimension.
p Dimension.
pycrtools.core.hftools.mCalibration.hInvertComplexMatrix2D()

hInvertComplexMatrix2D(Minv, M)

Invert 2 x 2 matrix

Parameters

Minv Inverse matrix (can be the same as the input to save memory).
M Matrix.
pycrtools.core.hftools.mCalibration.hNumberOfConsecutiveZeros()

hNumberOfConsecutiveZeros(nof, signal)

Data validation check

Parameters

nof Number of consectutive zeros.
signal Signal