def test_calc_footprint_2():
 fits = get_pkg_data_filename(u'data/sip.fits')
 w = wcs.WCS(fits)
 axes = (1000, 1051)
 ref = np.array([[202.39265216, 47.17756518], [202.7469062, 46.91483312], [203.11487481, 47.14359319], [202.76092671, 47.40745948]])
 footprint = w.calc_footprint(axes=axes, undistort=False)
 assert_allclose(footprint, ref)

def test_calc_footprint_2 ( ) : fits = get_pkg_data_filename ( u'data/sip.fits' ) w = wcs . WCS ( fits ) axes = ( 1000 , 1051 ) ref = np . array ( [ [ 202.39265216 , 47.17756518 ] , [ 202.7469062 , 46.91483312 ] , [ 203.11487481 , 47.14359319 ] , [ 202.76092671 , 47.40745948 ] ] ) footprint = w . calc_footprint ( axes = axes , undistort = False ) assert_allclose ( footprint , ref )
test calc_footprint without distortion .