R/read.fitstab.R

read.fitstab = function(file, hdu=2, strip = c(" ","'"," "), maxlines = 50000){
    
    # read and return FITS table
    dat = read.fits(file, hdu=hdu, comments=FALSE, strip=strip, maxlines=maxlines)
    return(dat$dat[[1]]$table)
    
}
taranu/astro documentation built on May 23, 2019, 7:36 a.m.