blob: 5b3f106fc75e2d651317aa761a87f65d826b9b28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
""" STWCS
This package provides support for WCS based distortion models and coordinate
transformation. It relies on PyWCS (based on WCSLIB). It consists of two
subpackages: updatewcs and wcsutil.
updatewcs performs corrections to the
basic WCS and includes other distortion infomation in the science files as
header keywords or file extensions.
Wcsutil provides an HSTWCS object which extends pywcs.WCS object and provides
HST instrument specific information as well as methods for coordinate
transformation. wcsutil also provides functions for manipulating alternate WCS
descriptions in the headers.
"""
from __future__ import division # confidence high
import distortion
import pywcs
from stsci.tools import fileutil
__docformat__ = 'restructuredtext'
DEGTORAD = fileutil.DEGTORAD
RADTODEG = fileutil.RADTODEG
if False :
__version__ = ''
__svn_version = ''
__full_svn_info__ = ''
__setup_datetime__ = None
try:
__version__ = __import__('pkg_resources').get_distribution('stwcs').version
except:
pass
else :
__version__ = '0.9'
try:
from stwcs.svninfo import (__svn_version__, __full_svn_info__,
__setup_datetime__)
except ImportError:
__svn_version__ = 'Unable to determine SVN revision'
|