get.fwhm: Get PSF FWHM in pixels

View source: R/get.fwhm.R

get.fwhmR Documentation

Get PSF FWHM in pixels

Description

Returns the pixel Full Width Half Max of an input image matrix

Usage

get.fwhm(zdist)

Arguments

zdist

numeric (n,m) array; image for which FWHM is desired

Details

The function determines the full width at half max of the input image, by searching outwards from the image maxima.

Value

numeric; value of the FWHM in pixels

Author(s)

Angus H Wright ICRAR angus.wright@icrar.org

See Also

measure.fluxes, flux.measurements

Examples


#Load LAMBDAR
library(LAMBDAR)

  #Make Gaussian data: stdev 5 pix
  sd<-5
  x<-matrix(-10:10,21,21,byrow=TRUE)
  zdist<-matrix(exp(-1*(t(x)^2/(2*sd^2)+x^2/(2*sd^2))),21,21)
  print(paste(2*sqrt(2*log(2))*sd,"~",get.fwhm(zdist)))


AngusWright/LAMBDAR documentation built on May 12, 2022, 1:49 a.m.