This directory contains the myambergui installation.
Please refer to /home/chummel/public_html/amber/amber.html
for further information.

All amdlib functions are prefixed "amdlib"

There are a few amdlib functions which are compiled as standalone executables,
e.g. ExtractVis,... They also exist with the same name in the library!
ExtractVis (Utilities): Higher level routine which writes OI file.
Calls ExtractVisibilities in a loop of the JHK bands (called rows here)

ToDo
----
Logic for dealing with several bands/output files, e.g. as in JHK.

Notes
-----
Running ammyorick in batch mode:
ammyorick -batch mybatch.i

Data reduction w/amdlib:
========================

BADPIX: M.AMBER.2008-09-05T11:16:47.432.fits
FLATFM: M.AMBER.2008-09-05T11:17:04.982.fits

Data files not needed: 
ENGINEERING,FLUX,COLPOS,SPECPOS,ZOFF,3TEL,FRNSRC,COHERENC,CPTPIST

Run this procedure to gzip and move these files to "moreamberdata":
cleanamberrawdir

P2VM matrix:
------------
Select 4 WAVE,3TEL files, followed by 10 3P2V files
Output naming, e.g.: 3Tstd_Medium_K_1_2.1.23600096.p2vm.fits
Offset y file, e.g.: 3Tstd_Medium_K_1_2.1.23600096.offsety.txt

Spectral calibration:
---------------------
Files required: badPixelMap flatFieldMap  dark  file1  file2  file3

OYSTER initialization:
----------------------
Check for files to remove, e.g., rm_unwanted for MATISSE
Push button: OYSTER, then Pipeline

Use these filters for science data:
-----------------------------------
Piston threshold 5.0 microns
SNR Best 10%

">"  option: save results for each of the 5 files, file name ".5.fits"
">>" option: concatenate the 5 files and apply selection, to be used by OYSTER
---------------------
DARK
OBJECT * 5
SKY

FINITO performance:
-------------------
dfits AMBER*.fits | fitsort OBS.NAME DPR.TYPE ISS.AMBI.FWHM.END ISS.AMBI.TAU0.END DEL.FNT.LOCKR_CH1 DEL.FNT.LOCKR_CH2 DEL.FNT.PHA_RMS_CH1 DEL.FNT.PHA_RMS_CH2

e.g.:
Average FINITO performances (CH2 baselines with UT1):
	LOCKR_CH1	LOCK2_CH2	PHA_RMS_CH1	PHA_RMS_CH2
CAL	1.00		1.00		0.88		0.84
SCI	0.80		0.62		1.50		1.78
CAL	1.00		1.00		0.98		0.95
Average seeing 0.57", coh. time 5.9 ms

AO performance:
---------------
dfits AMBER*.fits | fitsort OBS.NAME DPR.TYPE ISS.AMBI.FWHM.END ISS.AMBI.TAU0.END COU.AO1.STREHL_MEAN DEL.FNT.PHA_RMS_CH1 DEL.FNT.PHA_RMS_CH2

