Sie sind auf Seite 1von 19

MANUAL DE REDUCCIÓN DE

ESPECTROS CON
BOLLER & CHIVENS

1
TABLA DE CONTENIDO

TABLA DE CONTENIDO................................................................................................. 2
CALIBRACIÓN EN FLUJO............................................................................................ 13
APÉNDICES.................................................................................................................... 19

2
Procedimiento para la reducción de imágenes de espectros Boller & Chivens.

(Debe hacerse calibración en longitud de onda y en flujo)

1. Recortar imágenes.

Tipos de archivos que se necesitan para el Boller:

Twilight

Arco

Primero se deben revisar las dimensiones de los objetos, arcos, bias y flats (tanto de cielo –
twilight como interno - halógenos) de la misma noche, y si se van a recortar, el procedimiento es el
siguiente:
1.1. Escoger el rango de la imagen que va a quedar luego de
recortarlo. Se recomienda hacer cortes en todos los bordes de la
imagen. (Por posibles problemas en el CCD). Para esto se escogen los píxeles
en X y en Y para marcar la región que quedará utilizable.

1.2. Copiar la lista de todos los archivos .fits en un archivo nuevo cuyo nombre
se escoge adecuadamente [file].

ls mes*.fits > fileA

1.3. Crear una nueva copia de ese archivo con un nombre distinto que puede
ser el anterior con una pequeña diferencia para mostrar su relación [file1].

cp fileA fileB

1.4. Abrir el primer archivo [fileA] y cambiarle el nombre a los archivos .fits >
[xi:xf,yi:yf].fits

emacs fileA

3
buscar/reemplazar el nombre original por el nuevo.

1.5. Abrir el segundo archivo y cambiarle el .fits > r.fits

1.6. Ejecutar el comando imcopy, que asigna a cada uno de los archivos la
correspondiente

cl> imcopy @fileA @fileB

mes2012[40:500,50:450].fits -> mes2012r.fits


mes2013[40:500,50:450].fits -> mes2013r.fits
mes2014[40:500,50:450].fits -> mes2014r.fits ...

2. Bias promedio.

2.1. Crear otro archivo con la información del primero.

cp fileB bias (Se hace con el fileA o con el fileB?)

En este archivo solo deben quedar aquellas imágenes pertenecientes al bias.

2.2. Se pueden ver las estadísticas de los archivos bias.

cl> imstat @bias

2.3. Combinar todos los bias de la misma noche en una sola imagen por
medio del comando zerocombine para obtener un bias promedio que luego será
restado a los objetos, flats y arcos.

cl> epar zerocombine [/noao/imred/ccdred]

PACKAGE = ccdred
TASK = zerocombine

input = @bias List of zero level images to combine


(output = Zero) Output zero level name
(combine= average) Type of combine operation
(reject = crreject) Type of rejection
(ccdtype= ) CCD image type to combine
(process= no) Process images before combining?
(delete = no) Delete input images after combining?
(clobber= no) Clobber existing output image?
(scale = none) Image scaling
(statsec= ) Image section for computing statistics
(nlow = 0) minmax: Number of low pixels to reject
(nhigh = 1) minmax: Number of high pixels to reject
(nkeep = 1) Minimum to keep (pos) or maximum to reject (neg)
(mclip = yes) Use median in sigma clipping algorithms?
(lsigma = 3.) Lower sigma clipping factor
(hsigma = 3.) Upper sigma clipping factor
(rdnoise= 0.) ccdclip: CCD readout noise (electrons)
(gain = 1.) ccdclip: CCD gain (electrons/DN)
(snoise = 0.) ccdclip: Sensitivity noise (fraction)
(pclip = -0.5) pclip: Percentile clipping parameter
(blank = 0.) Value if there are no pixels
(mode = ql)

2.4. Salir después de hacer hecho las modificaciones con :g

4
Y aparece un archivo llamado Zero.fits

2.5. Comparar estadísticamente el archivo Zero.fits con respecto a los archivos


bias en su totalidad.

cl> imstat @bias,Zero

cc> imstat @bias,Zero


# IMAGE NPIX MEAN STDDEV MIN MAX
mes2048[40:500,50:450].fits 184861 1179. 12.52 1128. 1496.
mes2049[40:500,50:450].fits 184861 1179. 12.52 1128. 1278.
mes2050[40:500,50:450].fits 184861 1179. 17.21 1123. 5508.
mes2051[40:500,50:450].fits 184861 1179. 13.68 1127. 2951.
mes2052[40:500,50:450].fits 184861 1179. 20.66 1130. 8248.
mes2053[40:500,50:450].fits 184861 1179. 14.67 1128. 3531.
mes2054[40:500,50:450].fits 184861 1179. 14.9 1126. 3443.
mes2055[40:500,50:450].fits 184861 1179. 12.53 1125. 1279.
mes2056[40:500,50:450].fits 184861 1179. 13.08 1119. 2641.
mes2057[40:500,50:450].fits 184861 1179. 12.73 1126. 2208.
mes2058[40:500,50:450].fits 184861 1180. 19.53 1128. 7488.
mes2059[40:500,50:450].fits 184861 1180. 12.48 1129. 1270.
mes2060[40:500,50:450].fits 184861 1180. 12.8 1128. 1948.
mes2061[40:500,50:450].fits 184861 1179. 14.18 1128. 3163.
mes2062[40:500,50:450].fits 184861 1180. 15.18 1126. 4882.
Zero 184861 1179. 4.573 1161. 1257.

3/ Resta del bias promedio para cada uno de los espectros que se van a
combinar luego. Esto se hace con la cantidad de espectros que se tengan.

3.1. Crear un archivo que contenga todas las imágenes recortadas y uno
que contenga los mismos archivos pero con una b para cuando estén biasiados.
Esto incluye a los twilight y los halógenos

cl> cp fileB todos


cl> emacs todos [Eliminar los archivos bias]
cl> cp todos todosbias
cl> emacs todosbias [cambiar el nombre *.fit b*.fit]
cl> imarith @todos - Zero @todosbias

4/ Twilight promedio.

4.1. Crear otro archivo con la información del primero.

cp todosbias twilight

Editar para que en este archivo solo queden imágenes pertenecientes al twilight.

4.2. Combinar todos los twilight de la misma noche en una sola imagen por
medio del comando flatcombine para obtener un twilight promedio.

cl> epar flatcombine [/noao/imred/ccdred]

PACKAGE = ccdred
TASK = flatcombine

input = @twilight List of flat field images to combine


(output = twilight) Output flat field root name
(combine= average) Type of combine operation
(reject = crreject) Type of rejection

5
(ccdtype= flat) CCD image type to combine
(process= no) Process images before combining?
(subsets= no) Combine images by subset parameter?
(delete = no) Delete input images after combining?
(clobber= no) Clobber existing output image?
(scale = mode) Image scaling
(statsec= ) Image section for computing statistics
(nlow = 1) minmax: Number of low pixels to reject
(nhigh = 1) minmax: Number of high pixels to reject
(nkeep = 1) Minimum to keep (pos) or maximum to reject (neg)
(mclip = yes) Use median in sigma clipping algorithms?
(lsigma = 3.) Lower sigma clipping factor
(hsigma = 3.) Upper sigma clipping factor
(rdnoise= 6.6) ccdclip: CCD readout noise (electrons)
(gain = 1.27) ccdclip: CCD gain (electrons/DN)
(snoise = 0.) ccdclip: Sensitivity noise (fraction)
(pclip = -0.5) pclip: Percentile clipping parameter
(blank = 1.) Value if there are no pixels
(mode = ql)

4.3. Salir después de hacer hecho las modificaciones con :g

Y aparece un archivo llamado twilight.fits

5/ Halógeno promedio.

5.1. Crear otro archivo con la información del primero.

cp todosbias halogeno

Editar para que en este archivo solo queden imágenes pertenecientes a los
halogenos.

5.2. Combinar todos los halogenos de la misma noche en una sola imagen por
medio del comando flatcombine para obtener un halogeno promedio.

cl> epar flatcombine [/noao/imred/ccdred]

PACKAGE = ccdred
TASK = flatcombine

input = @halogeno List of flat field images to combine


(output = halogeno) Output flat field root name
(combine= average) Type of combine operation
(reject = crreject) Type of rejection
(ccdtype= flat) CCD image type to combine
[Este debe quedar en blanco]
(process= no) Process images before combining?
(subsets= no) Combine images by subset parameter?
(delete = no) Delete input images after combining?
(clobber= no) Clobber existing output image?
(scale = mode) Image scaling
(statsec= ) Image section for computing statistics
(nlow = 1) minmax: Number of low pixels to reject
(nhigh = 1) minmax: Number of high pixels to reject
(nkeep = 1) Minimum to keep (pos) or maximum to reject
(neg)(mclip = yes) Use median in sigma clipping algorithms?
(lsigma = 3.) Lower sigma clipping factor
(hsigma = 3.) Upper sigma clipping factor

6
(rdnoise= 6.6) ccdclip: CCD readout noise (electrons)
(gain = 1.27) ccdclip: CCD gain (electrons/DN)
(snoise = 0.) ccdclip: Sensitivity noise (fraction)
(pclip = -0.5) pclip: Percentile clipping parameter
(blank = 1.) Value if there are no pixels
(mode = ql)

5.3. Salir después de hacer hecho las modificaciones con :g

Y aparece un archivo llamado halogeno.fits

6/ Combinación de objetos. Una vez restado el bias promedio, se combinan los


espectros de los objetos para obtener uno solo y sin rayos cósmicos. Se utiliza
el comando imcombine.

cl> epar imcombine

PACKAGE = immatch
TASK = imcombine

input = 4048orb,4049orb List of images to combine


output = 039centro List of output images
(headers= ) List of header files (optional)
(bpmasks= ) List of bad pixel masks (optional)
(rejmask= ) List of rejection masks (optional)
(nrejmas= ) List of number rejected masks (optional)
(expmask= ) List of exposure masks (optional)
(sigmas = ) List of sigma images (optional)
(logfile= STDOUT) Log file
(combine= average) Type of combine operation
(reject = crreject) Type of rejection
(project= no) Project highest dimension of input images?
(outtype= real) Output image pixel datatype
(outlimi= ) Output limits (x1 x2 y1 y2 ...)
(offsets= none) Input image offsets
(masktyp= none) Mask type
(maskval= 0.) Mask value
(blank = 0.) Value if there are no pixels
(scale = none) Image scaling
(zero = none) Image zero point offset
(weight = none) Image weights
(statsec= ) Image section for computing statistics
(expname= ) Image header exposure time keyword
(lthresh= INDEF) Lower threshold
(hthresh= INDEF) Upper threshold
(nlow = 1) minmax: Number of low pixels to reject
(nhigh = 1) minmax: Number of high pixels to reject
(nkeep = 1) Minimum to keep (pos) or maximum to reject (n
(mclip = yes) Use median in sigma clipping algorithms?
(lsigma = 3.) Lower sigma clipping factor
(hsigma = 3.) Upper sigma clipping factor
(rdnoise= 0.) ccdclip: CCD readout noise (electrons)
(gain = 1.) ccdclip: CCD gain (electrons/DN)
(snoise = 0.) ccdclip: Sensitivity noise (fraction)
(sigscal= 0.1) Tolerance for sigma clipping scaling correcti
(pclip = -0.5) pclip: Percentile clipping parameter
(grow = 0.) Radius (pixels) for neighbor rejection
(mode = ql)

7
Repetir esto para cada conjunto de imagenes.

7 . Funcion respuesta.

Ajusta un polinomio de orden alto (entre 10 y 20) a la


suma de renglones específicos del flat promedio. Su
finalidad es remover la escala larga, la estructura de baja
frecuencia del flat promedio y omitir las variaciones de pixel a pixel.
Es probable que esta función sea mejor si se utiliza solo la región central
del flat promedio. Utiliza polinomios de Chebyshev.

cl> epar response [noao/twodspec/longslit]

PACKAGE = longslit
TASK = response

calibrat= halogeno Longslit calibration images


normaliz= halogeno Normalization spectrum images
response= ihalogeno Response function images
(interac= yes) Fit normalization spectrum interactively?
(thresho= INDEF) Response threshold
(sample = *) Sample of points to use in fit
(naverag= 1) Number of points in sample averaging
(functio= chebyshev) Fitting function
(order = 10) Order of fitting function
(low_rej= 0.) Low rejection in sigma of fit
(high_re= 0.) High rejection in sigma of fit
(niterat= 1) Number of rejection iterations
(grow = 0.) Rejection growing radius
(graphic= stdgraph) Graphics output device
(cursor = ) Graphics cursor input
(mode = ql)

Fit the normalization spectrum for halogeno interactively (yes):


Dispersion axis (1=along lines, 2=along columns, 3=along z) (1:3) (1):

Fit the normalization spectrum for flats ......... yes!!!

{En la gráfica :o espacio 17 Enter ...... f muestar el ajuste}

8. Funcion illumination

cl> epar illumination. []

[Se requiere haber realizado previamente la tarea response]

PACKAGE = longslit
TASK = illumination

images = twilight Longslit calibration images


illumina= itwilight Illumination function images
(interac= yes) Interactive illumination fitting?
(bins = ) Dispersion bins
(nbins = 5) Number of dispersion bins when bins = ""
(sample = *) Sample of points to use in fit
(naverag= 1) Number of points in sample averaging
(functio= chebyshev) Fitting function
(order = 3) Order of fitting function

8
(low_rej= 0.) Low rejection in sigma of fit
(high_re= 0.) High rejection in sigma of fit
(niterat= 1) Number of rejection iterations
(grow = 0.) Rejection growing radius
(interpo= poly3) Interpolation type
(graphic= stdgraph) Graphics output device
(cursor = ) Graphics cursor input
(mode = ql)

{A la gráfica se le hacen los mismos ajustes que a la obtenida en la tarea


response}

9 . Calibracion de las imagenes con halogenos y twilight.


Una vez que se ha realizado la tarea illumination, se procede a
calibrar los objetos con los resultados de la misma. Esta calibración
consiste en dividir los objetos entre el resultado obtenido en el paso
anterior. La división se realiza mediante la tarea imarith.

cl> imarith halogeno / ihalogeno file1


cl> imarith file1 / 10000 file2
cl> imarith file2 * itwilight calibra

Lo que seguiría es dividir los objetos entre calibra.

Se hace una lista con los archivos que contienen las imágenes listas.
Hacer una copia de este archivo con nombre ligeramente distinto.
Edita dicho archivo y cambiar su terminación.

cl> imarith @imagenes / calibra @imagenesf

10/ Calibrar el espectro.

10.1. Entrar a la página del IA ahí buscar en Instrumentos/Mezcal/Calibración

cl> implot Arco [El archivo que contiene el arco *rb]

Si el espectro tiene mucho ruido, mejorarlo cambiando el rango de ... :l 80 120


[40 renglones]

Se utiliza para mostrar un corte y tener un espectro. Imprimir este espectro


para su calibración a mano. [Con el comando =]

Se sale con el comando q

Imprimir el arco correspondiente e identificar las líneas presentes.


:
10.2. cl > epar identify [Con la imagen del Arco]

Regresar al gráfico y marcar sobre cada línea (lo más centrado posible)
y escribir la correspondiente longitud de onda. Cuando se termina, se le da la
opción l dentro del gráfico y queda calibrado.

Si hay pocas líneas se le puede dar en [coordli] el nombre de un archivo que


contenga las líneas a identificar.

PACKAGE = longslit
TASK = identify

images = 4046arb Images containing features to be identified

9
(section= middle line) Section to apply to two dimensional images
(databas= database) Database in which to record feature data
(coordli= cuhenear.dat) User coordinate list
(units = ) Coordinate units
(nsum = 10) Number of lines/columns/bands to sum in 2D image
(match = -3.) Coordinate list matching limit
(maxfeat= 50) Maximum number of features for automatic identif
(zwidth = 100.) Zoom graph width in user units
(ftype = emission) Feature type
(fwidth = 4.) Feature width in pixels
(cradius= 5.) Centering radius in pixels
(thresho= 0.) Feature threshold for centering
(minsep = 2.) Minimum pixel separation
(functio= spline3) Coordinate function
(order = 1) Order of coordinate function
(sample = *) Coordinate sample regions
(niterat= 0) Rejection iterations
(low_rej= 3.) Lower rejection sigma
(high_re= 3.) Upper rejection sigma
(grow = 0.) Rejection growing radius
(autowri= no) Automatically write to database
(graphic= stdgraph) Graphics output device
(cursor = ) Graphics cursor input
crval = Approximate coordinate (at reference pixel)
cdelt = Approximate dispersion
(aidpars= ) Automatic identification algorithm parameters
(mode = ql)

Salir del gráfico.

Se le da (yes) a la pregunta que hace al salir.

11/ Reidentificar las líneas del arco.

cl> epar reidentify [Con la imagen del Arco].

Aquí aparece una lista con las líneas reconocidas.

Esto barre verticalmente el espectro (espacialmente).

PACKAGE = longslit
TASK = reidentify

referenc= 4046arb Reference image


images = 4046arb Images to be reidentified
(interac= no) Interactive fitting?
(section= middle line) Section to apply to two dimensional images
(newaps = yes) Reidentify apertures in images not in reference?
(overrid= no) Override previous solutions?
(refit = yes) Refit coordinate function?
(trace = yes) Trace reference image?
(step = 10) Step in lines/columns/bands for tracing an image
(nsum = 10) Number of lines/columns/bands to sum
(shift = 0.) Shift to add to reference features (INDEF to sea
(search = 0.) Search radius
(nlost = 5) Maximum number of features which may be lost
(cradius= 5.) Centering radius
(thresho= 0.) Feature threshold for centering
(addfeat= no) Add features from a line list?

10
(coordli= ) User coordinate list
(match = -3.) Coordinate list matching limit
(maxfeat= 50) Maximum number of features for automatic identif
(minsep = 2.) Minimum pixel separation
(databas= database) Database
(logfile= logfile) List of log files
(plotfil= ) Plot file for residuals
(verbose= yes) Verbose output?
(graphic= stdgraph) Graphics output device
(cursor = ) Graphics cursor input
answer = no Fit dispersion function interactively?
crval = Approximate coordinate (at reference pixel)
cdelt = Approximate dispersion
(aidpars= ) Automatic identification algorithm parameters
(mode = ql)

12/ Creación de un archivo con las coordenadas de corrección.

cl> epar fitcoords [Con la imagen del Arco]

Aquí aparece un gráfico con las coordenadas de las líneas.

Comandos para hacerlo interactivamente: :yorder, :xorder

Aquí se crean los archivos en el subdirectorio database que serán utilizados por
el comando transform.

PACKAGE = longslit
TASK = fitcoords

images = 4046arb
Images whose coordinates are to be fit
(fitname= ) Name for coordinate fit in the database
(interac= yes) Fit coordinates interactively?
(combine= no) Combine input coordinates for a single fit?
(databas= database) Database
(deletio= deletions.db) Deletion list file (not used if null)
(functio= chebyshev) Type of fitting function
(xorder = 6) X order of fitting function
(yorder = 6) Y order of fitting function
(logfile= STDOUT,logfile) Log files
(plotfil= plotfile) Plot log file
(graphic= stdgraph) Graphics output device
(cursor = ) Graphics cursor input
(mode = ql)

Verificar siempre el valor rms.

Salir con el comando q

Se le da (yes) a la pregunta que hace al salir.

13/ Transformar el arco ya con las coordenadas asignadas.

13.1.

cl > epar transform [Siempre con el nombre del archivo del arco ya corregido]

input arco-rb
output arco-rbw

11
fitnames arco-rb

PACKAGE = longslit
TASK = transform

input = mes2021rb Input images


output = mes2021rbw Output images
fitnames= mes2021rb Names of coordinate fits in the database
(databas= database) Identify database
(interpt= spline3) Interpolation type
(x1 = INDEF) Output starting x coordinate
(x2 = INDEF) Output ending x coordinate
(dx = INDEF) Output X pixel interval
(nx = INDEF) Number of output x pixels
(xlog = no) Logarithmic x coordinate?
(y1 = INDEF) Output starting y coordinate
(y2 = INDEF) Output ending y coordinate
(dy = INDEF) Output Y pixel interval
(ny = INDEF) Number of output y pixels
(ylog = no) Logarithmic y coordinate?
(flux = yes) Conserve flux per pixel?
(logfile= STDOUT,logfile) List of log files
(mode = ql)

13.2.

cl> epar transform [Ahora aplicarlo a la imagen sin cosmicos]

input pos
output posw
fitnames arco-rb

PACKAGE = longslit
TASK = transform

input = mescal-pos5 Input images


output = mescal-pos5w Output images
fitnames= mes2021rb Names of coordinate fits in the database
(databas= database) Identify database
(interpt= spline3) Interpolation type
(x1 = INDEF) Output starting x coordinate
(x2 = INDEF) Output ending x coordinate
(dx = INDEF) Output X pixel interval
(nx = INDEF) Number of output x pixels
(xlog = no) Logarithmic x coordinate?
(y1 = INDEF) Output starting y coordinate
(y2 = INDEF) Output ending y coordinate
(dy = INDEF) Output Y pixel interval
(ny = INDEF) Number of output y pixels
(ylog = no) Logarithmic y coordinate?
(flux = yes) Conserve flux per pixel?
(logfile= STDOUT,logfile) List of log files
(mode = ql)

14/ Sustraer las líneas de cielo que aparecen en los espectros.

Para esta rutina, hay que escoger zonas blancas del espectro que van a ser
eliminadas.

12
cl> epar background.

PACKAGE = longslit
TASK = background

input = im38patasurfw Input images to be background subtracted


output = im38 Output background subtracted images
(axis = 2) Axis along which background is fit and subtracte
(interac= yes) Set fitting parameters interactively?
(sample = 7:52,71:87,149:175) Sample of points to use in fit
(naverag= 1) Number of points in sample averaging
(functio= chebyshev) Fitting function
(order = 1) Order of fitting function
(low_rej= 0.) Low rejection in sigma of fit
(high_re= 0.) High rejection in sigma of fit
(niterat= 1) Number of rejection iterations
(grow = 0.) Rejection growing radius
(graphic= stdgraph) Graphics output device
(cursor = ) Graphics cursor input
(mode = ql)

CALIBRACIÓN EN FLUJO

15/ Poner las líneas de las estrellas completamente horizontales.

15.1. Deben verse los headers del archivo para tomar los valores y cambiarlos por
el recomendado

DISPAXIS ............ 2
CRVAL1 .............. 1.
CDELT1 .............. 1.
CD1_1 ............... 1.

Y eliminar el header que indica que ya se hizo una transformación.

DCLOG1 .............. [Eliminar]

cl> hedit im39-2 * . [Para ver todos los encabezados]

im39-2,i_ctime = 818812862
im39-2,i_history =
im39-2,i_limtime = 818812861
im39-2,i_maxpixval = 0.
im39-2,i_minpixval = 0.
im39-2,i_mtime = 818812862
im39-2,i_naxis = 2
im39-2,i_naxis1 = 981
im39-2,i_naxis2 = 201
im39-2,i_pixfile = im39-2.fits
im39-2,i_pixtype = 6
im39-2,i_title = NGC2452
im39-2,ORIGIN = "NOAO-IRAF FITS Image Kernel July 1999"
im39-2,EXTEND = F
im39-2,DATE = 2005-12-12T08:01:02
im39-2,IRAF-TLM = "00:01:02 (12/12/2005)"

13
im39-2,EXPTIME = 150
im39-2,FILTER = UNKNOWN
im39-2,IMAGETYP = object
im39-2,CCDSUM = "1 1"
im39-2,CCDSEC = [1:1024,401:750]
im39-2,DATASEC = [1:1024,1:350]
im39-2,BIASSEC = [1025:1072,1:350]
im39-2,TRIMSEC = [1:1024,1:350]
im39-2,OBJECT = NGC2452
im39-2,RA = 07:47:38
im39-2,DEC = -27:18:41
im39-2,EPOCH = 2003.09
im39-2,UT = 07:55:17
im39-2,DATE-OBS = 2003-02-03
im39-2,OBSERVAT = SPM
im39-2,TELESCOP = "OAN/SPM 2.1-m"
im39-2,LATITUDE = +31:02:39
im39-2,LONGITUD = -115:27:49
im39-2,ALTITUDE = 2800
im39-2,OBSERVER = "Vazquez, Ayala & Guillen"
im39-2,INSTRUME = B&Ch
im39-2,DETECTOR = "SITe3 1k"
im39-2,GAINMODE = 4
im39-2,GAIN = 1.3
im39-2,RDNOISE = 6.8
im39-2,WCSDIM = 2
im39-2,LTM1_1 = 1.
im39-2,LTM2_2 = 1.
im39-2,WAT0_001 = system=world
im39-2,WAT1_001 = "wtype=linear label=Wavelength units=angstroms"
im39-2,WAT2_001 = wtype=linear
im39-2,NCOMBINE = 3
im39-2,DCLOG1 = Transform
im39-2,DISPAXIS = 1
im39-2,DC-FLAG = 0
im39-2,CTYPE1 = LINEAR
im39-2,CTYPE2 = LINEAR
im39-2,CRVAL1 = 4247.51708984375
im39-2,CRVAL2 = 1.
im39-2,CRPIX1 = 1.
im39-2,CRPIX2 = 1.
im39-2,CDELT1 = 3.02052426338196
im39-2,CDELT2 = 1.
im39-2,CD1_1 = 3.02052426338196
im39-2,CD2_2 = 1.

cl> hedit im39-2[Para empezar a corregir los encabezados]

lo> hedit im39-2


fields to be edited (*): DISPAXIS
value expression (.): 2
im39-2,DISPAXIS (1 -> 2):
im39-2,DISPAXIS: 1 -> 2
update im39-2 ? (yes):
im39-2 updated
lo> hedit im39-2
fields to be edited (DISPAXIS): CRVAL1
value expression (2): 1.
im39-2,CRVAL1 (4247.51708984375 -> 1.):

14
im39-2,CRVAL1: 4247.51708984375 -> 1.
update im39-2 ? (yes):
im39-2 updated
lo> hedit im39-2
fields to be edited (CRVAL1): CDELT1
value expression (1.): 1.
im39-2,CDELT1 (3.02052426338196 -> 1.):
im39-2,CDELT1: 3.02052426338196 -> 1.
update im39-2 ? (yes):
im39-2 updated
lo> hedit im39-2
fields to be edited (CDELT1): CD1_1
value expression (1.): 1.
im39-2,CD1_1 (3.02052426338196 -> 1.):
im39-2,CD1_1: 3.02052426338196 -> 1.
update im39-2 ? (yes):
im39-2 updated

15.2. Identificar de nuevo pero ahora en el sentido horizontal

cl> epar identify

PACKAGE = longslit
TASK = identify

images = im39-2 Images containing features to be identified


(section= middle colum) Section to apply to two dimensional images
(databas= database) Database in which to record feature data
(coordli= ) User coordinate list
(units = ) Coordinate units
(nsum = 10) Number of lines/columns/bands to sum in 2D image
(match = -3.) Coordinate list matching limit
(maxfeat= 50) Maximum number of features for automatic identif
(zwidth = 100.) Zoom graph width in user units
(ftype = emission) Feature type
(fwidth = 4.) Feature width in pixels
(cradius= 5.) Centering radius in pixels
(thresho= 0.) Feature threshold for centering
(minsep = 2.) Minimum pixel separation
(functio= spline3) Coordinate function
(order = 1) Order of coordinate function
(sample = *) Coordinate sample regions
(niterat= 0) Rejection iterations
(low_rej= 3.) Lower rejection sigma
(high_re= 3.) Upper rejection sigma
(grow = 0.) Rejection growing radius
(autowri= no) Automatically write to database
(graphic= stdgraph) Graphics output device
(cursor = ) Graphics cursor input
crval = Approximate coordinate (at reference pixel)
cdelt = Approximate dispersion
(aidpars= ) Automatic identification algorithm parameters
(mode = ql)

cl> Write feature data to the database (yes)? YES

cl> epar reidentify

15
PACKAGE = longslit
TASK = reidentify

referenc= im39-2 Reference image


images = im39-2 Images to be reidentified
(interac= no) Interactive fitting?
(section= middle colum) Section to apply to two dimensional images
(newaps = yes) Reidentify apertures in images not in reference?
(overrid= no) Override previous solutions?
(refit = yes) Refit coordinate function?
(trace = yes) Trace reference image?
(step = 10) Step in lines/columns/bands for tracing an image
(nsum = 10) Number of lines/columns/bands to sum
(shift = 0.) Shift to add to reference features (INDEF to sea
(search = 0.) Search radius
(nlost = 5) Maximum number of features which may be lost
(cradius= 5.) Centering radius
(thresho= 0.) Feature threshold for centering
(addfeat= no) Add features from a line list?
(coordli= ) User coordinate list
(match = -3.) Coordinate list matching limit
(maxfeat= 50) Maximum number of features for automatic identif
(minsep = 2.) Minimum pixel separation
(databas= database) Database
(logfile= logfile) List of log files
(plotfil= ) Plot file for residuals
(verbose= yes) Verbose output?
(graphic= stdgraph) Graphics output device
(cursor = ) Graphics cursor input
answer = no Fit dispersion function interactively?
crval = Approximate coordinate (at reference pixel)
cdelt = Approximate dispersion
(aidpars= ) Automatic identification algorithm parameters
(mode = ql)

[Tener cuidado de cambiar la sección de middle line a middle colum]

cl> epar fitcoords

PACKAGE = longslit
TASK = fitcoords

images = im39-2 Images whose coordinates are to be fit


(fitname= im39-2 Name for coordinate fit in the database
(interac= yes) Fit coordinates interactively?
(combine= no) Combine input coordinates for a single fit?
(databas= database) Database
(deletio= deletions.db) Deletion list file (not used if null)
(functio= chebyshev) Type of fitting function
(xorder = 6) X order of fitting function
(yorder = 6) Y order of fitting function
(logfile= STDOUT,logfile) Log files
(plotfil= plotfile) Plot log file
(graphic= stdgraph) Graphics output device
(cursor = ) Graphics cursor input
(mode = ql)

cl> epar transform

16
PACKAGE = longslit
TASK = transform

input = im39-2 Input images


output = imagen39centro2 Output images
fitnames= im39-2 Names of coordinate fits in the database
(databas= database) Identify database
(interpt= spline3) Interpolation type
(x1 = INDEF) Output starting x coordinate
(x2 = INDEF) Output ending x coordinate
(dx = INDEF) Output X pixel interval
(nx = INDEF) Number of output x pixels
(xlog = no) Logarithmic x coordinate?
(y1 = INDEF) Output starting y coordinate
(y2 = INDEF) Output ending y coordinate
(dy = INDEF) Output Y pixel interval
(ny = INDEF) Number of output y pixels
(ylog = no) Logarithmic y coordinate?
(flux = yes) Conserve flux per pixel?
(logfile= STDOUT,logfile) List of log files
(mode = ql)

16/ Calibración en flujo.

Hay que calibrar la estrella en longitud de onda con el arco.

Y al igual que una imagen normal, hay que quitarle el twilight, y las líneas
de cielo como también centrar las líneas de forma que queden horizontales.

16.0. Tarea apsum

cl> epar apsum

[Para agrandar la apertura pulsar l (low) y u (up) en donde se requiera para


obtener toda la radiación de la estrella]

16.1. Tarea Standarlo qd.

La tarea Standard reconoce las características de la estrella mediante


la cual se realizará la calibración en flujo, todo esto con la finalidad de
establecer la relación entre flujo y cuentas por pixel.

......

16.2. Tarea Sensfunc.

Obtener la función de sensibilidad que nos permita obtener la función a lo


largo del eje de dispersión que transforma cuentas por pixel en unidades de erg
cm-2 s-1 A-1.

.......

16.3. Tarea fluxcalib

A través de esta tarea se realiza la calibración en flujo de los espectros


analizados.

17
-----------------------------------------------------------------------------------
-

TAREAS

imexam: examina una imagen c ... column l ... line

18
APÉNDICES

1. Combinar dos imágenes.


imágenes.

Procedimiento para combinar dos imágenes en IRAF

1. Restas las imágenes. cl> imarith A – B C [C = picos y pozos]


2. Reemplazar pozos por cero. cl> imreplace C <-10 = 0 D [D = picos]
3. Restar picos de imagen A cl> imarith A – D E [E = A sin picos]
4. Reemplazar picos por cero. cl> imreplace C > +10 F [F = pozos]
5. Sumar pozos de imagen B. cl> imarith B + F G [G = B sin pozos]
6. Promediar imágenes E y G. cl> imarith (E+G)/2 H [H = imagen final]

2. Quitar cósmico a mano.


mano.

Para quitar un cósmico a mano se utiliza el comando imedit.

cl> imedit
Images to be edited: ic972-2b
Output images: ic972-2bf

Y cuando aparece el espectro, se coloca sobre el cósmico y se presiona la letra


B (de background) y se elimina.

:l 80 120 [40 renglones] Para tomar más renglones y poder mejorar la senal.

Shift + PageUp o PageDown Moverse en la ventana del xgterm con IRAF activo.

Ctrl + D Sale de un cl> epar ... guardando parámetros sin ejecutarlo.

d Para borrar una longitud de onda ya marcada en la


identificación.

Ctrl + K Borra una línea en emacs.

19

Das könnte Ihnen auch gefallen