def test_calc_footprint_3():
 w = wcs.WCS()
 w.wcs.ctype = [u'GLON-CAR', u'GLAT-CAR']
 w.wcs.crpix = [1.5, 5.5]
 w.wcs.cdelt = [(-0.1), 0.1]
 axes = (2, 10)
 ref = np.array([[0.1, (-0.5)], [0.1, 0.5], [359.9, 0.5], [359.9, (-0.5)]])
 footprint = w.calc_footprint(axes=axes, undistort=False, center=False)
 assert_allclose(footprint, ref)

def test_calc_footprint_3 ( ) : w = wcs . WCS ( ) w . wcs . ctype = [ u'GLON-CAR' , u'GLAT-CAR' ] w . wcs . crpix = [ 1.5 , 5.5 ] w . wcs . cdelt = [ ( - 0.1 ) , 0.1 ] axes = ( 2 , 10 ) ref = np . array ( [ [ 0.1 , ( - 0.5 ) ] , [ 0.1 , 0.5 ] , [ 359.9 , 0.5 ] , [ 359.9 , ( - 0.5 ) ] ] ) footprint = w . calc_footprint ( axes = axes , undistort = False , center = False ) assert_allclose ( footprint , ref )
test calc_footprint with corner of the pixel .