@@ -291,8 +291,8 @@ pix2ringidx(nside, p) = pix2ringidx(promote(nside, p)...)
291
291
"""
292
292
z = pix2z(nside, p)
293
293
294
- Computes the cosine of the colatitude `z` for the given pixel `p`, where `nside` is the
295
- Nside resolution factor.
294
+ Computes the cosine of the colatitude ``z = \\ cos(θ)`` for the given pixel `p`, where
295
+ `nside` is the Nside resolution factor.
296
296
"""
297
297
function pix2z (nside:: I , p:: I ) where I<: Integer
298
298
checkhealpix (nside, p)
301
301
pix2z (nside, p) = pix2z (promote (nside, p)... )
302
302
303
303
"""
304
- (θ,ϕ) = unsafe_pix2z(nside, p)
304
+ z = unsafe_pix2z(nside, p)
305
305
306
306
Like [`pix2z`](@ref) but does not call [`checkhealpix`](@ref) to check `nside` and pixel
307
307
index validity.
@@ -345,13 +345,13 @@ end
345
345
"""
346
346
θ = pix2theta(nside, p)
347
347
348
- Computes the colatitude `θ ` for the given pixel `p`, where `nside` is the Nside resolution
348
+ Computes the colatitude ``θ` ` for the given pixel `p`, where `nside` is the Nside resolution
349
349
factor.
350
350
"""
351
351
pix2theta (nside, p) = acos (pix2z (promote (nside, p)... ))
352
352
353
353
"""
354
- (θ,ϕ) = unsafe_pix2theta(nside, p)
354
+ θ = unsafe_pix2theta(nside, p)
355
355
356
356
Like [`pix2theta`](@ref) but does not call [`checkhealpix`](@ref) to check `nside` and pixel
357
357
index validity.
@@ -361,7 +361,7 @@ unsafe_pix2theta(nside, p) = acos(unsafe_pix2z(promote(nside, p)...))
361
361
"""
362
362
ϕ = pix2phi(nside, p)
363
363
364
- Computes the azimuth `ϕ ` for the given pixel `p`, where `nside` is the Nside resolution
364
+ Computes the azimuth ``ϕ` ` for the given pixel `p`, where `nside` is the Nside resolution
365
365
factor.
366
366
"""
367
367
function pix2phi (nside:: I , p:: I ) where I<: Integer
371
371
pix2phi (nside, p) = pix2phi (promote (nside, p)... )
372
372
373
373
"""
374
- (θ,ϕ) = unsafe_pix2phi(nside, p)
374
+ ϕ = unsafe_pix2phi(nside, p)
375
375
376
376
Like [`pix2phi`](@ref) but does not call [`checkhealpix`](@ref) to check `nside` and pixel
377
377
index validity.
409
409
"""
410
410
(θ,ϕ) = pix2ang(nside, p)
411
411
412
- Computes the colatitude and azimuth pair `(θ,ϕ)` for the given pixel `p`, where
412
+ Computes the colatitude and azimuth pair `` (θ,ϕ)` ` for the given pixel `p`, where
413
413
`nside` is the Nside resolution factor.
414
414
"""
415
415
function pix2ang (nside:: I , p:: I ) where {I<: Integer }
433
433
"""
434
434
r = pix2vec(nside, p)
435
435
436
- Computes the unit vector `r ` pointing to the pixel center of the given pixel `p`, where
436
+ Computes the unit vector ``r` ` pointing to the pixel center of the given pixel `p`, where
437
437
`nside` is the Nside resolution factor.
438
438
"""
439
439
function pix2vec (nside:: I , p:: I ) where I<: Integer
443
443
pix2vec (nside, p) = pix2vec (promote (nside, p)... )
444
444
445
445
"""
446
- (θ,ϕ) = unsafe_pix2vec(nside, p)
446
+ r = unsafe_pix2vec(nside, p)
447
447
448
448
Like [`pix2vec`](@ref) but does not call [`checkhealpix`](@ref) to check `nside` and pixel
449
449
index validity.
465
465
p = ang2pix(nside, θ, ϕ)
466
466
467
467
Computes the HEALPix pixel index `p` which contains the point ``(θ,ϕ)`` given by the
468
- colatitude `θ` and azimuth `ϕ `, where `nside` is the Nside resolution factor.
468
+ colatitude ``θ`` and azimuth ``ϕ` `, where `nside` is the Nside resolution factor.
469
469
"""
470
470
function ang2pix (nside:: Integer , θ:: F , ϕ:: F ) where {F}
471
471
checkhealpix (nside)
@@ -479,7 +479,7 @@ ang2pix(nside::Integer, θ, ϕ) = ang2pix(nside, promote(θ, ϕ)...)
479
479
p = vec2pix(nside, r)
480
480
481
481
Computes the HEALPix pixel index `p` which contains the point at the end of the unit
482
- vector `r `, where `nside` is the Nside resolution factor.
482
+ vector ``r` `, where `nside` is the Nside resolution factor.
483
483
"""
484
484
function vec2pix (nside:: Integer , r)
485
485
checkhealpix (nside)
491
491
p = unsafe_ang2pix(nside, θ, ϕ)
492
492
493
493
Like [`ang2pix`](@ref) but neither calls [`checkhealpix`](@ref) to check the validity of
494
- `nside` nor checks the domain of the spherical coordinates `θ` and `ϕ `.
494
+ `nside` nor checks the domain of the spherical coordinates ``θ`` and ``ϕ` `.
495
495
"""
496
496
function unsafe_ang2pix (nside:: Integer , θ, ϕ)
497
497
z = cos (θ)
501
501
"""
502
502
p = unsafe_vec2pix(nside, r)
503
503
504
- Like [`vec2pix`](@ref) but does not check the validity of the `nside` or length of `r `.
504
+ Like [`vec2pix`](@ref) but does not check the validity of the `nside` or length of ``r` `.
505
505
"""
506
506
@propagate_inbounds function unsafe_vec2pix (nside:: Integer , r)
507
507
z = r[3 ]
513
513
"""
514
514
p = unsafe_zphi2pix(nside, z, ϕ)
515
515
516
- Like [`unsafe_ang2pix`](@ref) but uses the value ``z = \\ cos(θ)`` instead.
516
+ Like [`unsafe_ang2pix`](@ref) but takes the value ``z = \\ cos(θ)`` instead of the colatitude
517
+ ``θ``.
517
518
"""
518
519
function unsafe_zphi2pix (nside:: I , z:: F , ϕ:: F ) where {I<: Integer , F}
519
520
z′ = abs (z)
0 commit comments