aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/sky.py
Commit message (Collapse)AuthorAgeFilesLines
* config: Change "output/use_float" to "output/float32"Aaron LI2017-08-261-1/+1
|
* sky.py: Rename load() -> open(), read() -> load()Aaron LI2017-08-261-18/+24
|
* Fix the warning on scipy.ndimage.zoom output shape calculationAaron LI2017-08-141-1/+2
| | | | | | | | | scipy.ndimage.zoom calculate the output/zoomed image shape with round(), while the old versions use int() instead. When the two calculations are different, a warning is raised. This commit fixes the calculation mismatch. Signed-off-by: Aaron LI <aly@aaronly.me>
* Fix several bugsAaron LI2017-08-131-1/+4
| | | | | | | | | * Brought back "clobber" property * Delete the wrong "self.halos=[]" * Fix the wrong assignment of "cimax0" * Assign default values for {c,r}i{min,max}1 Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Fix the "pixelsize" propertyAaron LI2017-08-131-16/+16
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Implement "add()" method for SkyPatch classAaron LI2017-08-131-9/+87
| | | | | | XXX/TODO: need implement this method for SkyHealpix as well! Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Set sky header propertiesAaron LI2017-08-131-0/+1
| | | | | | | * Clean up the unused configurations * Add "FREQ" keyword to the sky FITS header Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Add "add_header()" methodAaron LI2017-08-131-0/+9
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Overload common arithmetic operatorsAaron LI2017-08-131-0/+58
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Add parameter "clobber" to "write()" methodAaron LI2017-08-131-4/+12
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Update against the SkyBase class, various cleanupsAaron LI2017-08-131-88/+26
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Update to use "write_fits_{image,healpix}" functionsAaron LI2017-08-131-43/+19
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Add new properties to SkyBaseAaron LI2017-08-131-1/+35
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils: Merge fits.py into io.pyAaron LI2017-08-131-1/+3
| | | | | | Functions "{read,write}_fits_healpix()" merged into io.py Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Add float32/clobber/checksum etc. to SkyBaseAaron LI2017-08-131-6/+61
|
* sky.py: Add basic SkyBase class as the base of SkyPatch and SkyHealpixAaron LI2017-08-131-0/+113
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Implement "random_points()" methodAaron LI2017-07-191-6/+85
| | | | | | Generate requested number of random points within the sky. Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: frequency has implicit unit "MHz"Aaron LI2017-07-191-11/+22
| | | | | | And some minor updates Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Default to assume a flat sky for patchAaron LI2017-07-191-5/+10
| | | | | | Use "CAR" (Cartesian) projection instead of "TAN" (tangential) projection. Signed-off-by: Aaron LI <aly@aaronly.me>
* Use [arcsec] as the unit for pixel size and resolutionAaron LI2017-07-191-13/+14
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Write PIXELSIZE, RA0, and DEC0 to header for patch skyAaron LI2017-06-191-0/+3
|
* sky.py: Fix mkdir when the directory name is emptyAaron LI2017-06-121-2/+2
|
* sky.py: Fix FITS header writeAaron LI2017-05-271-4/+8
|
* sky.py: Add "area()" methodAaron LI2017-05-251-0/+21
| | | | | | XXX/FIXME --------- Consider the spherical coordination and WCS sky projection!!
* sky.py: Implement method "reproject_to()"Aaron LI2017-05-221-8/+102
| | | | | | | | | | This method reproject the given sky/image onto the grid of its own, using the ``reproject`` package [1]. However, the performance may be a problem and needs optimization or rewrite. [1] reproject: https://github.com/astrofrog/reproject
* sky/SkyPatch: Add wcs and region coverage checkAaron LI2017-05-221-0/+56
| | | | NOTE: only TAN sky projection supported.
* sky.py: Flatten 2D image of sky patch to 1D for easier processingAaron LI2017-05-211-14/+21
| | | | | Flatten the image array to 1D makes it similar to the HEALPix map array, therefore, it is easier to deal with both cases.
* Add sky.py to support both sky patch and HEALPix all-sky mapAaron LI2017-05-211-0/+272