Ejemplo n.º 1
0
def prfphot(quart, fluxes="100000.0,300000.0", focus='n', xtol=1e-7, ftol=1e-7,\
            plot='y', verbose='y', ranges="0,0", qualflags='y'):
                
    # Setup parameters for kepprfphot
    global params        
    infile     = os.path.expanduser('~/Dropbox/research/GJ1245ABC/data/pixdata/'+params[quart][0])
    outroot    = quart+'.prfphot'
    columns    = params[quart][1]
    rows       = params[quart][2]
    fluxes     = fluxes
    border     = 0
    background = 'no'
    focus      = focus
    prfdir     = '/astro/users/lurie/research/GJ1245/PRF/'
    ranges     = ranges
    xtol       = xtol
    ftol       = ftol
    qualflags  = qualflags
    plot       = plot
    verbose    = verbose
    logfile    = quart+'.prfphot.log'

    iraf.kepler()
    iraf.kepler.kepprfphot(infile=infile, outroot=outroot, columns=columns, rows=rows, \
                           fluxes=fluxes, border=border, background=background, focus=focus, \
                           prfdir=prfdir, ranges=ranges, xtol=xtol,ftol=ftol, qualflags=qualflags,\
                           plot=plot, verbose=verbose, logfile=logfile)
Ejemplo n.º 2
0
def  prf(quart, rownum=1, fluxes="100000.0,300000.0", background='no', focus='no', xtol=1e-7, ftol=1e-7,\
         imscale='linear',colmap='YlGnBu',plot='y', verbose='y', labcol='#000000', apercol='#000000',\
         nonameplot=False):

    # Setup parameters for kepprf
    global params
    infile     = os.path.expanduser('~/Dropbox/research/GJ1245ABC/data/pixdata/'+params[quart][0])
    if nonameplot:
        plotfile = 'psfmod.pdf'
    else:
        plotfile   = quart+'psfmod.pdf'
    rownum     = rownum
    columns    = params[quart][1]
    rows       = params[quart][2]
    fluxes     = fluxes
    border     = 0
    background = background
    focus      = focus
    prfdir     = '/astro/users/lurie/research/GJ1245/PRF/'
    xtol       = xtol
    ftol       = ftol
    imscale    = imscale
    colmap     = colmap
    plot       = plot
    verbose    = verbose
    logfile    ='kepprf.log'
    labcol     = labcol
    apercol    = apercol
    
    iraf.kepler()
    iraf.kepler.kepprf(infile=infile, plotfile=plotfile, rownum=rownum, columns=columns, rows=rows, \
                       fluxes=fluxes, border=border, background=background, focus=focus, prfdir=prfdir, \
                       xtol=xtol, ftol=ftol, imscale=imscale, cmap=colmap, plot=plot, verbose=verbose, logfile=logfile\
                       ,labcol=labcol, apercol=apercol)