(ok) -gui TkDefaultFont
(ok) -ps size*parent->getDisplayRatio()
(ok) -saotk $ds9(times) $ds9(helvetica) $ds9(courier)
(  ) -blt $ds9(times) $ds9(helvetica) $ds9(courier)

			run on
compiled on		10.6	10.7	10.8	10.9
10.6 (snowleopard)	yes	yes	yes	yes
10.7 (lion)		no	yes	yes	yes
10.8 (mountainlion)	no	no	yes	yes
10.9 (mavericks)	no	no	yes	yes

Ports:
	porter			MacOSX 10.6 Snowleopard (10.8.0)
	duet			MacOSX 10.7 Lion (11.4.2)
	planck			MacOSX 10.8 Mountainlion (12.5.0)
	bokhara			CentOS-6.x 64bit
	devel13			CentOS-5.x 32bit

Install HEAD:
	linux	shanti	
	  cp -p build/linux/ds9 /romulus/hea1/soft/Linux/i686/saord/bin/.
	linux64	shanti	
	  cp -p build/linux64/ds9 /romulus/hea1/soft/Linux/x86_64/saord/bin/.
	MacOSX 10.5 shanti
	  cp -p build/darwinlion/ds9 /romulus/hea1/soft/saord/Leopard_x86_64/bin/.
	  cp -p build/darwinlion/ds9.zip /romulus/hea1/soft/saord/Leopard_x86_64/bin/.

macports-
  for build
      sudo port install cvs
        (installs autoconfig,automake,pkgconfig also)

  for darwin lion/mountainlion/mavericks (for truetype fonts)
      % sudo port install pkgconfig
      % sudo port install xft2
      % cat > lib/pkgconfig/xft.pc
prefix=/opt/X11
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Xft
Description: X FreeType library
Version: 2.2.0
Requires: xproto, xrender, fontconfig, freetype2
Requires.private: xrender, fontconfig, freetype2
Cflags: -I${includedir}
Libs: -L${libdir} -lXft
      % PKG_CONFIG_PATH=$HOME/lib/pkgconfig:/opt/X11/lib/pkgconfig

Source:
	ast		http://starlink.jach.hawaii.edu/starlink/AST
	wcssubs		ftp://cfa-ftp.harvard.edu/pub/gsc/WCSTools
	funtools	/data/mmti/CVSROOT
	pcc		http://pcc.ludd.ltu.se/
			http://pcc.ludd.ltu.se/ftp/pub/pcc/
			http://pcc.ludd.ltu.se/ftp/pub/pcc-libs/
	tcc		http://bellard.org/tcc/

Build:
	# cvs- back out changes
	cvs update -j 1.5 -j 1.4 foo.c
	# reset sticky tag
	cvs update -A

HTML Comment: <!-- something -->
	
Future:
	Macosx printing
	Win32

	Measure units by redshift
	XPAInfo
	WCS Editor/Astrometry.net
	Documentation/Tutorials
	Catalog
	  To Image/3d cube
	  Editing (add/delete)

	GUI editor Button/Keystroke
	1D SpecFrame

	VO Image Archive
	VO/Chandra Footprint server
	FOV (http://aladin.u-strasbg.fr/java/FOVs.xml)

	Illustrate mode
	Remote Observing
	Non-Model File Browser
	FITS structure viewer
	2D surface plot

List
	-7.3.1

	-7.4
	updgrade to tcl/tk 8.6.2

	-JWST
	  analysis mode (imexamine)
	    spec
	    stats
	    surface
	    fwhm
	  reorder axes
	    data/DHT33_carina.fits
	  block 2d
	  block 3d
	  stack y axis/ (investigate)
	  checkout 2d plot with y 1e17 range

	-MCI
	  macro record/play
	  crosshairs in plot display coord, value
	  wcs editor
	  load ascii 2d/3d

	-other
	  david kaplan issue
	  bringfried cat symbols issue
	  adam ginsburg slice issue
	  -restore from dss saved image

	-saotk fonts (colorbar, panner, frame)
	  Tk_PostscriptFont
	  TK_CONFIG_FONT

	-hv
	  back goes to top of page

	-analysis
	  region histogram
	-TEA
	  saotk
	    rm hardcoded X11INCLUDE
	  merge macosx/win into saotk
	-compile warnings
	  linux
	  macosx
	  cygwin
	-mpeg
	  fix quality
	-update iis.c (mavericks, imexam, unix domain name)
	-unix
	  (tk issue) bargraph black color
	-macosx
	  pcc upgrade to 1.0
	  fix saveas image
	  fix saveas mpeg
	  native print
	    image
	    plot
	    text
	-cygwin
	  segv at startup without window adjust (in panner parser)
	  startup window size changes
	  tiff/jpeg/gif/png load
	  iconify
	  io.sh
	    photo (XPA Stdin/Stdout)
	    nrrd (XPA Stdout)
	    rgbarray (XPA Stdout)
	    cubearray (XPA Stdout)
	    array (XPA Stdout)
	  iraf windows problem (return filename in cygwin format)
	  fonts
	    fk5 unicode (lack of deep .ttf fonts?)
	    marker times italic (lack of .ttf font)

	-WCS add XPH to hpx.c
	-new plot GUI
	  GUI
	    crosshair mode
	    symbol size
	    errorbar cap size
	    bar
	      outline color
 	      width

	-tkblt
	  macosx
	    font size

	  postscript 
	    off dash color
	    text marker background

	  bring *Op.C into class

	  linegraph issues
	    -aspect 2 cause plot offpage
	    -plotborderwidth clips legend
	    -rightmargin moves legend offpage

	  bargraph issues
	    -aspect 2 cause plot offpage
	    -barmode stack cause bars offpage
	    -plotborderwidth clips legend
	    -rightmargin moves legend offpage

	  lineelement issues
	    test styleMap/weights
	    test low/high
	    trace smoothness
	    symbol fill color (black/white fg color issue)
	    element -x/y low/high (no effect)
	    redraw uses normal pen, not activepen
	    -invertxy no errorbarcap

	  barelement issues
	    test styleMap/weights
	    test low/high
	    black/white fg color issue
	    errorbar location weirdness (change x)
	    -invertxy no errorbarcap

	  legend issues
	    -ipadx 20 wrong

	  marker issues
            line/polygon marker -join round/miter/bevel

	  postscript issues
	    ps.tcl
	      configure options
	    text rotation
	      text marker
	      values
	      axis limits %g
	    marker
	      text-too large bg fill
	    off dash color

	  flags RESET/LAYOUT
	  rm get GraphPtr from window
	  cleanup bltGrElemLineSpline.C
	  rm classid
	  rm bltSwitch

	-tkblt 3.1
	  add strip graph
	  add marker image
	  add marker bitmap
	  add symbol image
	  add symbol bitmap

	-TEA
	  cleanup autom4te.com
	  doc
	    tkblt
	    tcliis
	    tclcheckdns
	    tkmpeg
	    saotk
	  test
	    tkblt
	    tcliis
	    tclcheckdns
	    tkmpeg
	    saotk	    

	-unix
	  vfs mount point /tmp?

	-windows-mingw32

	-wcs
	  ast
	    getWCScrpix
	    getWCScrval
	    getWCScdelt
	    getWCSrotation
	    getWCSorientation
	  
	regions dialog default coord sys prefs (Warren)
	3d
	  compass
	  arrows
	  numerics
	  doc
	  fix
	    contours shift in magnifier
	  
	cubes
	  share wcs
	  windows slow delete?

	tests
	  large 64

	***
	clean up includes

	Match/Lock frame
	  physical- scaleimage
	  offer WCSA-Z in menus

	save fits
	  crop
	  Edit Keywords (crop)
	  DETSIZE
	  DETSECT
	  CCDSUM
	  LTMV
	  ATMV
	  DTMV
	  DATASEC
	  CRPIX

	marker analysis- background subtraction
	marker callback/xpa race condition
	Save- ZPX/TNX (PCOUNT?)

	tests
	  smosaic

	Mask- add
	  mosaicimagewfpc2
	  photo

	value to Jy
	    infobox
	    colorbar
	    regions
	      2d plot
	      3d plot
	      statics

	Slice- add
	  mosaicimagewcs
	  mosaicimageiraf
	  mosaicimagewfpc2
	  mosaicwcs
	  mosaiciraf
	  array
	  nrrd

	Fits Sample data needed
	  compress-float/double
	  table
	  wmap
	  mosaicwcs
	  mosaiciraf
	  mosaicwfpc2

	fix
	  fix 3d play/next in wcs (3d-5.fits)
	  compress.sh decam--24--15-g-4_01.fits.fz
	  cleanup frame.C vs frame3d.C
	  crop- recal LTM/V, DATASEC keywords
	  gcc mpeg -O segv's

	  undo UpdateDS9Static
	    file
	    frame
	    zoom
	    analysis

	    nrrd
	      hex
	      ascii
	      bz2
	      wcs

	  compass region issue (Gabrial Bihanin)
	    scale compass with zoom
	    add compass length to dialog
	  ps
	    center vs ll
	    -1 for other
	    pagesize (margins)
	  saveimage chops last line (window)

	  Imexam/FWHM/surface plot (Paul Weissman)
	  scale width of wcs values in infobox (John Davis)
	  3d- segv when start with image

	  mail bag
	    darwin 64/ast issue (extention_11.fits.gz)
	    grid publication bug (Kshitiz Mallick)
	    windows 7 64 bit standard dialog causes crashes (Achim Tappe)
	    windows 7 64 bit drag and drop segv (Wayne Rosing)
	    horz/vert cut across mosaic (Brian)
	    scale parameter dialog (Terry)
	    bin to fit (Diab)
	    windows save jpg (Steve Pravdo)

	  Alexey
	    prefs- turn off major buttons
	    update menu (gui) help pages
	    rgb analysis stats

	  fitsy++
	    map.C change like strm.C (nrrd)
	    rm dataSize_/dataSkip_/dataManage_?

	  bin table- if no TLMIN/MAX, scan data

	  3d 
	    pan problem (IFU)

	  marker analysis
	    bkgd substract

	  catalog
	    match- unique closest
	    match error cols
	    histogram plot

	  marker analysis
	    mosaic
	    rgb
	    3d

	  graphs
	    stacked datasets
	    mosaic
	    rgb
	    3d

	  FFMpeg

	  Radio getValue()?
	    BUNIT (JY/BEAM)
	    BMAJ-major (fwhm)
	    BMIN-minor
	    BPA-angle
	    or
            HISTORY AIPS CLEAN BMAJ=  1.2500E-02 BMIN=  1.2500E-02 BPA=   0.00  
	    take average of 3rd axis/area=JY/BEAM

	  upgrade tkhtml?

	  update install page

	  bin-3rd axis reset after apply
	  3rd axis cut 2d image

	  vo ddt- samp to ds9

	  native plot print
	    win32
	    macosx
	  photo wcs

	  3D other
	    lock frame (pan problem)
	    grids
	      rotate text
	      ps text over grid
	    SIP
	    prefs for AUTOSCAN value
	    keyContext vs context vs currentContext
	    mosaics
	    macros $url() | $image(3d)
	    Magnifier-  bitbit off by .5?
	    magnifier cursor
	    panner/widget blank issue while rotating: only at vp=0,0 and depth=1
	    wcszoom for point regions
	    zoom[0]!=zoom[1]
	    panner arrows (see marker arrows)
	    config instead of forget? (layout vert)
	    special modes
	      +-x frames, updated as current slice moves
	      line cut down 3rd axis-> new image

	  other
	    windows- astAnnul too slow (for large data cubes)
	    analysis: compress fits
	    warp cursor weirdness (framebase)
	    check saveas fits (LTMV?)
	  smooth
	    smooth over crop only
	    use threads
	  regions
	    cleanup- CB procs tcl
	        rm var(proc,distCB), var(proc,editCB)
	        line/projection/ruler
		annulus/ellipse annulus/box annulus
		panda/bpanda/epanda
		vector
		projection
	  drop frametruecolor
	    colormap begin/motion/end? (lock colorbar)
	    rotate begin/motion/end?
	  analysis.sh- add filename tests
	    move filter strings from file.C to fitsimage.C
	    image[ext][sec]
	    table[ext][filter][slicefilter]
	  crop2d
	    fix -crop x y w h wcs galatic arcsec issue
	    GUI cross mosaic edges
	    dialog (for each mosaic)
	  cleanup
	    refreshinfobox
	      clearinfobox
	      clearpixeltable
	      cleargraph
	    updatestatic?
	    tile mode
	      grid axis
	  build pcc for lion

	-structure
	  absolute dir for mount point
	    (alexeys problem with ssh mounted disks, can we use /tmp?)
	    tcl/tk lib
	    encodings
	    help
	    fov
	    source ?.tcl (ds9.tcl)

	  SIGBUS- look for EXC_BAD_ACCESS also

	  -64 bit FITS Fitsy++ fits keywords (test64bit.fits)

	  clean up configure mods (use autoreconf)
	    html
	    tclxml
	    tcllib

	-Bugs

	[ds9|?]parser.Y allow 1e-01" and 1e-01' for vvalue
	toggle frame (with mosaics) infobox blinks out
	iraf lines
	adjust cmap with red bg (seeing white)
	when rebin, update wcs param dialog
	plot
	  xerr yerr problems
	  check for nan
	preserve scale
	bscale/bzero bscale=-1 issue
	Fix updating graphs while rotate/zoom/pan
	Panzoom- update dialog while rotate/zoom/pan
	small pixel problem (Alexander Menshchikov)
	make sure image server dialogs are below when saveas
	bin bin table 3d, smooth, rebin
	rgb, current blue, cut paste regions
	display header mosaic (one line if all the same)

	-Windows

	::ttk::checkbutton vo.tcl (tri state check)
	clip regions
	glob?
	screen aspect ratio
	print dpi (for text)
	variable dashed lines
	  display
	  print
	$ds9 -url 'ftp://sao-ftp/foo.fits'	
	analysis tasks will not abort
	start on other drives than C:/flash drives

	-Analysis

	return which button from xpa analysis message
	ProcessAnalysisCmd- tests/analysis.sh
	group macro expansion
	add/replace mouse button analysis bindings.
	$web(http:chandra-ed.harvard.edu/rebin.html?$XPA_METHOD)
	marker analysis support($region (select))
	sort param variables to fix $sub vs $subimage problem
	check 'open | ' fork/exec?
	$(shell variable) macro

	-Analysis Plot

	sort data when loading user data
	crosshairs with x,y,value display
	x axis- end points with reasonable values
	one/multiple window options
	better bltGraph.pro fix

	-Backup

	enable regions with plot3d set
	masks (per context: filename,color,mark)
        problem alloc/channel/socket/var loads
	  mosaicimage iraf/wfpc2
	  mosaic iraf

	-Binning

	dialog specify buffersize
	dialog specify weight col
	bin from dialog, option to ignore bin center (Diab)
	bin (disregard TDMIN/TDMAX checkbox) Diab
	binning center with bin<1
	DS9_BINKEY
	rm cols restriction or define DS9_FILTER
	bin data cube- auto title
	add file[bin][filter] (depth, function, block, etc)
	binning-- too many updateClip() calls
	why scan each time bin? can we save min/max?
	bin add x:diminsion,y:diminsion to parser (ciao like syntax)

	-Blink

	blink mode with fast flash
	select which frames to blink
	non-modal dialog (simular to ximtool)

        -Catalog

	NonFK5 sky_in sky_out ICRS Comments
	---    ------ ------- ---- --------
	NED    yes    yes     no
	SIMBAD yes    yes     yes
	CDS    yes    yes     no   (no ecl)
	CXC    no     no      no
	SKYBOT no     no      no

	scatter chart for catalogs
	clear/delete frame, close all catalogs
	load catalog via stdin
	delete frame/delete dialog
	new catalog
	delete region/row
	add region/row
	filter local catalog at load

	-Comm
	
	event feedback via xpa/samp

	-Contours

	contour copy/paste? (save in var?)
	dashed for neg
	clip contours to mosaic segment
	clip overlay contours to image boundries

	-Crop
	crop in WCS (extract/resample)

	-Examine
	only works for files
	xpa imexam return frame # (patrick broos)

	-Fits

	gzip/compress/pack- use magic number instead of file ext
	gzip fits in/out (buffer size?)
	hduname support
	TNULLn ascii/binary tables
	FITS compression long long

	-Graphs (Horz/Vert)

	MacOSX print
	Windows print
	postscript print
	set range limits
	don't clip numbers on ends
	large numbers (500000 verse 5e5)

	-GUI

	tcl var for each (like hv)
	  analysis
	  markers

	full frame view (short cut)?

	buttons reorder
	cursor-to dialog
	menus params via shortcuts
	language textvariable
	  color (plot.tcl)
	  dlabel,clabel,dist,system,sky,skyformat
	get panner to generate 'EnterPanner' events during blink
	annotate frames with user specified name
	prefs 2/3 button mouse

	-HV

	meta http-equiv="refresh"
	http://tkhtml.tcl.tk/index.html
	history/clear history
	multipart mime-	push no terminating str
	ftp soft links
	textarea with scrollbars
	print

	-IRAF

	problem with 'display dev$pix 1 select_frame-'
	imexamine problem with frames 10-16

	-Masks

	bin table: block in/out

	-Printing

	Annotate prints with title/footnotes

	-Regions

	line/vector/projection/ruler- coordinates diffs,angle,length
	clip to image
	renderXText- clip to widget
	regions tests for -format/-system/-sky
	projection region- add bin size option
	new copy/paste regions: copy into tcl var (both physical and wcs)
	regions std dialog
	  send/receive samp votable
	votable- composite
	ds9parser-  parse (hh mm ss [+-]dd mm ss)
	projection
	  delete/composite undelete/desolve no update
	  default coordinate systems for plots
	  specify method
	FITS Regions
	  add HDUCLAS1
	  add MFORM1 support
	  add WCS support
	  gz fits
	  use current properties
	XPA/SAMP control over existing regions
	  change colors/properties
	  change default shape sizes
	  return ids when create
	  select last region created
	  groups- new/delete
	xy,saoimage,ciao-- use current shape,color,properties
	Tests
	  point region # pointsize=
	  composite # composite = 1
	  text # textrotate = yes
	mosaic/analysis regions macro for non-wcs

	-Scale
	  Lupton (2004) (STIFF program within the ASTROMATIC package)

	-WCS
	  TAB WCS
	  add RADESYS: FK4-NO-E/GAPPT/SUPERGALACTIC/HELIOECLIPTIC menus
	  solar SOLX/SOLY,HPLN/HPLT,HGLN/HGLT,HRLN/HRLT
	  wcs editor-  astrometry.net

	header	     define	keywords
	-----	     ------	--------
	TAN	     old SCAMP	PVx_y
	TPV	     new SCAMP	PVx_y
	xxx	     generic	PVx_y
	xxx	     autoastrom	QVx_y
	ZPX	     IRAF	WATx_
	TNX	     IRAF	WATx_
	TAN-SIP	     SIP	A_x_y,B_x_y,AP_x_y,BP_x_y,A_ORDER,B_ORDER
		     		AP_ORDER,BP_ORDER,A_DMAX,B_DMAX
	TAN	     SAO Plate	COx_y

	Problem FITS WCS Files
	  wcssubs ast wcslib
	  ------- --- ------
	  COD/COE/COO/COP (bad, yes, yes)
	  HPX (HEALPix) (no, yes, yes)
	  DSS (SAO) (yes, yes, no)
	  TNX (NOAO TAN + params) (yes , yes, no)
	  ZPX (NOAO ZPN + params) (yes , yes, no)
	  TAN---RA-SIP (SIRTF) (yes, yes, no)
	  SCAMP (SAO TAN + PV) (yes, yes(PV->QV), no)
	  TPV (NOAO TAN + PV) (yes, yes(PV->QV), no)
	  AUTOASTROM (xxx + QV) (no, yes, no)
	  WCSDEP (yes, no, no)

	STScI DSS
	  wcen.fits.gz

	OLD SCAMP (PVx_30)
	  ac42227_00_01ww_tnx.fits
	  ngc6819.fits

	TAN+PV (PVx_20)
	  paucam_0_0_t7_0_science.fits

	TAN+ PV2_1=0 PV2_2=0
	  IC2395_ch1_merged.fits
	  IC2395_ch2_merged.fits
	  IC2395_ch3_merged.fits
	  IC2395_ch4_merged.fits
	  SAGE_LMC_MIPS24_E12.fits
	  g180p00r45b120pm.fits
	  a68.fits
	  n132d_s18_7_LL_Cont_15mic.fits

	ZPN+PV (PV2_1,PV2_3,PV2_5)
	  ABELL0586.0750.fits
	  D4.0705.fits
	  EGS1.1193.fits
	  LSSTtest.2124.fits
	  UKIDDS_K_3219_606_17_67_3.fits
	  rcs2_m3.2540.fits

	TNX (WATx_yyy)
	  30s_01.fits
	  cal000277b.fits
	  mscred.fits
	  obj094.fits
	  obj269z.fits
	  westphal_Rs.wcs.fits
        -bad 
	  badTNX.fits.gz

	ZPX (WATx_yyy)
	  E5.3090.fits
	  E5.3075.fits

	TAN-SIP (A_,B_,AP_,BP)
	  sst.fits
	  mos8.fits (no reverse)

	SAO PLT (COx_13)
	  ac.fits
	  crts_short.fits (bad?)

	WCSDEP
	  ngc6819.fits

	HPX
	  wmap_ilc_3yr_v2-HPX.fits

	TAB
	  sparse.fits

	GLON-ZEA
	  South_galactic.fits
	  g000p00r2.fits
	  North_galactic.fits
	-bad
	  SFD_dust_4096_ngp.fits

	RA-CAR
	  CAR_model.fits
	  car_01.fits

	GLON-CAR
	  GLM_00350+0115_mosaic_I4_cutout_14706.fits
	  GLM_03350+0000_mosaic_I1_cutout_10617.fits
	  GP_343.5_+0.0_A.fits
	  fermi_counts_gps_bin_1.00.fits
	  gc_energybin07_fadapt10_smajor030.fits
	  gc_energybin07_fadapt10_smajor100.fits
	  msxmapA-1a.fits
	  msxmapA-2.fits

	  eta.fits
	  rmon_msxmapA.fits
    	  iras_hires_band3.fits
	  msx327p5.fits
	  msxmapA-1.fits
	-old style (linear wcs)
	  Wco_DHT2001.fits
	  total_hi.fits

	xLON/xLAT- bad
	  worldtopo.multi.fits 'TLON-CAR'

	IRAF
	  obj011.fits
	  oct12_096.4.fits

	CROTA1
	  AXJ165420_GAIA.fits

	SKYBOT
	  ggg.fits.gz

Languages:
	Dansk		Allan Hornstrup		allan@dsri.dk
	Español		Manuel Perez Torres	mpereztorres@cfa
	Portuguese	Alberto Krone-Martins	krone@obs.u-bordeaux1.fr
	Japanese	Masahiro Tsujimoto	tsujimot@astro.psu.edu
	Chinese		Junfeng Wang		jwang@head.cfa.harvard.edu
	Chinese		Albert Kong		akong@space.mit.edu
	Français (a-c)	Jean-Baptiste Marquette	marquett@iap.fr
	Français (d-h)	Jean-Francois Sygnet	sygnet@iap.fr
	Français (i-m)	Elaine Fortin 		elaine_fortin@harvard.edu
	Français (n-p)	Anne Lemiere 		alemiere@head.cfa.harvard.edu
	Français *(q-t)	Jean-Francois Sygnet	sygnet@iap.fr
	Français *(u-z)	Ilana Harrus  		imh@milkyway.gsfc.nasa.gov

Notes:
	Types (*no save, **no save,no alloc)
	  fits
	  sfits**
	  rgbimage
	  rgbcube
	  srgbcube**
	  mecube
	  multiframe*
	  mosaicimagewcs
	  mosaicimageiraf*
	  mosaicimagewfpc*
	  mosaicwcs
	  mosaiciraf*
	  smosaicwcs**
	  smosaiciraf**
	  array
	  rgbarray
	  nrrd
	  gif
	  jpeg
	  tiff
	  png

	loadParam(file,type)
	  FITS
	    ARRAY

        loadParam(file,mode)
	  {}
	  {data cube}
	  {mosaic image iraf}
	  {mosaic image}
	  {mosaic image wcs}
	  {mosaic wcs}
	  {mosaic image wfpc2}
	  {rgb image}
	  {rgb cube}
  
        loadParam(load,type)
	  alloc
	  allocgz
	  channel
	  mmap
	  mmapincr
	  smmap
	  shared
	  sshared
	  socket
	  socketgz
	  var

	Fitsy++ Memory modes
		strm
			(alloc)
			allocgz
			channel
			(socket)
			socketgz

		map
			(mmap)
			share
			var

		smap
			smmap
			sshare

		mapincr
			mmapincr


	funtools
		LAUNCH_ROUTINE: V f|F p|P
		FILTER_PTYPE: c

	IRAF Graphcap

	:DD=node!imtool,fifo\:/dev/imt1i\:/dev/imt1o,512,512:tc=iism70:
	:DD=node!imtool,inet\:5137,512,512:tc=iism70:
	:DD=node!imtool,unix\:/tmp/.IMT%d,512,512:tc=iism70:

	IRAF Colors:
		0 = background (white)
		1 - 200 data values (1 lowerlimit, 200 upperlimit)
		201 = cursor (white)

		202 = black
		203 = white
		204 = red
		205 = green
		206 = blue
		207 = yellow
		208 = cyan
		209 = magenta
		210 = coral (255 127 80)
		211 = maroon (176 48 96)
		212 = orange (255 165 0)
		213 = khaki (240 230 140)
		214 = orchid (218 112 214)
		215 = turquoise (64 224 208)
		216 = violet (238 130 238)
		217 = wheat (245 222 179)
		218-254 = reserved for use by other windows
		255 = black (sunview foreground color)

	Word Length

		***i386
		char 1
		short 2
		int 4
		long int 4
		long 4
		long long 8
		void* 4

		***x86_64
		char 1
		short 2
		int 4
		long int 8
		long 8
		long long 8
		void* 8

		***solaris
		char 1
		short 2
		int 4
		long int 4
		long 4
		long long 8
		void* 4

		***solaris64
		char 1
		short 2
		int 4
		long int 8
		long 8
		long long 8
		void* 8

		***ppc
		char 1
		short 2
		int 4
		long int 4
		long 4
		long long 8
		void* 4

		***pcc64
		char 1
		short 2
		int 4
		long int 8
		long 8
		long long 8
		void* 8

	WCS Keywords
		WCSNAME	WCSNAMEa	TWCSn	TWCSna

		CTYPEi	CTYPEia		TCTYPn	TCTYna
		CUNITi	CUNITia		TCUNIn	TCUNna
		CRPIXi	CRPIXia		TCRPXn	TCRPna
		CRVALi	CRVALia		TCRVLn	TCRVna
		CDELTi	CDELTia		TCDLTn	TCDEna
		CROTAi	CROTAia		TCROTn
		PCi_j	PCi_ja		TPn_k	TPn_ka
		CDi_j	CDi_ja		TCn_k	TCn_ka
		PVi_m	PVi_ma		TVn_m	TVn_ma
		PSi_m	PSi_ma		TSn_m	TSn_ma

	  blt3.0 changes
	  -rm'd
	    graph
	      -buffergraph
	      -bufferelements
	      -unmaphiddenelements
	    axis
	      -use
	      GetOp
	      FocusOp
	    element
	      -halo 
	      -interpolate 
	      -along
	      GetOp
	    line element
	      -areaforeground
	      -state
	      symbol
	        bitmap
	        image
	    bar element
	      -stipple
	    pen
	      -type
	      -stipple
	    legend
	      -position @x,y
	      -position .window
	      -titleanchor
	    crosshairs
	      -position
	      -hide
	    marker
	      window
	      image
	      -name
	      GetOp
	    bitmap Marker
	      scale/rotate
	      -state
	    text marker
	      -xpad
	      -ypad
	      -state
	    polygon marker
	      -fillbg
	      -outlinebg
	      -stipple
	      -state
	      -xor
	    line marker
	      -state
	      -xor
	    graph.tcl
	      printkey
	      postscript dialog
	  -add'd
	    graph -searchhalo -searchmode -searchalong
	    legend -x -y
	    crosshairs -x -y

	-tkblt render order
	    ---cache---
	    Legend(MARGIN);
	    AxesGrids
	    Axes
	    AxesLimits
	    Legend(PLOT,UNDER);
	    Markers(UNDER);
	    Elements
	    ActiveElements
	    Legend(PLOT,OVER);
	    ---cache---
	    Markers(OVER);
	    Crosshairs
	    Focus

MACOSX

install_name_tool -change /Library/Frameworks/Tk.framework/Versions/8.6/Tk @executable_path/../Frameworks//Tk.framework/Versions/8.6/Tk aa/Wish.app/Contents/MacOS/Wish
install_name_tool -change /Library/Frameworks/Tcl.framework/Versions/8.6/Tcl @executable_path/../Frameworks//Tcl.framework/Versions/8.6/Tcl aa/Wish.app/Contents/MacOS/Wish

gcc -Os -pipe -fvisibility=hidden      -prebind -headerpad_max_install_names -Wl,-search_paths_first  tkAppInit.o -F/Users/joye/aa/build/tk/Deployment -framework Tk -F/Users/joye/aa/build/tcl/Deployment -framework Tcl  -lpthread -framework CoreFoundation -framework Cocoa -framework Carbon -framework IOKit    -lz  -lpthread -framework CoreFoundation  -sectcreate __TEXT __info_plist Wish-Info.plist -o wish

enum {
  k1MonochromePixelFormat       = 0x00000001, /* 1 bit indexed*/
  k2IndexedPixelFormat          = 0x00000002, /* 2 bit indexed*/
  k4IndexedPixelFormat          = 0x00000004, /* 4 bit indexed*/
  k8IndexedPixelFormat          = 0x00000008, /* 8 bit indexed*/
  k16BE555PixelFormat           = 0x00000010, /* 16 bit BE rgb 555 (Mac)*/
  k24RGBPixelFormat             = 0x00000018, /* 24 bit rgb */
  k32ARGBPixelFormat            = 0x00000020, /* 32 bit argb    (Mac)*/
  k1IndexedGrayPixelFormat      = 0x00000021, /* 1 bit indexed gray*/
  k2IndexedGrayPixelFormat      = 0x00000022, /* 2 bit indexed gray*/
  k4IndexedGrayPixelFormat      = 0x00000024, /* 4 bit indexed gray*/
  k8IndexedGrayPixelFormat      = 0x00000028 /* 8 bit indexed gray*/
};

enum {
  k16LE555PixelFormat           = 'L555', /* 16 bit LE rgb 555 (PC)*/
  k16LE5551PixelFormat          = '5551', /* 16 bit LE rgb 5551*/
  k16BE565PixelFormat           = 'B565', /* 16 bit BE rgb 565*/
  k16LE565PixelFormat           = 'L565', /* 16 bit LE rgb 565*/
  k24BGRPixelFormat             = '24BG', /* 24 bit bgr */
  k32BGRAPixelFormat            = 'BGRA', /* 32 bit bgra    (Matrox)*/
  k32ABGRPixelFormat            = 'ABGR', /* 32 bit abgr    */
  k32RGBAPixelFormat            = 'RGBA', /* 32 bit rgba    */
  kYUVSPixelFormat              = 'yuvs', /* YUV 4:2:2 byte ordering 16-unsigned = 'YUY2'*/
  kYUVUPixelFormat              = 'yuvu', /* YUV 4:2:2 byte ordering 16-signed*/
  kYVU9PixelFormat              = 'YVU9', /* YVU9 Planar    9*/
  kYUV411PixelFormat            = 'Y411', /* YUV 4:1:1 Interleaved  16*/
  kYVYU422PixelFormat           = 'YVYU', /* YVYU 4:2:2 byte ordering   16*/
  kUYVY422PixelFormat           = 'UYVY', /* UYVY 4:2:2 byte ordering   16*/
  kYUV211PixelFormat            = 'Y211', /* YUV 2:1:1 Packed   8*/
  k2vuyPixelFormat              = '2vuy' /* UYVY 4:2:2 byte ordering   16*/
};

AST		David Berry		GPLv2
	http://starlink.jach.hawaii.edu/starlink/AST
BLT		George A Howlett	OpenSource
	www.sourceforge.net/projects/blt/files
CheckDNS	SAO			GPLv2
	http://hea-www.harvard.edu/RD/ds9/
FunTools	SAO			LGPLv2.1
	https://www.cfa.harvard.edu/~john/funtools/
HCompress	Richard White/STScI	OpenSource/NASA	
	http://www.stsci.edu/software/hcompress.html
HTMLWidget	D. Richard Hipp		GPLv2 
	http://www.hwaci.com/drh/
IIS		NOAO			OpenSource/IRAF
PLIO		NOAO			OpenSource/IRAF
RICE		Richard White/STScI	OpenSource/NASA
SAOtk		SAO			GPLv2	
	http://hea-www.harvard.edu/RD/ds9/
Signal_Ext	Michael Schwartz	OpenSource 
	http://www.nyx.net/~mschwart
Tcl	University of California/Sun Microsystems/Scripts	OpenSource 
	http://sourceforge.net/projects/tcl/files/Tcl/
Tcllib	Ajuba Solutions and other parties	OpenSource
	http://tcllib.sourceforge.net/
tclxml	ANU/CSIRO/Zveno Pty Ltd/Explain	OpenSource
	http://www.explain.com.au/
Tk	University of California/Sun Microsystems/Scripts	OpenSource 
	http://sourceforge.net/projects/tcl/files/Tk/
TkCon		Jeffrey Hobbs		OpenSource 
TKIMG		Various Authors		OpenSource	
	http://sourceforge.net/projects/tkimg/
ezMPEG		Ingo Oppermann		GPLv2 
tkmpeg 		SAO			GPLv2	
	http://hea-www.harvard.edu/RD/ds9/
TkTable		Jeffrey Hobbs		GPLv2	
	http://sourceforge.net/projects/tktable/
WCSTools	SAO			LGPLv2.1	
	http://tdc-www.cfa.harvard.edu/wcstools/
xmlrpc		Eric Yeh		GPLv2
xpa		SAO			LGPLv2.1 
	http://hea-www.harvard.edu/RD/ds9/
zlib	Jean-loup Gailly and Mark Adler OpenSource 
	http://zlib.net/
zvfs		Richard Hipp		OpenSource	
	http://www.hwaci.com/drh/

CYGWIN

$ gcc foo.c -o foo
__CYGWIN__

$ gcc -mno-win32 foo.c -o foo
__CYGWIN__

$ gcc -mwin32 foo.c -o foo
WIN32
_WIN32
__WIN32
__WIN32__
__CYGWIN__

$ x86_64-w64-mingw32-gcc foo.c -o foo
WIN32
_WIN32
__WIN32
__WIN32__

