Skip to content

Commit 18d0cbd

Browse files
committed
Add more tests, including with non-orthagonal axes
1 parent cc7bb8f commit 18d0cbd

35 files changed

Lines changed: 163 additions & 77 deletions
File renamed without changes.
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
SIMPLE = T / conforms to FITS standard
2+
BITPIX = 64 / array data type
3+
NAXIS = 2 / number of array dimensions
4+
NAXIS1 = 4096
5+
NAXIS2 = 2048
6+
WCSAXES = 2 / Number of coordinate axes
7+
CRPIX1 = -234.75 / Pixel coordinate of reference point
8+
CRPIX2 = 8.3393 / Pixel coordinate of reference point
9+
CDELT1 = -0.066667 / [deg] Coordinate increment at reference point
10+
CDELT2 = 0.026667 / [deg] Coordinate increment at reference point
11+
CUNIT1 = 'deg' / Units of coordinate increment and value
12+
CUNIT2 = 'deg' / Units of coordinate increment and value
13+
CTYPE1 = 'RA---TAN' / Right ascension, gnomonic projection
14+
CTYPE2 = 'DEC--TAN' / Declination, gnomonic projection
15+
CRVAL1 = 1.0 / [deg] Coordinate value at reference point
16+
CRVAL2 = 2.0 / [deg] Coordinate value at reference point
17+
LONPOLE = 180.0 / [deg] Native longitude of celestial pole
18+
LATPOLE = 2.0 / [deg] Native latitude of celestial pole
19+
RADESYS = 'ICRS' / Equatorial coordinate system
File renamed without changes.
File renamed without changes.

‎pyregion/tests/data/test01_fk4.reg‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Region file format: DS9 version 4.1
2+
global color=green dashlist=8 3 width=1 font="helvetica 10 normal roman" select=1 highlite=1 dash=0 fixed=0 edit=1 move=1 delete=1 include=1 source=1
3+
fk4
4+
-ellipse(170.59136,-58.988299,22.632",10.332",316.93614) # width=3 font="helvetica 10 normal" background
5+
circle(170.53458,-58.975762,18.510811") # color=cyan font="helvetica 10 normal"
6+
box(170.5966,-59.006744,42.804",23.616",18.957374) # width=4 font="helvetica 10 normal"
7+
polygon(170.55739,-58.993942,170.52425,-58.987246,170.53224,-59.010886,170.55741,-59.002112) # font="helvetica 10 normal"

0 commit comments

Comments
 (0)