From 69d7cb772beb540d4f586d96259a366aa2fa9782 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 19 Jul 2017 20:19:36 +0800 Subject: sky.py: Default to assume a flat sky for patch Use "CAR" (Cartesian) projection instead of "TAN" (tangential) projection. Signed-off-by: Aaron LI --- fg21sim/sky.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/fg21sim/sky.py b/fg21sim/sky.py index 1460ec2..f40c1d5 100644 --- a/fg21sim/sky.py +++ b/fg21sim/sky.py @@ -33,7 +33,8 @@ class SkyPatch: NOTE/XXX -------- - Only `TAN` (tangential) sky projection supported! + Currently just use ``CAR`` (Cartesian) sky projection, i.e., + assuming a flat sky! Parameters ---------- @@ -48,11 +49,14 @@ class SkyPatch: The pixel size of the sky patch, will be used to determine the sky coordinates. Unit: [arcsec] - center : (ra, dec) tuple + center : (ra, dec) tuple, optional The (R.A., Dec.) coordinate of the sky patch center. Unit: [deg] - infile : str + infile : str, optional The path to the input sky patch + frequency : float, optional + The frequency of the input sky path + Unit: [MHz] Attributes ---------- @@ -188,12 +192,13 @@ class SkyPatch: NOTE/XXX -------- - Currently only support the `TAN` (tangential) projection. + Currently just use the `CAR` (Cartesian) projection, + i.e., assuming a flat sky. """ w = make_wcs(center=(self.xcenter, self.ycenter), size=(self.xsize, self.ysize), pixelsize=self.pixelsize, - frame="ICRS", projection="TAN") + frame="ICRS", projection="CAR") return w def contains(self, skycoord): -- cgit v1.2.2