| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Also fix a wrong notation in "random.py"
|
|
|
|
|
|
|
|
|
|
| |
To optimize "map_grid_to_healpix()" in `grid.py` which uses
"healpy.ang2pix()" using `numba.jit`, implement the latter's
functionality explicitly with `numba.jit` support.
The implementation simply mimic the corresponding functions
"ang2pix_ring_z_phi()" and "pix2ang_ring_z_phi()" in HEALPix's
"src/C/subs/chealpix.c". Thanks!
|
|
|
|
|
| |
Also place "_calc_hpx_row_idx()" before "_calc_hpx_indicies()", which is
required by `numba`.
|
|
|
|
|
|
|
|
| |
* healpix2hpx(), hpx2healpix(): Remove the "header" parameter, thus the
"data" parameter can only be either the filename or a HDU;
* healpix2hpx(): Remove the check on "ORDERING", since
"read_fits_healpix()" always return the HEALPix data in RING ordering;
* Small updates to the log messages and comments.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* utils/fits.py: hack the dtype to ignore the byteorder (FITS data use
big endianness, e.g., dtype(">f4"))
* utils/healpix.py: explicit convert the dtype and log the dtype
* bin/healpix2hpx, bin/hpx2healpix: remove the --float argument
* other minor fixes/updates
|
|
|
|
| |
Also remove a unused variable in "galactic/synchrotron.py"
|
| |
|
| |
|
|
|
|
| |
Also fix a bug about "append_comment".
|
| |
|
|
* healpix2hpx: reorganize HEALPix data in HPX projection
* hpx2healpix: recover the HEALPix data from HPX projection
Thanks: M. Calabretta: WCSLIB: HPXcvt
TODO: Add test codes
|