aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-19 20:19:36 +0800
committerAaron LI <aly@aaronly.me>2017-07-19 20:19:36 +0800
commit69d7cb772beb540d4f586d96259a366aa2fa9782 (patch)
tree18e32abf97c683665d7a1d569570d876195d9222
parente8f394527d574c9b25368e61486fab400a722600 (diff)
downloadfg21sim-69d7cb772beb540d4f586d96259a366aa2fa9782.tar.bz2
sky.py: Default to assume a flat sky for patch
Use "CAR" (Cartesian) projection instead of "TAN" (tangential) projection. Signed-off-by: Aaron LI <aly@aaronly.me>
-rw-r--r--fg21sim/sky.py15
1 files 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):