amdlib v3
is robust wrt. the use of flats. In any case, use of a Flat seem unnecessary to the author. We advise to use this really flat flat instead of ESO-provided ones. In doubt, test the data reduction using a real flat, but in this case, use only the flat obtained at MPIfR, attached at the end of this page. There are two flats, one for the old detector (chip id is "ESO-test" in the raw data files headers), http://www-mariotti.obs.ujf-grenoble.fr/twiki/pub/Jmmc/Software/AmberDrsReleaseNotes/AMBER_FFM_CHIP-247.fits.gz (chip id is "247" in the raw data files headers).
-- GillesDuvert - 01 Apr 2010
amdlibComputeP2vm
have been added, "-z"
and "-a"
. Unfold usage for amdlibComputeP2vm
in the V3.0 section below for explanation. Additionnally, if you use the "-a"
option, which is handy at removing automatically wavelength shifts due to the repositioning error of the amber grating turret, be aware that the phase shifts (and thus the repositioning) seems sensitive to the quality of the Flat Field used. It may be prudent not to use any flat field at all with this option.
Usage: amdlibComputeP2vm [-h] [-N] [-D nframes] [-L | -B nchan] [-v level] [-S <i>] [-s <o1>,<o2>,<o3>] <badPixelMap> <flatFieldMap> [<specDark> <specFile1> <specFile2> <specFile3>] <dark> <file1> ... <file9> <p2vmFile> or amdlibComputeP2vm [same options] <badPixelMap> <flatFieldMap> [<specDark> <specFile1> <specFile2>] <dark> <file1> ... <file4> <p2vmFile> where: <specDark>,<specFile1>... is the comma-separated list of files to perform spectral calibration
-s <o1>,<o2>,<o3>comma-separated list of shifts for the 3 photometric channels (EVEN with 2T: Use then a dummy 3rd value). If given, no spectral calibration is done, and these shifts are used instead. The correct value is more or less the one given in the ATF report and explained HERE
--S <i>The wavelength table will be shifted by PIXELS this amount (+ is towards longer wavelengths). This to correct from spectrum-centering problems that appear mainly at Low Resolution.
-B <boxcar>to smooth P2VM phase with
-G <fwhm>to smooth P2VM phase with a gaussian of
-Lto "smooth" P2VM phase with a linear fit. Unused in LR mode. Ignored in the presence of the -B or -G options.
-D <nfram>to drop the first
-Ato avoid updating the badPixel info with bad pixels found in the dark file (Such On-The-Fly Bad Pixels are computed only if the number of frames is >500 anyway).
-y
Use this Gain (yield) value for the e-/ADU conversion instead of the one stored in the raw data headers. beware, use the same option for amdlibComputeOiData (and amdlibCalibrateRawData)
-z
zap (flags) spectral elements with large phase discontinuities (normally only the J-H and H-K discontinuties in LR_JHK are found.
-a
automatically shifts wavelength table to center the H-K discontinuty to a fixed value. Contains "-z"
option.
amdlibComputeP2vm -D3 -N -n -G 4 -s3.8,3.2,0.75 <badPixelMap> <flatFieldMap> <dark> <file1> ... <file10> <p2vmFile>Note that the Spec Files are NOT USED anymore .
Usage: amdlibComputeOiData [-h] [-f] [-s] [-v level] [-b <num>] [-p PHASOR] [-e STATISTIC|THEORIC] [-c FLUX|FRG|OPD] [-r <ratio>] [-B J|H|K] <badPixelMap> <flatFieldMap> <p2vm> <dark> <input> <output> Options: -h help -v verbosity level [0..4] -f force the use of another P2VM -s split OI-FITS; one file per band -b <num> of frames to average (bin) over <num> frames -p PHASOR (default) for piston algorithm -e THEORIC (default) or STATISTIC for error bars estimation -c FRG, FLUX or OPD criterion for frame selection -r <ratio> for frame selection if 0<ratio<=1, its a ratio, else it is a threshold. flux are in (e), OPD in microns. -B J, H or K to select a spectral bandOptions (new Options are in bold face):
-X0
, that is: tag data whose chi2 is above the mean chi2 by 3 times the chi2 rms. -X -1
or any negative value tages nothing. Normally AMBER data gives a mean chi2 between 0.9 and 1.8. Thus, -X 1.8
would select "normal" frames.amdlibComputeOiData -D30 -n -b 99999 -p PHASOR -e THEORIC -s <badPixelMap> <flatFieldMap> <p2vm> <dark> <input> <output>Note that it is recommendend to avoid selection (option
-b 9999
) unless you are in Low Res, where selection on PISTON ( -c OPD -r 15
) would be a good idea if you are interested in differential visibilities.
Usage: amdlibAppendOiData [-h] [-v level] <inOiFitsFile1> <inOiFitsFile2> [... <inOiFitsFileN>] <outOiFitsFile> Options: -h help -v verbosity level [0..4]
Usage: amdlibPerformFrameSelection [-h] [-v level] [-c FLUX_THR|FLUX_PCG|FRG_THR|FRG_PCG|OPD_THR|OPD_PCG] [-r <ratio>] [-i <inSelFile>] [-o <outSelFile>] <inOiFitsFile> [<outOiFitsFile>] Options: -h help -v verbosity level [0..4] -c <criterion> for frame selection. Possible values are: FLUX_THR - threshold on flux (electron count) FLUX_PCG - percentage of frames kept based on flux selection FRG_THR - threshold on fringe SNR (number) FRG_PCG - percentage of frames kept based on fringe SNR selection OPD_THR - threshold on piston (microns) OPD_PCG - percentage of frames kept based on piston selection -r <value> frame selection value -i <inSelFile> input selection file -o <outSelFile> output selection file
amdlib v3
is robust wrt. the use of flats. In any case, use of a Flat seem unnecessary to the author. We advise to use this really flat flat instead of ESO-provided ones. In doubt, test the data reduction using a real flat, but in this case, use only the flat obtained at MPIfR, attached at the end of this page. There are two flats, one for the old detector (chip id is "ESO-test" in the raw data files headers), http://www-mariotti.obs.ujf-grenoble.fr/twiki/pub/Jmmc/Software/AmberDrsReleaseNotes/AMBER_FFM_CHIP-247.fits.gz (chip id is "247" in the raw data files headers).
Average Linearization Factor: 0.953354
, meaning that the data is good. if this factor is markedly different from 1.0, (say, below 0.8 or above 1.2 ), you could wonder if the P2VM is good enough or if the bad pixel map is up to date.
-J
and -C
) to tag bad piston values and use piston closure for piston evaluation improvement. Use the -c
and -r
options to filter out pistons larger than some fraction of the coherence length (say, 20 microns in LRK).
Correlated Flux fit statistics: mean = 1.015236, rms = 0.276510, median = 0.988546
. The fact that this chi2 is very close to 1 means that all the variances have been well estimated. amdlibComputeOiData
rejects by default all fits with a chi2 > 5 times the rms. Can be overriden with the -X
option
-P
permits to raise this value above zero.
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
![]() |
AMBER_FFM_CHIP-247.fits.gz | r1 | manage | 749.5 K | 2010-07-29 - 14:34 | GillesDuvert | The Flat Field Map of the New AMBER Deector (ESO CHIP ID "247") |
![]() |
AMBER_FFM_CHIP-ESO-test.fits.gz | r1 | manage | 868.7 K | 2010-07-29 - 14:34 | GillesDuvert | The Original Flat Field Map of the Old AMBER Deector (ESO CHIP ID "ESO-test") |
![]() |
VraimentFlat.fits.gz | r1 | manage | 1.4 K | 2008-10-17 - 12:23 | GillesDuvert | A really Flat Flat! |