tvellips (Aug2004) | rjtools | tvellips (Aug2004) |
When 'calconly = yes', this task only computes the ellipses and stores them in 'calcfil' in one of three formats ("basic", "full" or "tvmark"), but does not display the results. If 'calconly = no' but 'calcfil' is specified, the computed ellipses are not only displayed but also stored.
If 'xcen' and 'ycen' are both INDEF upon input, the center pixel in the current image or image section is taken as the center for the ellipses. If 'zlow' and/or 'zhigh' are set to INDEF while 'calconly = no', auto scaling is used when displaying the image (see task 'rjtools.xdisplay').
The colors in comma-separated list 'color', used when overlaying the ellipses on the image display, are encoded numerically as in task 'tv.tvmark', with 0--200 representing grey levels between black and white and 202--209 representing display graphics colors (202=black, 203=white, 204=red, 205=green, 206=blue, 207=yellow, 208=cyan, and 209=magenta). If more radii than colors are specified, the last color specified is used for the remaining ellipses.
rj> tvellips N3795B.fits[128:384,128:384] xcen=257.6 ycen=256.4 \
>>> ellipt=0.7391 posang=-37 drad="25.63,124.08" color="205,206"
2. Same as the above example, but now store the resulting ellipses in output file "N3795B.ellips" in format "full" and with the image name prepended to each pixel position on the ellipses:
rj> tvellips N3795B.fits[128:384,128:384] xcen=257.6 ycen=256.4 \
>>> ellipt=0.7391 posang=-37 drad="25.63,124.08" color="205,206" \
>>> calcfil=".ellips" calcfmt="full" calcpid=yes rj> type N3795B.ellips | page N3795B.fits[278:278,241:241] N3795B.fits[278:278,242:242] N3795B.fits[278:278,243:243] N3795B.fits[278:278,244:244] N3795B.fits[278:278,245:245] N3795B.fits[277:277,245:245] N3795B.fits[277:277,246:246] N3795B.fits[277:277,247:247] N3795B.fits[276:276,247:247] N3795B.fits[276:276,248:248]...
3. Had we chosen format "tvmark" in the example above, the output file would look as follows:
278.07 240.98 101 :color 205 278.07 240.98 101 . 278.21 241.19 101 s 278.32 241.44 101 s 278.40 241.70 101 s 278.45 241.99 101 s 278.46 242.29 101 s 278.45 242.62 101 s 278.40 242.97 101 s 278.32 243.34 101 s...
and in this case the ellipses may be overlayed at a later time using 'tvmark':
cl> tvmark (1, "", commands="N3795B.ellips")