Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sky.py: Allow to set "header"; add "add_history()" | Aaron LI | 2017-08-26 | 1 | -0/+23 |
| | | | | XXX: how to avoid the duplicate @header.setter??? | ||||
* | sky.py: Add more numeric special methods | Aaron LI | 2017-08-26 | 1 | -0/+52 |
| | |||||
* | config: Change "output/use_float" to "output/float32" | Aaron LI | 2017-08-26 | 1 | -1/+1 |
| | |||||
* | sky.py: Rename load() -> open(), read() -> load() | Aaron LI | 2017-08-26 | 1 | -18/+24 |
| | |||||
* | Fix the warning on scipy.ndimage.zoom output shape calculation | Aaron LI | 2017-08-14 | 1 | -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 bugs | Aaron LI | 2017-08-13 | 1 | -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" property | Aaron LI | 2017-08-13 | 1 | -16/+16 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | sky.py: Implement "add()" method for SkyPatch class | Aaron LI | 2017-08-13 | 1 | -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 properties | Aaron LI | 2017-08-13 | 1 | -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()" method | Aaron LI | 2017-08-13 | 1 | -0/+9 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | sky.py: Overload common arithmetic operators | Aaron LI | 2017-08-13 | 1 | -0/+58 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | sky.py: Add parameter "clobber" to "write()" method | Aaron LI | 2017-08-13 | 1 | -4/+12 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | sky.py: Update against the SkyBase class, various cleanups | Aaron LI | 2017-08-13 | 1 | -88/+26 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | sky.py: Update to use "write_fits_{image,healpix}" functions | Aaron LI | 2017-08-13 | 1 | -43/+19 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | sky.py: Add new properties to SkyBase | Aaron LI | 2017-08-13 | 1 | -1/+35 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils: Merge fits.py into io.py | Aaron LI | 2017-08-13 | 1 | -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 SkyBase | Aaron LI | 2017-08-13 | 1 | -6/+61 |
| | |||||
* | sky.py: Add basic SkyBase class as the base of SkyPatch and SkyHealpix | Aaron LI | 2017-08-13 | 1 | -0/+113 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | sky.py: Implement "random_points()" method | Aaron LI | 2017-07-19 | 1 | -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 LI | 2017-07-19 | 1 | -11/+22 |
| | | | | | | And some minor updates Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | sky.py: Default to assume a flat sky for patch | Aaron LI | 2017-07-19 | 1 | -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 resolution | Aaron LI | 2017-07-19 | 1 | -13/+14 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | sky.py: Write PIXELSIZE, RA0, and DEC0 to header for patch sky | Aaron LI | 2017-06-19 | 1 | -0/+3 |
| | |||||
* | sky.py: Fix mkdir when the directory name is empty | Aaron LI | 2017-06-12 | 1 | -2/+2 |
| | |||||
* | sky.py: Fix FITS header write | Aaron LI | 2017-05-27 | 1 | -4/+8 |
| | |||||
* | sky.py: Add "area()" method | Aaron LI | 2017-05-25 | 1 | -0/+21 |
| | | | | | | XXX/FIXME --------- Consider the spherical coordination and WCS sky projection!! | ||||
* | sky.py: Implement method "reproject_to()" | Aaron LI | 2017-05-22 | 1 | -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 check | Aaron LI | 2017-05-22 | 1 | -0/+56 |
| | | | | NOTE: only TAN sky projection supported. | ||||
* | sky.py: Flatten 2D image of sky patch to 1D for easier processing | Aaron LI | 2017-05-21 | 1 | -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 map | Aaron LI | 2017-05-21 | 1 | -0/+272 |