File: compassTest.py

package info (click to toggle)
astlib 0.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,520 kB
  • sloc: ansic: 37,511; sed: 8,839; python: 3,881; makefile: 17
file content (23 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
#File: compassTest/compassTest.py
#Created: Sat Dec 15 17:29:28 2012
#Last Change: Sat Dec 15 17:29:42 2012
# -*- coding: utf-8 -*-
#
# Test of contour plot

import astropy.io.fits as pyfits
from astLib import *
import pylab

TEST_IMAGE = "../../../testingData/testImage1.fits"

img = pyfits.open(TEST_IMAGE)
wcs = astWCS.WCS(TEST_IMAGE)
d = img[0].data

f = astPlots.ImagePlot(d, wcs, axes = [0, 0, 1, 1])
f.addCompass("SE", 60.0, color = 'red')

f.draw()
f.save("output_compassTest.png")