| Home | Trees | Indices | Help |
|
|---|
|
|
Utility functions for PyDrizzle that rely on PyRAF's interface to IRAF tasks.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
no = False
|
|||
yes = True
|
|||
IDCTAB = 1
|
|||
DRIZZLE = 2
|
|||
TRAUGER = 3
|
|||
DEFAULT_IDCDIR = def factorial(n): #Compute a factorial for integer n. |
|||
__package__ =
|
|||
Imports: os, ceil, floor, np, linalg, fileutil, buildRotMatrix, DEGTORAD
|
|||
Perform a linear fit between 2 WCS for shift, rotation and scale.
Based on 'WCSLIN' from 'drutil.f'(Drizzle V2.9) and modified to
allow for differences in reference positions assumed by PyDrizzle's
distortion model and the coeffs used by 'drizzle'.
Parameters:
img - ObsGeometry instance for input image
ref_wcs - Undistorted WCSObject instance for output frame
|
Compute the least-squares fit between two arrays. A Python translation of 'FITLIN' from 'drutil.f' (Drizzle V2.9). |
|
|||
DEFAULT_IDCDIR
def factorial(n):
#Compute a factorial for integer n.
m = 1
for i in range(int(n)):
m = m * (i+1)
return m
def combin(j,n):
#Return the combinatorial factor for j in n.
return (factorial(j) / (factorial(n) * factorial( (j-n) ) ) )
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Aug 22 14:35:54 2011 | http://epydoc.sourceforge.net |