Example #1
0
                 backims="WFC3.IR.G141.sky.V1.0.fits",
                 norm=False,
                 mfwhm=3.0)

# print( "sky: ",fits.open("DATA/ib6o23rsq_flt.fits")[1].header["SKY_CPS"],"e/s")
# print( "sky: ",fits.open("DATA/ib6o23ruq_flt.fits")[1].header["SKY_CPS"],"e/s")
# print( "sky: ",fits.open("DATA/ib6o23ryq_flt.fits")[1].header["SKY_CPS"],"e/s")
# print( "sky: ",fits.open("DATA/ib6o23s0q_flt.fits")[1].header["SKY_CPS"],"e/s")

print("Running axecore...\n")
axetasks.axecore('aXe.lis',
                 "G141.F140W.V4.31.conf",
                 extrfwhm=4.,
                 drzfwhm=3.,
                 backfwhm=0.,
                 orient=False,
                 weights=True,
                 slitless_geom=False,
                 cont_model='fluxcube',
                 sampling='drizzle',
                 exclude=True)

print("Running drzprep....\n")
axetasks.drzprep(inlist="aXe.lis", configs="G141.F140W.V4.31.conf", back=False)

print("Running axecrr....\n")
axetasks.axecrr(inlist="aXe.lis",
                configs="G141.F140W.V4.31.conf",
                infwhm=4.0,
                outfwhm=3.0,
                back=False,
Example #2
0
#                  backfwhm=0.,
#                  orient=False,
#                  weights=True,
#                  slitless_geom=False,
#                  cont_model='gauss',
#                  sampling='drizzle',
#                  exclude=True)

print(f"starting axecore\n")
axetasks.axecore(
    'aXe.lis',
    "ACS.WFC.CHIP1.Cycle13.5.conf,ACS.WFC.CHIP2.Cycle13.5.conf",
    fconfterm=
    "ACS.WFC.CHIP1.msky.1.smooth.fits,ACS.WFC.CHIP2.msky.1.smooth.fits",
    extrfwhm=4.,
    drzfwhm=3.,
    backfwhm=0.,
    orient=False,
    weights=True,
    slitless_geom=False,
    cont_model='gauss',
    sampling='drizzle',
    exclude=True)

# opt_extr=False

# axetasks.drzprep(inlist = "aXe.lis",
#                  configs="ACS.WFC.CHIP1.Cycle13.5.conf,ACS.WFC.CHIP2.Cycle13.5.conf",
#                  back = False,
#                  opt_extr=opt_extr)

opt_extr = True