R/flux2mag.R

flux2mag = function( flux, zero_pt=21.10, ABwave) {

if(missing(ABwave) )
     return( -2.5*log10(flux) - zero_pt)
else 
     return(-2.5*log10(flux) - 5*log10(ABwave) - 2.406)
}

Try the astrolibR package in your browser

Any scripts or data that you put into this service are public.

astrolibR documentation built on May 2, 2019, 3:26 a.m.