minDist2nside: minDist2nside

Description Usage Arguments Details

View source: R/Conversion.R

Description

Get an nside such that all points belong to different pixels, when the minimum distance between the points is dist.

Usage

1

Arguments

dist

The minimum distance between any two points in a data.frame of points that lie on S^2

factor

Allows changing the shrinkage factor for the circlular pixels (radius = dist*factor).

Details

We treat pixels as circles. From the total surface area of a unit sphere and the radius of a circle with area 4*pi/(12*nside^2), we derive a sufficiently large nside to achieve the desired separation. We aim for (circular) pixels with (default) radius dist*3/4.


rcosmo documentation built on Dec. 11, 2021, 9:29 a.m.