next up previous contents
Next: Setup Procedures Up: Online Data Analysis Previous: VAX FIGARO Notes

SUN FIGARO Notes

 

login: obsred Check that the .cshrc file does not contain the line
/star/etc/login or the line
/star/etc/cshrc
If it does, comment them out. Ensure the line


source /usr/local/figaro4/figarodef_unix.com is in the .cshrc file.

% setenv DISPLAY aatxta:0                       xterminal
...or...         192.231.166.64:0               (for example)
% figaro
% figdisp                                       image display window
% soft /xwind                                   pop-up graphics window
% hard /ps                                      hard copy format

% setenv D /vaxdata/ccd_N/YYMMDD
% setenv I /vaxinst/ccd_N/YYMMDD
  ... or ...       /ipcs/YYMMDD                 if using IPCS rather than CCD
Filenames are   /vaxdata/ccd_N/YYMMDD/l         ==  $D/l            
                /vaxinst/ccd_N/YYMMDD/ddmmmnnnn ==  $I/ddmmmnnnn

% image $D/DDMMMNNNN min max min max au=y opt=.5 xp=1 yp=1 as=n er=y [\] [p]
% icur                                         Generates cursor for image coords
% igrey                                        Greyscale to HARD plotfile

% ystract IMAGE COL1 COL2 SPEC                 Collapses columns into spectrum
% extract IMAGE ROW1 ROW2 SPEC                 Collapses rows into cross-cut
% splot SPEC wh au lab="" bu=n ha=n            Plot spectrum on SOFT device
% splot SPEC wh au lab="" bu=n ha=n er=n col=r Overlay red spectrum 
% ccur                                         graphics cursor 
% emlt SPEC xs=min xe=max lines=0              FWHM of emission lines
% scross SPEC1 SPEC2 xs=min xe=max rec=n       Cross-correlate two spectra
% istat IM1                                    Statistics on image or spectrum

% isub IM1 IM2 IM3                To subtract im1 - im2 = im3 (or spectra)
% icsub IM1 CONST IM2             To subtract im1 - constant = im2 (or spectra)
Also iadd, icadd, imult, icmulr, idiv, icdiv   Arithmetic
Also irevx, irevy                              Flip image or spectrum

% splot SPEC wh au lab="" bu=y er=y            Open buildfile for overlays
% splot SPEC wh au lab="" bu=y er=n            Overlay in existing buildfile
% bplot soft                                   sENDS buildfile to SOFT screen 
% bplot hard                                   Sends buildfile to HARD plotfile

% lpr -Pvaxps FILE                             --> HPlaserIV in control room
% lpr -Pvaxps2 FILE                            --> HPlaserIV in terminal room
% lpr -Plp FILE                                --> Control room printronix

% wdfits DSTFILE FILE.fits                     Write disk FITS
% tapeo /dev/nrstN                             Output tape
% wifits im=IMAGE bl=1 pos/rew/curr            Write to FITS tape
% tape /dev/nrstN                              Input tape
% fits                                         Read tape

!! to abort a command at parameter input
\\   to accept defaults (UNIX)
Example of procedure: foc

The following procedure called foc will ystract 2 spectra taken as DUMMY CCD exposures, cross-correlate them, printing the pixel shift between them, and plot them in red and blue. The two spectra might be from Hartmann focus tests. foc could then be run on a second pair of frames taken at a different collimator setting, to permit interpolation of the required collimator value. The DUMMY directory has been defined as 'D', as above.

% more foc

ystract $D/$1 100 150 sp=$1f
ystract $D/$2 sp=$2f \\ 
scross $1f $2f xs=1 xe=1024 rec=no 
splot sp=$1f wh=n au lab=foc bu=n ha=n col=r ax er \\ 
splot sp=$2f wh=n au col=b noax noer \\ 

To execute this procedure, type
% chmod u+x foc                     make it executable
% foc IM1 IM2                       e.g. % foc c d
                                    to use /vaxdata/ccd_1/940224/c.dst and d.dst
Similar command procedures can be made for other analyses. For example, the following file will clean the cosmic rays and perform a rudimentary background subtraction from a spectrum. (The exact values for the ystract columns have to be determined for each setup.)
bclean $R/31jan00$1 noauto nbr=0 out=r$1b \\ 
ystract r$1b 10 60 r$1bs1
ystract r$1b 210 250 r$1bs2
iadd r$1bs1 r$1bs2 r$1bs
ystract r$1b 70 200 r$1bo
icmult r$1bs 1.42 r$1bsm
isub r$1bo r$1bsm r$1bos
splot r$1bos wh au col=g \\

UNIX FIGARO figdisp window function keys:

F2  = zoom in
F3  = reset zoom
F4  = zoom out
F5  = help
F6  = print pixel values
F7  = recentre image
F8  = finding chart for display
F9  = exit
F10 = greyscale chart
F11 = print data map
F12 = row plot
F13 = print entire image
F14 = print viewer 
F16 = disable/re-enable keys
F18 = invert greyscale
F19 = FWHM analysis
F20 = column plot

F21 = Toggle histogram equalization.
F27     = Zoom in X coordinates
F29     = Zoom out X coordinates
F33     = Zoom in Y coordinates
F35     = Zoom out Y coordinates
comma   = Decrease number of pixels averaged for a line plot
period  = Increase number of pixels averaged for a line plot
slash   = Reset number of pixels averaged for a line plot

left mouse button = centre point under cursor in main window
middle mouse button = press-drag-release for line plot of data between points
right mouse button = press-drag to manipulate the color LUTs. X position 
  controls the offset, Y position controls the slope.  

(To check key identifications for F21-F35, run  xev  and note the 
declaration for each key press.)



Helen Davies
hdd@aaoepp.aao.gov.au