Ximage
Example scripts

General Plotting

Colors

  • Brightness image
     
    !
    !  Brightness
    !
    !  This script is intended only for static-color devices, such as 
    !  TrueColor /XW.
    !
    read/xpi=514/ypi=500/size=-8 h2321n58.xib
    smooth
    lev/num=32
    vie 3x1
    cct/bri=0.4/set bluyel
    disp
    vplab/cur/font=rom "Bright=0.4"
    scale/cur/csize=0
    cct/bri=0.5/set
    disp
    vplab/cur/font=rom "Bright=0.5"
    scale/cur/csize=0
    cct/bri=0.6/set
    disp
    vplab/cur/font=rom "Bright=0.6"
    scale/cur/csize=0
    
    
  • Constrast image
     
    !
    !  Contrast
    !
    !  This script is intended only for static-color devices, such as 
    !  TrueColor /XW.
    !
    read/xpi=514/ypi=500/size=-8 h2321n58.xib
    smooth
    lev/num=32
    vie 3x1
    cct/con=0.8/set bluyel
    disp
    vplab/cur/font=rom "Constrast=0.8"
    scale/cur/csize=0
    cct/con=1.0/set
    disp
    vplab/cur/font=rom "Constrast=1.0"
    scale/cur/csize=0
    cct/con=1.2/set
    disp
    vplab/cur/font=rom "Constrast=1.2"
    scale/cur/csize=0
    
    
  • Reversed image
     
    !
    !  Reversed Color Table
    !
    !  This script is intended only for static-color devices, such as 
    !  TrueColor /XW.
    !
    read/xpi=514/ypi=500/size=-8 h2321n58.xib
    smooth
    lev/num=32
    vie 2x1
    cct/set bluyel
    disp
    vplab/cur/font=rom "Bluyel Table: Normal"
    scale/cur/csize=0
    cct/rev/set bluyel
    disp
    vplab/cur/font=rom "Bluyel Table: Reversed"
    scale/cur/csize=0
    
    

Scaling

  • Scaling image
     
    !
    !  Image Scalings
    !
    vie 2x2
    read/size=300/xp=4000/yp=3970 smtha2142.img
    lev/num=32
    cct/set blue4
    disp
    vplab/font=rom/csize=1.0/cur "Histogram Equalization"
    disp/lin
    vplab/font=rom/csize=1.0/cur "Linear Scaling"
    disp/log
    vplab/font=rom/csize=1.0/cur/bot "Log Scaling"
    disp/sqrt
    vplab/font=rom/csize=1.0/cur/bot "Square-root Scaling"
    
    

Number of Levels

  • Levels image
     
    !
    !  Number of Levels (16 vs. 64)
    !
    !  This script is intended only for static-color devices, such as 
    !  TrueColor /XW.
    !
    read/size=300/xp=4000/yp=3970 smtha2142.img
    vie 2x2
    cct/set spectrum
    disp/lin
    vplab/cur/csize=1/font=rom "Levels=16"
    vplab/left/cur/csize=1/font=rom "Linear"
    lev/num=64 
    disp/lin
    vplab/cur/csize=1/font=rom "Levels=64"
    lev/num=16
    disp
    vplab/left/cur/csize=1/font=rom "Histogram Equalization"
    scale/csize=0/cur
    lev/num=64 
    disp
    scale/csize=0/cur
    
    

Viewports

  • Viewport configuration image
     
    !
    !  Show behavior of DISPLAY and CONTOUR under viewport configuration 
    !
    read/size=300/xp=4000/yp=3970 smtha2142.img
    vie 3x1
    cct/set spectrum
    disp/lin
    vplab/cur/csize=1/font=rom "DISPLAY"
    con/lin/first=2
    vplab/cur/csize=1/font=rom "CONTOUR"
    disp/lin
    con/lin/over/first=2
    vplab/cur/csize=1/font=rom "DISPLAY, CONTOUR/OVERLAY"
    
    

Labelling

  • Labelling image
     
    !
    !  Labelling example
    !
    read casacha.fits
    cct/set blue4
    smooth/sig=1
    level/num=32
    disp/log/left
    title " " 
    title/low " "
    disp/log/right/over/noframe
    vplabel/top/mar=-1.5/just=left/pos=0.05/font=rom "Chandra"
    vplabel/bot/just=right/font=rom "CAS A"
    label/symbol=24/xp=3811/yp=4000/color=7/csize=1/font=rom "Could it be?"
    scale
    
    

Ximage Home Page Xanadu Home Page Xanadu ftp site

Please send reports of errors to : xanprob@athena.gsfc.nasa.gov

HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public

Last modified: Friday, 18-May-2007 16:32:03 EDT