Exemplo n.º 1
0
        /// <returns>P, index in all HEALPix grid</returns>
        public int NorthMean(HealCoor basin)
        {
            // last basin in north ring
            var northP            = basin.P - basin.PixelInRing;
            var pixelsInNorthRing = _healpixManager.PixelsCountInRing(basin.Ring - 1);
            var northPixelInRing  = basin.PixelInRing * pixelsInNorthRing /
                                    basin.PixelsCountInRing /* _healpixManager.PixelsCountInRing(basin.Ring) */;

            return(northP - pixelsInNorthRing + Math.Max(1, northPixelInRing));
        }
Exemplo n.º 2
0
 internal virtual void PreInit(HealpixManager man)
 {
     PixelsCountInRing = man.PixelsCountInRing(Ring);
     NorthCap          = man.Northcap(Ring);
 }