Tutorial - Astrofili Mestre

Transcript

Tutorial - Astrofili Mestre
INSERIRE
fotometria seqplot
scelta e identificazione comparison stars
Il primo passo da eseguire per rendere agevole la manipolazione dei le AAVSO,
consiste nel cambiare il loro nome mettendo in evidenza i due dati di maggiore
interesse per noi, vale a dire il filtro con il quale e stata eseguita l'immagine e
la data.
Ad esmpio, volendo cambiare i nomi dei files contenuti nella cartella
KW97_44-35, dopo esserci posizionati nella cartella stessa, lanciamo in IRAF il
seguente comando :
hselect *.fts $I,FILTER,DATE-OBS >imlist
A questo punto, nel file imlist, abbiamo affiancati i vecchi nomi, il filtro e
la data. Per separare i vari campi e creare i files con i nomi vecchi e nuovi
entriamo in Scilab...file..esegui...e lanciamo il file
crea_nuovi_nomi.sce
Prima però editiamo il programma crea_nuovi_nomi.sce e cambiamo la
directory in
cartella="/iraf/iraf/local/Dropbox/VAriiableSTarsObservers/RiduzioniAAVSO/
kw97_43_45/";
con l'attuale cartella di lavoro.
Torniamo adesso in IRAF e lanciamo il comando :
epar imrename
come oldnames inseriamo @oldnames e come newnames inseriamo @newnames;
dopo avere dato il comando :go , otterremo i files con il nuovo nome.
PACKAGE = imutil
TASK = imrename
oldnames=
newnames=
(verbose=
(mode =
@oldnames images to be renamed
@newnames new image names
no) report each rename operation
ql)
Puo succedere che venga evidenziato l'avviso che alcuni files non possono essere
rinominati. Da controlli fatti è risultato che si tratta di doppioni che possono essere
tranquillamente eliminati.
Avendo ora a disposizione le immagini con i nuovi nomi possiamo ad esempio
ispezionare la prima immagine eseguita nel filtro B e confrontarla con una immagine analoga ottenibile con Aladin .
Nel primo caso bastera entrare in IRAF e dare il comando:
display B2010-09-27T05_24_49.fts
Il risultato sara una immagine di questo tipo:
Per ottenere l' immagine da Aladin , sara sufficiente digitare i seguenti comandi:.sce.sce.sce.sce.sce.sce.sce
File ... Load astronomical image ... Aladin image server .
Come si vede, l' immagine ottenuta da Aladin , ha un orientamento diverso.
Ora dobbiamo cambiare l'orientamento delle nostre immagini; l'operazione che farò sarà diversa a
seconda del valore della keyword PIERSIDE presente nell'header delle immagini.
Faccio 2 liste di immagini a seconda che nell'header PIERSIDE sia EAST o WEST.
ecl> hselect *.fts $I "PIERSIDE == 'EAST' " >east
ecl> hselect *.fts $I "PIERSIDE == 'WEST' " >west
Faccio il display di una immagine della lista east...è capovolta nord-sud rispetto all'immagine
Aladin mentre una qualsiasi immagine della lista west è rovesciata est-ovest
Allora:
creo le cartelle EAST WEST
!mkdir EAST
!mkdir WEST
poi copio le immagini della lista east in EAST e quelle della lista west in WEST
imcopy @east EAST
imcopy @west WEST
ora mi porto nella cartella EAST
cd EAST
e do il comando
imcopy *.fts[*,-*] *.fts
torno su di un livello
cd ..
e poi entro nella cartella WEST
cd WEST
e do il comando
imcopy *.fts[-*,*] *.fts
Ora copio tutto il contenuto delle cartelle EAST e WEST nella cartella superiore.
Confermo e sostituisco tutto.
Volendo ispezionare rapidamente tutte le immagini per controllare se il nuovo orientamento è
corretto, bastera dare il comando
!ds9 -scale mode zscale *.fts &
poi in ds9 dare ...frame...single...blink..
e vedere se le immagini sono state raddrizzate.
installare scilab
NB: nel dare i comandi IRAF è più comodo copiarli dal tutorial e modificarli
nella finestra IRAF-linea di comando prima di dare enter
evidenzieremo quei valori che bisogna dare ad IRAF di volta in volta e che
dipendono dall'immagine che si sta riducendo in quel momento
.
apro IRAF
creo cartella di lavoro (es 2010_11_5 NB:conviene questo formato, cioè
anno_mese_giorno così UNIX ordina le cartelle automaticamente ) e 4
sottocartelle B V R I..
ecl> cd /iraf/iraf/local/CCD/KOHOUTEK/AAVSO/kw97_42_41/
ecl> mkdir 2010_11_5
ecl> cd 2010_11_5
ecl> mkdir B V R I
(eventualmente dare !mkdir...IRAF non riconosce tutti i comandi UNIX per cui
a volte bisogna dare !comando )
torno su di un livello...
ecl> cd ..
elenco i files relativi alla notte in esame..
ecl> ls A*2010-11-05*
1236 AI_2010-11-05T02:51:36.fts 1236 AV_2010-11-05T02:47:28.fts
1236 AR_2010-11-05T02:50:01.fts
li copio nella sottocartella
2010_11_5
ecl> mv ./A*2010-11-05* ./2010_11_5
mi riporto in ./2010_11_5
cd ./2010_11_5
copio le immagini nelle sottocartelle e le rinomino
Bea Vale Rita Isa (tutte .fits)
ecl> cp AB* ./B/Bea.fits
ecl> cp AV* ./V/Vale.fits
ecl> cp AR* ./R/Rita.fits
ecl> cp AI* ./I/Isa.fits
mi porto nella directory dove lavorerò (es B)
ecl> cd B
in IRAF entro nel task daophot
ecl> noao
artdata. digiphot. nobsolete. onedspec.
astcat.
focas.
nproto.
rv.
astrometry. imred.
observatory surfphot.
astutil. mtlocal. obsutil. twodspec.
noao> dig dao
apphot. daophot. photcal. ptools.
digiphot> dao
daophot> ls
totale 1236
1236 Bea.fits
faccio il display dell'immagine da ridurre
daophot> display Bea
frame to be written into (1:16) (2): 1
z1=56.24191 z2=152.8515
analizzo l'immagine
daophot> imstatistics Bea
#
IMAGE
NPIX
MEAN STDDEV
MIN
Bea 311454 29.66 148.1 -76.01 17101.
MAX
ci sono pixel negativi...meglio toglierli
digiphot> imreplace Bea 0 upper=0.0
nuova statistica
daophot> imstatistics Bea
#
IMAGE
NPIX
MEAN STDDEV
MIN
Bea 311454 29.66 148.1
0. 17101
MAX
uso imexamine per trovare la FWHM delle stelle (r) e per misurare il fondo del
cielo (m)
epar imexamine
IRAF
Image Reduction and Analysis Facility
PACKAGE = tv
TASK = imexamine
input =
(output =
(ncoutpu=
(nloutpu=
frame =
image =
Bea images to be examined
) output root image name
101) Number of columns in image output
101) Number of lines in image output
2 display frame
image name
(logfile=
fw) logfile
(keeplog=
yes) log output results
(defkey =
a) default key for cursor list input
(autored=
yes) automatically redraw graph
(allfram=
yes) use all frames for displaying new images
(nframes=
0) number of display frames (0 to autosense)
(ncstat =
10) number of columns for statistics
(nlstat =
10) number of lines for statistics
(graphcu=
) graphics cursor input
(imagecu=
) image display cursor input
(wcs =
logical) Coordinate system
(xformat=
) X axis coordinate format
(yformat=
) Y axis coordinate format
(graphic=
stdgraph) graphics device
(display= display(image='$1',frame=$2)) display command template
(use_dis=
yes) enable direct display interaction
(mode =
ql)
escon con :go
misuro la FWHM di una decina di stelle relativamente isolate..mi posiziono
sulla stella ...tasto r....esco con q (sul ds9)
di nuovo
epar imexamine
IRAF
Image Reduction and Analysis Facility
PACKAGE = tv
TASK = imexamine
input =
(output =
(ncoutpu=
(nloutpu=
frame =
image =
(logfile=
Bea images to be examined
) output root image name
101) Number of columns in image output
101) Number of lines in image output
1 display frame
image name
sky) logfile
(keeplog=
yes) log output results
(defkey =
a) default key for cursor list input
(autored=
yes) automatically redraw graph
(allfram=
yes) use all frames for displaying new images
(nframes=
0) number of display frames (0 to autosense)
(ncstat =
10) number of columns for statistics
(nlstat =
10) number of lines for statistics
(graphcu=
) graphics cursor input
(imagecu=
) image display cursor input
(wcs =
logical) Coordinate system
(xformat=
) X axis coordinate format
(yformat=
) Y axis coordinate format
(graphic=
stdgraph) graphics device
(display= display(image='$1',frame=$2)) display command template
(use_dis=
yes) enable direct display interaction
(mode =
ql)
misuro il fondo cielo di una decina di aree relativamente sgombre da stelle ..mi
posiziono sull'area ...tasto m....esco con q (sul ds9)
copio il file sky_fw.sce (l'ultima release) nella directory dove sto lavorando
lo edito e cambio la directory di lavoro
cartella="/iraf/iraf/local/CCD/KOHOUTEK/AAVSO/kw97_42_41/2010_11_5/
B/";
apro scilab...
file...esegui.... scegli la directory di lavoro.....
scegli il file: sky_fw.sce
crea il file: SKY_FW_statistics
dentro ci sono i dati da dare a datapars, daopars etc etc....
ex:
# [1] Rita - KW97_42_41
Dati relativi a SKY
Mean = 94.353
Std = 7.955
Mean - 3 * Std = MIN = 70
Dati relativi a FW
FWHM = 2.5966667
Std = 0.0776132
annulus e dannulus
4 * FWHM = 10.386667
psfrad = 4 * FWHM +1 = 11.386667
psfrad - 1 FWHM = 8.79
SE CI FOSSERO STELLE SATURE FARE.....
uso imhistogram per trovare il MAX da dare in datapars
IRAF
Image Reduction and Analysis Facility
PACKAGE = imutil
TASK = imhistogram
image =
(z1 =
(z2 =
(binwidt=
(nbins =
(autosca=
(top_clo=
(hist_ty=
(listout=
(plot_ty=
(logy =
(device =
(mode =
Bea Image name
INDEF) Minimum histogram intensity
INDEF) Maximum histogram intensity
INDEF) Resolution of histogram in intensity units
512) Number of bins in histogram
yes) Adjust nbins and z2 for integer data?
no) Include z2 in the top bin?
normal) Type of histogram
yes) List instead of plot histogram?
line) Type of vectors to plot
yes) Log scale y-axis?
stdgraph) output graphics device
ql)
esco con :q
creo file con lista valori dei pixels...guardo il max significativo
digiphot> imhistogram Bea >listpixels
posso decidere, dopo aver visto quanti pixels hano valori superiori a tot..che il
MAX sarà (ad esempio) 30000...
ALTRIMENTI SALTARE QUI...(lascio datamax INDEF)
inserisco dati in datapars (altre voci sono relative al telescopio W28
dell'AAVSO)
daophot> epar datapars
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = datapars
(scale =
(fwhmpsf=
(emissio=
(sigma =
(datamin=
(datamax=
(noise =
(ccdread=
(gain =
(readnoi=
(epadu =
(exposur=
(airmass=
(filter =
(obstime=
(itime =
(xairmas=
(ifilter=
(otime =
(mode =
1.) Image scale in units per pixel
3.29) FWHM of the PSF in scale units
yes) Features are positive ?
4.) Standard deviation of background in counts
6.) Minimum good data value
INDEF) Maximum good data value
poisson) Noise model
) CCD readout noise image header keyword
EGAIN) CCD gain image header keyword
15.) CCD readout noise in electrons
INDEF) Gain in electrons per count
EXPOSURE) Exposure time image header keyword
AIRMASS) Airmass image header keyword
FILTER) Filter image header keyword
DATE-OBS) Time of observation image header keyword
INDEF) Exposure time
INDEF) Airmass
INDEF) Filter
INDEF) Time of observation
ql)
esco con :q
uso daofind per trovare le stelle
daophot> epar daofind
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = daofind
image =
output =
(starmap=
(skymap =
(datapar=
(findpar=
(boundar=
(constan=
(interac=
(icomman=
(gcomman=
(wcsout =
(cache =
(verify =
(update =
(verbose=
(graphic=
(display=
(mode =
esco con :go
Bea Input image(s)
default Output coordinate file(s) (default: image.coo.?)
) Output density enhancement image(s)
) Output sky image(s)
) Data dependent parameters
) Object detection parameters
nearest) Boundary extension (constant|nearest|reflect|wrap)
0.) Constant for boundary extension
no) Interactive mode ?
) Image cursor: [x y wcs] key [cmd]
) Graphics cursor: [x y wcs] key [cmd]
)_.wcsout) The output coordinate system (logical,tv,physical)
)_.cache) Cache the image pixels ?
no) Verify critical daofind parameters ?
)_.update) Update critical daofind parameters ?
yes) Print daofind messages ?
)_.graphics) Graphics device
)_.display) Display device
ql)
...crea file Bea.coo.1 coordinate delle stelle trovate
controllo se daofind ha fatto buon lavoro
daophot> epar tvmark
IRAF
Image Reduction and Analysis Facility
PACKAGE = tv
TASK = tvmark
frame =
coords =
(logfile=
(autolog=
(outimag=
(deletio=
(command=
(mark =
(radii =
(lengths=
rectangles
(font =
(color =
(label =
(number =
(nxoffse=
(nyoffse=
(pointsi=
(txsize =
(toleran=
(interac=
(mode =
1 Default frame number for display
Bea.coo.1 Input coordinate list
default) Output log file
no) Automatically log each marking command
) Output snapped image
) Output coordinate deletions list
) Image cursor: [x y wcs] key [cmd]
point) The mark type
0) Radii in image pixels of concentric circles
0) Lengths and width in image pixels of concentric
raster) Default font
204) Gray level of marks to be drawn
no) Label the marked coordinates
no) Number the marked coordinates
0) X offset in display pixels of number
0) Y offset in display pixels of number
2) Size of mark type point in display pixels
2) Size of text and numbers in font units
1.5) Tolerance for deleting coordinates in image pixels
no) Mode of use
ql)
esco con :go
vedo se puntini rossi* coincidono effettivamente con stelle
*se servissero altri colori …...
202 = black
203 = white
204 = red
205 = green
206 = blue
207 = yellow
208 = cyan
209 = magenta
210 = coral
211 = maroon
212 = orange
213 = khaki
214 = orchid
215 = turquoise
216 = violet
217 = wheat
posso anche cambiare pointsize a valori + alti..
se è ok passo a fare la fotometria con phot
NB: all'interno di phot ci sono dei task interni da editare
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = phot
image =
coords =
output =
skyfile =
(plotfil=
(datapar=
(centerp=
(fitskyp=
(photpar=
(interac=
Bea Input image(s)
default Input coordinate list(s) (default: image.coo.?)
default Output photometry file(s) (default: image.mag.?)
Input sky value file(s)
) Output plot metacode file
) Data dependent parameters
) Centering parameters
) Sky fitting parameters
) Photometry parameters
no) Interactive mode ?
(radplot=
no) Plot the radial profiles?
(icomman=
) Image cursor: [x y wcs] key [cmd]
(gcomman=
) Graphics cursor: [x y wcs] key [cmd]
(wcsin =
)_.wcsin) The input coordinate system
(logical,tv,physical,world)
(wcsout =
)_.wcsout) The output coordinate system (logical,tv,physical)
(cache =
)_.cache) Cache the input image pixels in memory ?
(verify =
)_.verify) Verify critical phot parameters ?
(update =
)_.update) Update critical phot parameters ?
(verbose=
)_.verbose) Print phot messages ?
(graphic=
)_.graphics) Graphics device
(display=
)_.display) Display device
(mode =
ql)
posizionarsi su fitskyp... dare :e
....apre fistkypars
annulus e dannulus devono essere pari a 4*FWHM
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = fitskypars
(salgori=
(annulus=
(dannulu=
(skyvalu=
(smaxite=
(sloclip=
(shiclip=
(snrejec=
(sloreje=
(shireje=
(khist =
(binsize=
(smooth =
(rgrow =
(mksky =
mode) Sky fitting algorithm
13.18) Inner radius of sky annulus in scale units
13.18) Width of sky annulus in scale units
0.) User sky value
10) Maximum number of sky fitting iterations
0.) Lower clipping factor in percent
0.) Upper clipping factor in percent
50) Maximum number of sky fitting rejection iterations
3.) Lower K-sigma rejection limit in sky sigma
3.) Upper K-sigma rejection limit in sky sigma
3.) Half width of histogram in sky sigma
0.1) Binsize of histogram in sky sigma
no) Boxcar smooth the histogram
0.) Region growing radius in scale units
no) Mark sky annuli on the display
(mode =
esco con :q
ql)
...torno a phot
posizionarsi su photpar dare :e
....apre photpars
aperture = 1 FWHM
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = photpars
(weighti=
(apertur=
(zmag =
(mkapert=
(mode =
esco con :q
constant) Photometric weighting scheme
3.29) List of aperture radii in scale units
25.) Zero point of magnitude scale
no) Draw apertures on the display
ql)
...torno a phot
esco con :go
(se fosse il caso ... dare invio ad ogni domanda)
...crea file Bea.mag.1 magnitudini strumentali (con aperture=1 FWHM) delle
stelle trovate
controllo che non ci siano molte stelle di cui phot non è riuscito a calcolare la
magnitudine
prima però rifaccio il display dell'immagine da ridurre
daophot> display Bea
pdump Bea.mag.1 xcenter,ycenter "mag == INDEF" | tvmark 1 STDIN
se vedo pochi isolati puntini non coincidenti per lo più con stelle vuol dire che è
OK
ora faccio la psf
daophot> epar psf
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = psf
image =
Bea Input image(s) for which to build PSF
photfile=
default Input photometry file(s) (default: image.mag.?)
pstfile =
Input psf star list(s) (default: image.pst.?)
psfimage=
default Output PSF image(s) (default: image.psf.?)
opstfile=
default Output PSF star list(s) (default:image.pst.?)
groupfil=
default Output PSF star group file(s) (default: image.psg.?)
(plotfil=
) Output plot metacode file
(datapar=
) Data dependent parameters
(daopars=
) Psf fitting parameters
(matchby=
yes) Match psf star list to photometry file(s) by id number
?
(interac=
yes) Compute the psf interactively ?
(mkstars=
yes) Mark deleted and accepted psf stars ?
(showplo=
yes) Show plots of PSF stars ?
(plottyp=
mesh) Default plot type (mesh|contour|radial)
(icomman=
) Image cursor: [x y wcs] key [cmd]
(gcomman=
) Graphics cursor: [x y wcs] key [cmd]
(wcsin =
)_.wcsin) The input coordinate system
(logical,tv,physical,world)
(wcsout =
)_.wcsout) The output coordinate system (logical,tv,physical)
(cache =
)_.cache) Cache the input image pixels in memory ?
(verify =
yes) Verify critical psf parameters ?
(update =
)_.update) Update critical psf parameters ?
(verbose=
(graphic=
(display=
(mode =
)_.verbose) Print psf messages ?
stdgraph) Graphics device
stdimage) Display device
ql)
posizionarsi su daopars dare :e
....apre daopars
psfrad deve essere 4*FWHM +1
fitrad deve essere 1 FWHM
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = daopars
(functio=
(varorde=
(nclean =
(saturat=
computation ?
(matchra=
(psfrad =
(fitrad =
(recente=
(fitsky =
(groupsk=
(sannulu=
(wsannul=
(flaterr=
(proferr=
(maxiter=
(clipexp=
(clipran=
(mergera=
gauss) Form of analytic component of psf model
0) Order of empirical component of psf model
0) Number of cleaning iterations for computing psf model
no) Use wings of saturated stars in psf model
3.) Object matching radius in scale units
14.18) Radius of psf model in scale units
3.29) Fitting radius in scale units
yes) Recenter stars during fit ?
no) Recompute group sky value during fit ?
yes) Use group rather than individual sky values ?
0.) Inner radius of sky fitting annulus in scale units
11.) Width of sky fitting annulus in scale units
0.75) Flat field error in percent
5.) Profile error in percent
50) Maximum number of fitting iterations
6) Bad data clipping exponent
2.5) Bad data clipping range in sigma
INDEF) Critical object merging radius in scale units
(critsnr=
(maxnsta=
(maxgrou=
(mode =
esco con :q
1.) Critical S/N ratio for group membership
10000) Maximum number of stars to fit
60) Maximum number of stars to fit per group
ql)
...torno a psf
esco con :go
dare invio ad ogni domanda...poi scegliere stelle per la psf
posizionarsi sulle stelle...
a per accettare
d per togliere stelle dalla lista
l per mostrare la lista
sciegliere 6-10 stelle...poi uscire con w....e poi q
Current PSF star list
Star: 920 X: 289.10 Y: 289.50 Mag: 18.08 Sky:
Star: 756 X: 558.07 Y: 241.55 Mag: 21.21 Sky:
Star: 797 X: 635.35 Y: 252.80 Mag: 19.21 Sky:
Star: 634 X: 386.18 Y: 208.87 Mag: 21.33 Sky:
Star: 384 X: 232.53 Y: 130.85 Mag: 20.90 Sky:
Star: 1273 X: 181.98 Y: 394.89 Mag: 20.13 Sky:
Star: 875 X: 64.72 Y: 277.22 Mag: 19.34 Sky:
Star: 247 X: 179.66 Y: 90.45 Mag: 18.07 Sky:
Fitting function gauss
81.8
78.0
79.1
78.0
79.2
80.3
81.2
81.4
norm scatter: 0.02750114
Analytic PSF fit
Function: gauss X: 362.5 Y: 229.5 Height: 17061.52 Psfmag: 18.076
Par1: 1.283111 Par2: 1.143703
Computed 1 lookup table(s)
Writing PSF image Bea.psf.1.fits
Writing output PSF star list Bea.pst.1
Writing output PSF star group file Bea.psg.1
crea file .pst (stelle usate per la psf) e .psg(sono le stelle psf + i loro vicini)
daophot> ls
totale 1608
56 Bea.coo.1 32 Bea.psf.1.fits 4 fw
4 sky.gnumeric
1236 Bea.fits
4 Bea.psg.1
4 fw.gnumeric
260 Bea.mag.1 4 Bea.pst.1
4 sky
guardo la psf
epar seepsf
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = seepsf
psfimage=
image =
(dimensi=
(xpsf =
(ypsf =
(magnitu=
(mode =
Bea.psf.1 PSF image name
psf Output image name
INDEF) Dimension of the output PSF image
INDEF) X distance from the PSF star
INDEF) Y distance from the PSF star
INDEF) Magnitude of the PSF star
ql)
crea file psf.fits
daophot> display psf
frame to be written into (1:16) (1): 1
VOLENDO SI PUO' MISURARE LA FWHM E ALTRI PARAMETRI
DELLA psf:
epar imexamine
IRAF
Image Reduction and Analysis Facility
PACKAGE = tv
TASK = imexamine
input =
psf images to be examined
(output =
) output root image name
(ncoutpu=
101) Number of columns in image output
(nloutpu=
101) Number of lines in image output
frame =
1 display frame
image =
d image name
(logfile=
psf) logfile
(keeplog=
yes) log output results
(defkey =
a) default key for cursor list input
(autored=
yes) automatically redraw graph
(allfram=
yes) use all frames for displaying new images
(nframes=
0) number of display frames (0 to autosense)
(ncstat =
10) number of columns for statistics
(nlstat =
10) number of lines for statistics
(graphcu=
) graphics cursor input
(imagecu=
) image display cursor input
(wcs =
logical) Coordinate system
(xformat=
) X axis coordinate format
(yformat=
) Y axis coordinate format
(graphic=
stdgraph) graphics device
(display= display(image='$1',frame=$2)) display command template
(use_dis=
yes) enable direct display interaction
(mode =
ql)
mi posiziono sulla psf...r... vedo profilo radiale...s..vedo plot 3D in prospettiva
i dati sono nel file di testo psf.......
fitto la psf alle stelle usate ...
daophot> epar nstar
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = nstar
image =
Bea Image corresponding to photometry
groupfil=
Bea.psg.1 Input group file (image.grp.?)
psfimage=
default PSF image (default: image.psf.?)
nstarfil=
default Output photometry file (default: image.nst.?)
rejfile =
default Output rejections file (default: image.nrj.?)
(datapar=
) Data parameters
(daopars=
) Psf fitting parameters
(wcsin =
)_.wcsin) The input coordinate system
(logical,tv,physical,world
(wcsout =
)_.wcsout) The output coordinate system (logical,tv,physical)
(wcspsf =
)_.wcspsf) The psf coordinate system (logical,tv,physical)
(cache =
)_.cache) Cache the input image pixels in memory ?
(verify =
no) Verify critical nstar parameters?
(update =
)_.update) Update critical nstar parameters?
(verbose=
no) Print nstar messages?
(mode =
ql)
edito daopars (:e)....riduco psfrad di una FWHM...
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = daopars
(functio=
(varorde=
gauss) Form of analytic component of psf model
0) Order of empirical component of psf model
(nclean =
(saturat=
computation ?
(matchra=
(psfrad =
(fitrad =
(recente=
(fitsky =
(groupsk=
(sannulu=
(wsannul=
(flaterr=
(proferr=
(maxiter=
(clipexp=
(clipran=
(mergera=
(critsnr=
(maxnsta=
(maxgrou=
(mode =
0) Number of cleaning iterations for computing psf model
no) Use wings of saturated stars in psf model
3.) Object matching radius in scale units
10.89) Radius of psf model in scale units
3.29) Fitting radius in scale units
yes) Recenter stars during fit ?
no) Recompute group sky value during fit ?
yes) Use group rather than individual sky values ?
0.) Inner radius of sky fitting annulus in scale units
11.) Width of sky fitting annulus in scale units
0.75) Flat field error in percent
5.) Profile error in percent
50) Maximum number of fitting iterations
6) Bad data clipping exponent
2.5) Bad data clipping range in sigma
INDEF) Critical object merging radius in scale units
1.) Critical S/N ratio for group membership
10000) Maximum number of stars to fit
60) Maximum number of stars to fit per group
ql)
esco con :q...torno a nstar...esco con :go...
crea files .nrj (stelle rigettate..può essere vuoto) e .nst (file con le stelle usate
nel fitting)
guardo ora se, sottraendo tali "modelli" di stelle dalle stelle vere, la sottrazione
è + o - ok...
daophot> epar substar
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = substar
image =
photfile=
Bea Image corresponding to photometry file
default Input photometry file (default: image.nst.?)
exfile =
Input exclude file (default: image.pst.?)
psfimage=
default PSF image (default: image.psf.?)
subimage=
default Subtracted image (default: image.sub.?)
(datapar=
) Data dependent parameters
(daopars=
) Psf fitting parameters
(wcsin =
)_.wcsin) The input coordinate system
(logical,tv,physical,world
(wcsout =
)_.wcsout) The output coordinate system (logical,tv,physical)
(wcspsf =
)_.wcspsf) The psf coordinate system (logical,tv,physical)
(cache =
)_.cache) Cache the image pixels ?
(verify =
no) Verify critical substar parameters?
(update =
)_.update) Update critical substar parameters?
(verbose=
no) Print substar messages?
(mode =
ql)
esco con :go
l'immagine *.sub.1.fits è ottenuta sottraendo dalla immagine originale le stelle
scelte per la psf e le loro vicine.
Chiudo il ds9 per avere solo le immagini che mi servono..lo faccio ripartire
con..
daophot> !ds9 & (oppure il path completo,,, !/iraf/iraf/local/ds9 & )
faccio poi blink tra originale e sub...
daophot> display Bea
frame to be written into (1:16) (2): 1
z1=56.24191 z2=152.8515
daophot> display Bea.sub.1.fits
frame to be written into (1:16) (1): 2
z1=56.24191 z2=151.6342
adesso blink in ds9....
se ci fossero dei residui da eliminare si potrebbe usare imedit...poi b sulla zona
da correggere...e salvare
uso ancora substar per creare immagine con solo i "vicini" delle stelle psf
sottratti...
daophot> epar substar
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = substar
image =
Bea Image corresponding to photometry file
photfile=
default Input photometry file (default: image.nst.?)
exfile =
default Input exclude file (default: image.pst.?)
psfimage=
default PSF image (default: image.psf.?)
subimage=
default Subtracted image (default: image.sub.?)
(datapar=
) Data dependent parameters
(daopars=
) Psf fitting parameters
(wcsin =
)_.wcsin) The input coordinate system
(logical,tv,physical,world
(wcsout =
)_.wcsout) The output coordinate system (logical,tv,physical)
(wcspsf =
)_.wcspsf) The psf coordinate system (logical,tv,physical)
(cache =
)_.cache) Cache the image pixels ?
(verify =
no) Verify critical substar parameters?
(update =
)_.update) Update critical substar parameters?
(verbose=
no) Print substar messages?
(mode =
ql)
ora abbiamo 2 sub... La nuova sub è l'immagine originale meno i vicini delle
stelle psf
daophot> ls *sub*
Bea.sub.1.fits......ORIGINALE-STELLE PSF-VICINI STELLE PSF
Bea.sub.2.fits........ORIGINALE-VICINI STELLE PSF
voglio vedere immagine originale e ORIGINALE-VICINI STELLE PSF in
blink...
prima...
daophot> display Bea
frame to be written into (1:16) (2): 1
z1=28.95119 z2=101.8466
daophot> display Bea.sub.2.fits
frame to be written into (1:16) (1): 2
z1=28.95119 z2=101.3596
epar tvmark
IRAF
Image Reduction and Analysis Facility
PACKAGE = tv
TASK = tvmark
frame =
coords =
(logfile=
(autolog=
(outimag=
(deletio=
(command=
(mark =
(radii =
(lengths=
rectangles
(font =
(color =
(label =
(number =
(nxoffse=
(nyoffse=
(pointsi=
(txsize =
(toleran=
1 Default frame number for display
STDIN Input coordinate list
default) Output log file
no) Automatically log each marking command
) Output snapped image
) Output coordinate deletions list
) Image cursor: [x y wcs] key [cmd]
cross) The mark type
0) Radii in image pixels of concentric circles
0) Lengths and width in image pixels of concentric
raster) Default font
204) Gray level of marks to be drawn
no) Label the marked coordinates
no) Number the marked coordinates
0) X offset in display pixels of number
0) Y offset in display pixels of number
2) Size of mark type point in display pixels
2) Size of text and numbers in font units
1.5) Tolerance for deleting coordinates in image pixels
(interac=
(mode =
no) Mode of use
ql)
esco con :q
daophot> pdump Bea.pst.1 xcenter,ycenter yes | tvmark 1 STDIN
blink in ds9
ora...
daophot> epar allstar
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = allstar
image =
Bea Image corresponding to photometry
photfile=
default Input photometry file (default: image.mag.?)
psfimage=
default PSF image (default: image.psf.?)
allstarf=
default Output photometry file (default: image.als.?)
rejfile =
default Output rejections file (default: image.arj.?)
subimage=
default Subtracted image (default: image.sub.?)
(datapar=
) Data dependent parameters
(daopars=
) Psf fitting parameters
(wcsin =
)_.wcsin) The input coordinate system
(logical,tv,physical,world
(wcsout =
)_.wcsout) The output coordinate system (logical,tv,physical)
(wcspsf =
)_.wcspsf) The psf coordinate system (logical,tv,physical)
(cache =
yes) Cache the data in memory?
(verify =
no) Verify critical allstar parameters?
(update =
)_.update) Update critical allstar parameters?
(verbose=
no) Print allstar messages?
(version=
2) Version
(mode =
ql)
crea Bea.sub.3.fits ....tutte le stelle sottratte
blink con originale...
ora serve files di coordinate delle stelle usate per la psf che userò anche per la
correzione d'apertura
copio il file apcor_coo.sce nella directory dove sto lavorando
lo edito e cambio la directory di lavoro e il nome dell'immagine
cartella="/iraf/iraf/local/CCD/KOHOUTEK/AAVSO/kw97_42_41/2010_11_5/
B/";
nomeimmagine='Bea';
apro scilab...
file...esegui.... apcor_coo.sce
crea il file di coordinate apcor.coo
ora faccio la fotometria sull'immagine ORIGINALE-VICINI STELLE PSF
display Bea.sub.2
modificare annulus dannulus in fitskypars
da ds9 definire region ...shape..annulus...decidere i parametri spostandola sulle
varie stelle della lista .pst
prima è utile lanciare tvmark per segnare con un puntino o una croce tali stelle
IRAF
Image Reduction and Analysis Facility
PACKAGE = tv
TASK = tvmark
frame =
coords =
(logfile=
(autolog=
(outimag=
(deletio=
(command=
(mark =
(radii =
(lengths=
rectangles
(font =
(color =
(label =
(number =
(nxoffse=
(nyoffse=
(pointsi=
(txsize =
(toleran=
(interac=
(mode =
1 Default frame number for display
apcor.coo Input coordinate list
default) Output log file
no) Automatically log each marking command
) Output snapped image
) Output coordinate deletions list
) Image cursor: [x y wcs] key [cmd]
point) The mark type
0) Radii in image pixels of concentric circles
0) Lengths and width in image pixels of concentric
raster) Default font
204) Gray level of marks to be drawn
no) Label the marked coordinates
no) Number the marked coordinates
0) X offset in display pixels of number
0) Y offset in display pixels of number
4) Size of mark type point in display pixels
1) Size of text and numbers in font units
1.5) Tolerance for deleting coordinates in image pixels
no) Mode of use
ql)
esco con :go
una volta decisa la dimensione della region...annulus..cioè annulus e
dannulus...inserisco tali valori in fitskypars
epar phot
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = phot
image =
Bea.sub.2 Input image(s)
coords =
apcor.coo Input coordinate list(s) (default: image.coo.?)
output =
default Output photometry file(s) (default: image.mag.?)
skyfile =
Input sky value file(s)
(plotfil=
) Output plot metacode file
(datapar=
) Data dependent parameters
(centerp=
) Centering parameters
(fitskyp=
) Sky fitting parameters
(photpar=
) Photometry parameters
(interac=
no) Interactive mode ?
(radplot=
no) Plot the radial profiles?
(icomman=
) Image cursor: [x y wcs] key [cmd]
(gcomman=
) Graphics cursor: [x y wcs] key [cmd]
(wcsin =
)_.wcsin) The input coordinate system
(logical,tv,physical,world)
(wcsout =
)_.wcsout) The output coordinate system (logical,tv,physical)
(cache =
)_.cache) Cache the input image pixels in memory ?
(verify =
)_.verify) Verify critical phot parameters ?
(update =
)_.update) Update critical phot parameters ?
(verbose=
)_.verbose) Print phot messages ?
(graphic=
)_.graphics) Graphics device
(display=
)_.display) Display device
(mode =
ql)
posizionarsi su fitskypars... :e
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = fitskypars
(salgori=
(annulus=
(dannulu=
(skyvalu=
(smaxite=
(sloclip=
(shiclip=
(snrejec=
(sloreje=
(shireje=
mode) Sky fitting algorithm
12.5) Inner radius of sky annulus in scale units
8.) Width of sky annulus in scale units
0.) User sky value
10) Maximum number of sky fitting iterations
0.) Lower clipping factor in percent
0.) Upper clipping factor in percent
50) Maximum number of sky fitting rejection iteratio
3.) Lower K-sigma rejection limit in sky sigma
3.) Upper K-sigma rejection limit in sky sigma
(khist =
(binsize=
(smooth =
(rgrow =
(mksky =
(mode =
3.) Half width of histogram in sky sigma
0.1) Binsize of histogram in sky sigma
no) Boxcar smooth the histogram
0.) Region growing radius in scale units
no) Mark sky annuli on the display
ql)
esco con :q
poi..... photpars... :e
inserisco range di aperture a partire da 1 FWHM fino a un certo MAX con
passo 1 ( apertur= FWHM:MAX:PASSO)
IRAF
Image Reduction and Analysis Facility
PACKAGE = daophot
TASK = photpars
(weighti=
(apertur=
(zmag =
(mkapert=
(mode =
constant) Photometric weighting scheme
2.34:12.34:1) List of aperture radii in scale units
25.) Zero point of magnitude scale
no) Draw apertures on the display
ql)
lancio phot......:go
crea file....Bea.sub.2.mag.1
adesso uso mkapfile..
daophot> bye
apphot. daophot. photcal. ptools.
digiphot> photcal
apfile
fitparams mkcatalog mknobsfile obsfile
chkconfig invertfit mkconfig mkobsfile
evalfit mkapfile mkimsets mkphotcors
photcal> epar mkapfile
IRAF
Image Reduction and Analysis Facility
PACKAGE = photcal
TASK = mkapfile
photfile=
Bea.sub.2.mag.1 The input list of APPHOT/DAOPHOT databases
naperts =
12 The number of apertures to extract
apercors=
Beaapcor The output aperture corrections file
(smallap=
1) The first aperture for the correction
(largeap=
0) The last aperture for the correction
(magfile=
) The optional output best magnitudes file
(logfile=
apcorlog) The optional output log file
(plotfil=
apcorplot) The optional output plot file
(obspara=
) The observing parameters file
(obscolu=
2 3 4 5) The observing parameters file format
(append =
no) Open log and plot files in append mode
(maglim =
0.1) The maximum permitted magnitude error
(nparams=
3) Number of cog model parameters to fit
(swings =
1.2) The power law slope of the stellar wings
(pwings =
0.1) The fraction of the total power in the stellar wings
(pgauss =
0.5) The fraction of the core power in the gaussian core
(rgescal=
0.9) The exponential / gaussian radial scales
(xwings =
0.) The extinction coefficient
(interac=
yes) Do the fit interactively ?
(verify =
no) Verify interactive user input ?
(gcomman=
) The graphics cursor
(graphic=
stdgraph) The graphics device
(mode =
ql)
per rivedere i vari grafici in apcor_plot uso
gkiextract apcor_plot 1 |stdgraph
gkiextract apcor_plot 2 |stdgraph
gkiextract apcor_plot 6 |stdgraph
adesso dobbiamo ordinare e "sintetizzare" i risultati...
ora ho queste cartelle (esempio)
dentro.........../iraf/iraf/local/CCD/AAVSO/kw97_42_41...........ho
2010_11_5 ....
e dentro 2010_11_5 ho le cartelle B V R I ...
creo anche cartella calib....
ecl> ls
B calib I R V
dentro calib metto output di allstar (.als) e le quattro immagini originali
ecl> cd /iraf/iraf/local/CCD/AAVSO/kw97_42_41/2010_11_5/calib
ecl> ls
Bea.als.1 Bea.als.1 Rednotes Rita.fits Vale.fits
Bea.fits Bea.fits Rita.als.1 Vale.als.1
ordino il file Bea.als.1 ordinandolo secondo le x crescenti
ecl> psort Bea.als.1 xcenter
adesso...
TRANSFORMING TO THE STANDARD SYSTEM
fotometria...............allsky---------->mknobsfile
.........................diff------------>mkobsfile
(vedi help pcintro da IRAF)
uso mkobsfile
servono le apcor trovate...le deduco dal file apcor e approssimo in base
all'incertezza (ex)
11_ott_2010.....B -0.4109671 0.02304261 .........> -0.411+/-0.023
V -0.2673292 0.01664866 .........> -0.267+/-0.017
R -0.298224 0.01880286 ..........> -0.298+/-0.019
I -0.3001105 0.01900632 .........> -0.300+/-0.019
oppure....LE TROVO GIA' APPROSSIMATE nel file APCORLOG
al task mkobsfile darò questi ultimi valori
daophot> bye
apphot. daophot. photcal. Ptools.
digiphot> photcal
apfile
fitparams mkcatalog mknobsfile obsfile
chkconfig invertfit mkconfig mkobsfile
evalfit mkapfile mkimsets mkphotcors
photcal> epar mkobsfile
IRAF
Image Reduction and Analysis Facility
PACKAGE = photcal
TASK = mkobsfile
photfile= Bea.als.1,Vale.als.1, Rita.als.1,Bea.als.1 The input list of
APPHOT/DAOPHOT databa
idfilter=
B,V,R,I The list of filter ids
observat=
fotometria The output observations file
(wrap =
yes) Format the output file for easy reading ?
(imsets =
STDIN) The input image set file
(obspara=
) The observing parameters file
(obscolu=
2 3 4 5) The format of obsparams
(minmage=
0.001) The minimum magnitude error
(shifts =
STDIN) The x and y coordinate shifts file
(apercor=
STDIN) The aperture corrections file
(apertur=
(toleran=
(allfilt=
(verify =
(verbose=
(mode =
1) The aperture number of the extracted magnitude
3.) The tolerance in pixels for position matching
yes) Output only objects matched in all filters
no) Verify interactive user input ?
yes) Print status, warning and error messages ?
ql)
Enter name of image set 1 (name, <EOF>=quit entry): 2010_11_5
Enter image name 1 (name, <CR>=INDEF): Bea
Enter image name 2 (name, <CR>=INDEF): Vale
Enter image name 3 (name, <CR>=INDEF): Rita
Enter image name 4 (name, <CR>=INDEF): Isa
Enter name of image set 2 (name, <EOF>=quit entry): dare CTRL-D se si
hanno immagini di una sola serata
Image set 1 (11_ott_2010): Enter the shift in x and y
Image Bea (xshift yshift, <CR>=0.0 0.0, <EOF>=quit entry):
Image Vale (xshift yshift, <CR>=0.0 0.0, <EOF>=quit entry):
Image Rita (xshift yshift, <CR>=0.0 0.0, <EOF>=quit entry):
Image Bea (xshift yshift, <CR>=0.0 0.0, <EOF>=quit entry):
dare sempre ENTER perchè non ci sono shifts (immagini già allineate)
Image set 1 (11_ott_2010): Enter the aperture correction
Image Bea (magnitude, <CR>=0.0, <EOF>=quit entry): -0.411
Image Vale (magnitude, <CR>=0.0, <EOF>=quit entry): -0.267
Image Rita (magnitude, <CR>=0.0, <EOF>=quit entry): -0.298
Image Bea (magnitude, <CR>=0.0, <EOF>=quit entry): -0.300
Observations file: fotometria
Image set: 11_ott_2010 601 stars written to the observations file
crea file fotometria e ffotometria.dat (parametri..descrizione)
estraggo dal file fotometria le stelle che mi interessano
copio nella directory di lavoro attuale (calib) i files:
numerazione_stelle_27set2010 (dati da seqplot per la I notte)
estrazione-dati-fotometria-filtri.sce
in quest'ultimo cambio la directory di lavoro (…./calib/)
salvo...apro scilab...file..esegui...
crea i file: target_comp.txt, B.txt,V.txt,R.txt,I.txt
nei files cambiare . con la ,
prendere foglio di calcolo calibrazione_finale.gnumeric (c'è anche in
formato .xls per excel e .ods per openoffice ) in
Dropbox/VAriiableSTarsObservers/RiduzioniAAVSO
con le equazioni delle trasformazioni e con la fotometria standard delle
comparison stars e lo modifico cancellando le magnitudini STRUMENTALI
delle comparison stars e della variabile
inserisco poi i nuovi dati B V R I nel foglio di calcolo