mapUtils Namespace Reference

Module to perform operations on maps, such as add noise to pixels, convolve with kernels etc. More...


Classes

struct  convolutionKernel

Functions

subroutine kernelAlloc (ck)
subroutine kernelFree (ck)
subroutine gaussianKernel (gaussK, sigmaFWHM, pixscalX, pixscalY)
subroutine topHatKernel (topHatK, radius, pixscalX, pixscalY)
subroutine convolveMap (ck, rMap)
subroutine mapFilterGaussian (rMap, sigmaFWHM)
subroutine mapFilterTophat (rMap, radius)
subroutine mapFilterDiscDifference (rMap, radius)
 Generate M_R - M_3R where M_X represnts map smoothed with Tophat of radius X.
subroutine beamConvolveAndAddNoise (rMap, beamFWHM, noisePerBeam)
subroutine AddNoise (rMap, noisePerPixel)
subroutine createRandomMask (rMap, Nholes, beamFWHM, rMask, threshold)
subroutine trimMapEdges (map, trimX, trimY, trimmedMap)
 Trims out the edges of a map given number of pixels in x and y direction.


Detailed Description

Module to perform operations on maps, such as add noise to pixels, convolve with kernels etc.

Author:
Sudeep Das and Amir Hajian, Princeton University
Version:
Time-stamp: <2009-06-20 21:53:53 sudeep>

Function Documentation

subroutine mapUtils::AddNoise ( type(FFTRMap)  rMap,
real(dp)  noisePerPixel 
)

Parameters:
rMap  Just adds white noise to the map
noisePerPixel  Noise in each map pixel

subroutine mapUtils::beamConvolveAndAddNoise ( type(FFTRMap)  rMap,
real(dp)  beamFWHM,
real(dp)  noisePerBeam 
)

Parameters:
beamFWHM  Gaussian beam to convolve with (in degrees)
noisePerBeam  Noise in each sky pixel defined as beamFWHM^2 (in appropriate units)

subroutine mapUtils::convolveMap ( type(convolutionKernel)  ck,
type(FFTRMap)  rMap 
)

subroutine mapUtils::createRandomMask ( type(FFTRMap)  rMap,
integer(i4b)  Nholes,
real(dp)  beamFWHM,
type(FFTRMap)  rMask,
real(dp),optional  threshold 
)

Parameters:
Nholes  Number of holes to be poked
beamFWHM  FWHM of the experimental beam
rMask  Mask to be allocated and returned
threshold  A number to control the size of the holes

subroutine mapUtils::gaussianKernel ( type(convolutionKernel)  gaussK,
real(dp)  sigmaFWHM,
real(dp)  pixscalX,
real(dp)  pixscalY 
)

Parameters:
sigmaFWHM  Beam FWHM in radians
pixscalY  Pixel scales in radians

subroutine mapUtils::kernelAlloc ( type(convolutionKernel)  ck  ) 

subroutine mapUtils::kernelFree ( type(convolutionKernel)  ck  ) 

subroutine mapUtils::mapFilterDiscDifference ( type(FFTRMap)  rMap,
real(dp)  radius 
)

Generate M_R - M_3R where M_X represnts map smoothed with Tophat of radius X.

Parameters:
radius  radius in degrees

subroutine mapUtils::mapFilterGaussian ( type(FFTRMap)  rMap,
real(dp)  sigmaFWHM 
)

Parameters:
sigmaFWHM  FWHM in degrees

subroutine mapUtils::mapFilterTophat ( type(FFTRMap)  rMap,
real(dp)  radius 
)

Parameters:
radius  radius in degrees

subroutine mapUtils::topHatKernel ( type(convolutionKernel)  topHatK,
real(dp)  radius,
real(dp)  pixscalX,
real(dp)  pixscalY 
)

Parameters:
radius  radius in radians
pixscalY  Pixel scales in radians

subroutine mapUtils::trimMapEdges ( type(FFTRMap)  map,
integer(i4b)  trimX,
integer(i4b)  trimY,
type(FFTRMap)  trimmedMap 
)

Trims out the edges of a map given number of pixels in x and y direction.


Generated on Tue Jun 1 15:37:52 2010 for TaperMaster by  doxygen 1.5.4