
===QUICK-LOOK===

- cd /data/raw/2003-04-05

- inmidas 00

- SET/CONTEXT tmag
  to load the T-Mag commands

- WFIamag/list  will produce a list of the standard fields

- WFIamag/auto WFI_Ima.123.fits
  reads the frame in, measures all the stars, store the results for
  future detailed analysis, and plot quick look evolution.
  Output is stored in /data/E2P2OPS/pipeline_database/WFI/WFIzp.dat
  and .../WFIzp.tbl

  On first execution of this program in a new Midas session,
  the prg will request interactive centering of the stars:
  - click on one Standard Star
  - click on the corresponding cross marking it.
  Next time, it will remember.


THAT's IT!





===MEASUREMENTS===

More details on the commands:

@@ WFIamag_mes = WFIamag/mes

   A modified version of amag_mes, taylored for WFI automatic measurements

 - for the first measurement of a CCD, the program will load 
   a default centering value, and ask for interactive confirmation.
   For further measurements of the same CCD in the same Midas session,
   will use the centering obtained for the firt measurement.

   To reset the auto-centering, DELE/KEY centerx

 - rejects badly identified stars, saturated stars, and reject the
   whole CCD in case less than 30% of the stars in the field were
   properly identified.

 - in addition to the 1-letter filter, the original filter name
   is kept in column :ffilter (full filter), so that the analysis
   can be done separately for the different filters of same type 
   (B99 vs B123).

 - Warning: the program expects the images to come with filename
   xxxn.bdf, where xxx can be anything, but n is the number of the CCD
   (1-8). The program also expects xxx0.bdf, and empty frame with
   all the descriptors. This can be created with
   INDI/MFITS WFI...fits xxx


@@ WFIamag_mesAuto = WFIamag/auto

   The quick-look/pipeline wrapper. Call it with
   WFIamag/auto WFI_img.123.fits

   - reads fits in midas
   - measure each of the chips with WFIamag_mes
   - correct for exposure time
   - computes an average ZP per chip 
     (using @@ WFIamag_oneZero.prg, which stores this ZP in a 
     table WFIzp, located in /data/E2P2OPS/pipeline_database/WFI/WFIzp.tbl
     An ASCII copy of the table is in .../WFIzp.dat )
   - plots the evolution of ZP per chip.
   


===ANALYSIS===

- cd /data/E2P2OPS/pipeline_database/WFI
- inmidas 

- set/contex tmag
  to enable the T-Mag commands

- crea/tcat std_2003-01-02 zp.WFI*tbl
  create a catalogue of all the tables

- emacs std_2003-01-03.cat
  edit the catalogue, to remove the undesired files

- @@ amag_merge std_2003-01-03.cat std null
  to merge all the tables in std.tbl  (null means no prefix).

In the GUI:
- type in the table name
- select the filter
- Select ZP on, Extn and Color off
- leave the 3 defaults to nil (i.e. use hardcoded defaults = WFI's)

- [new/reset and solve]
- using the plots and [delete], edit 
- [solve] to compute new solution.

- use Additional Selection to fine tune the selection, e.g.
  :chip.eq.1
  or :ffilter.eq."BB#B/123_ESO878"

- to reset all the points, or to change filter: [new/reset]


   

More documentation is available on
http://www.sc.eso.org/~ohainaut/prog/tmag

---oOo---



