Skip to content

Commit

Permalink
Add test how it should be (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe authored and kbruegge committed Dec 12, 2018
1 parent e715248 commit d30d4d8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ctapipe/coordinates/tests/test_coordinates.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
import numpy as np
import astropy.units as u
from astropy.coordinates import SkyCoord


def test_cam_to_nominal():
from ctapipe.coordinates import CameraFrame, HorizonFrame, NominalFrame

telescope_pointing = SkyCoord(alt=70 * u.deg, az=0 * u.deg, frame=HorizonFrame())
array_pointing = SkyCoord(alt=72 * u.deg, az=0 * u.deg, frame=HorizonFrame())

cam_frame = CameraFrame(focal_length=28 * u.m, pointing_direction=telescope_pointing)
cam = SkyCoord(x=0.5 * u.m, y=0.1 * u.m, frame=cam_frame)

nom_frame = NominalFrame(array_direction=array_pointing)
cam.transform_to(nom_frame)


def test_cam_to_tel():
Expand Down

0 comments on commit d30d4d8

Please sign in to comment.