rcosmo (version 1.1.2)

minDist2nside: minDist2nside

Description

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

Usage

minDist2nside(dist, factor = 3/4)

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.