This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import starlink.Ast as Ast | |
# Create a text file containing an STC-S phrase. | |
with open("stcs1","w") as f: | |
f.write(''' | |
Union ICRS TOPOCENTER ( | |
Circle 180 10 20 | |
Circle 190 10 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# Re-projects a 2D FITS image so that it is aligned pixel-for-pixel with | |
# another reference FITS image. | |
# Usage: | |
# wcsalign.py <infile> <reffile> <outfile> | |
# | |
# <infile> = Input fits file | |
# <reffile> = Reference fits file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# Moves a simple 2D FITS image in X and Y. The output image is the same size as | |
# the input image. | |
# Usage: | |
# move_wcs.py <infile> <outfile> <xshift> <yshift> | |
# | |
# <infile> = Input fits file | |
# <outfile> = Output fits file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# Rotates a simple 2D FITS image. If <xcen> and <ycen> are specified, | |
# the output image is the same size as the input image. Otherwise, | |
# the output image is the smallest that will hold all the rotated input | |
# data. | |
# Usage: | |
# rotate_wcs.py <infile> <outfile> <rotation> [<xcen> <ycen>] | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .angles import Angle | |
from .. import units as u | |
import starlink.Ast as Ast | |
__all__ = [ 'SkyPosition', 'ICRSPosition', 'AZELPosition', | |
'ECLIPTICPosition', 'FK4Position', 'FK4_NO_EPosition', | |
'FK5Position', 'GALACTICPosition', 'GEOCENTRICPosition', | |
'HELIOECLIPTICPosition', 'J2000Position', | |
'SUPERGALACTICPosition', 'UNKNOWNPosition' ] |