Ports:
	marmite			CentOS-5.5
	bokhara			fc8 64
	luke			solaris 10
	moscow			solaris 8

	cfa255			CentOS-5.5
	chorong			CentOS-5.5
	chakram			RHEL-5.4

Install HEAD:
	solaris	shanti	
	  cp -p build/solaris/ds9 /rom-48/hea0/soft/saord/bin/.
	linux	shanti	
	  cp -p build/linux/ds9 /rom-48/hea1/soft/Linux/i686/saord/bin/.
	linux64	shanti	
	  cp -p build/linux64/ds9 /rom-48/hea1/soft/Linux/x86_64/saord/bin/.
	MacOSX 10.5 shanti
	  cp -p build/darwinleopard/ds9 /rom-48/hea1/soft/saord/Leopard_i386/bin/.	  cp -p build/darwinleopard/ds9.zip /rom-48/hea1/soft/saord/Leopard_i386/bin/.

html2ps
    sudo port install ghostscript
    sudo port install wget
    sudo port install ImageMagick

apple.com:
	http://www.apple.com/downloads/
	Submit Downloads

Source:
	ast		http://www.starlink.ac.uk/~dsb/ast/ast.html#obtaining
	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:
	3d
	background subtraction
	stack images
	New Postscript print model
	Non-Model File Browser
	Illustrate mode
	Reorder axes
	Remote Observing
	Speedup
	TIFF/JPEG/PNG frame support (LoadImage)
	FOV (http://aladin.u-strasbg.fr/java/FOVs.xml)
	Quick Look Tools (Imexamine)
	Analysis plugin
	FITS structure viewer
	2D surface plot

List
	-6.3
	mosaic alignment
	blt-ps fix scale
	cropping
	ellipse3d
	point3d
	bin (disregard TDMIN/TDMAX checkbox) Diab
	clear/delete frame, close all catalogs
	update tkimg 1.4
	  shared?

	contour copy/paste? (save in var?)
	new copy/paste regions: copy into tcl var (both physical and wcs)

	gzip fits in/out (buffer size?)

	x11 vs ps fonts
	  macosx
	    grid
	    markers
	    colorbar
	  win32
	    grid
	    markers
	    colorbar

	buttons-  auto img for colorbars

	windows 7 cygwin issue

	  macosx print
	    grid
	    colorbar base/grid
	    marker
	    horz graph
	    plot
	  win32 print
	    grid
	    colorbar base/grid
	    marker
	    horz graph
	    plot

	chandra foot-print server

	buttons
	  reorder
	  figures for regions

	layout- use panels
	ttk::buttons

	[ds9|?]parser.Y
	  allow 1e-01" and 1e-01' for vvalue

	no must have dialogs
	  contour

	prefs switch to kill second regions dialog

	tcl/tk 8.5 issues
	  mosaic gap issue (bin by 2?)
	  toggle frame (with mosaics) infobox blinks out

	  macosx
	    tk
	      generic/tkEvent
	      macosx/tkMacOSXDraw.c blt w==0
	      xlib/X11/Xlib.h
	    blt

	  info (ra/dec, long/lat, {}/{}) (causes windows updates)
	  windows
	  solaris
	  macosx

	wcs editor-  astrometry.net

	colorbar- New colormaps
	marker stats
	aqua restore disabled button problem

	fits events filtered stats
	get fits events (binned and filtered)

	tcl var for each (like hv)
	  analysis
	  projection plot?
	  projection3d plot?
	  dialog?

	3d
	  X11 3d bad error

	  color clipping problem
	  pan
	    pan via bbox
	  magnifier
	  cleanup
	    Matrix panner to framebase.h
	    Matrix magnifier to framebase.h
	  contours
	  markers
	  grid
	  crosshair
	  magnifier cursor
	  scale on z axis
	  varible z buffer depth
	  blend alpha function (transparency)
	  mosaics
	  smooth
	  bg/nan
	  panner
	    update panner during rotation (2d)
	    calcpanzoom (2d)
	    render during rotation (2d)
	  rotate
	  align wcs
	  orientation
	  match data
	  framebase 
	    cleanup (frcommand.C, etc)
	    complete rotate/pan (simular to 3d)

	New colormaps
	png lib
	image subsection
	mask event files
	regions tests for -format/-system/-sky
	projection region- add bin size option

	-Bugs

	bscale/bzero bscale=-1 issue
	cygwin/iraf windows problem (return filename in cygwin format)
	match frame wcs (same image)
	Fix updating graphs while rotate/zoom/pan
	Panzoom- update dialog while rotate/zoom/pan
	small pixel problem (Alexander Menshchikov)
	regions, (ellipse/box/line) very elongated, text is too far from box
	make sure image server dialogs are below when saveas
	bin bin table 3d, smooth, rebin
	rgb, current blue, cut paste regions
	verify template wcs0 (img-32.fits)
	display header mosaic (one line if all the same)

	-MacOSX

	drag-out image,text
	Alex Menshchikov: arrow keys for menus MacOSX 
	tearoff menus
	load contour dialog (focus on ok after menu change)
	drawText
	  symbol font encoding issues
	  calc width/height for position

	-Windows

	variable dashed lines
	  display
	  print
	$ds9 -url 'ftp://sao-ftp/foo.fits'	
	analysis tasks will not abort
	start on other drives than C:
	start on 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

	plots
	  delete plot windows at backup startup
	wcs replace/append
	masks (per context: filename,color,mark)
	problem mmap loads
	  mosaic iraf
	  mosaic wcs
	  multiple extension fits data cube
        problem alloc/channel/socket/var loads
	  multiple extension fits data cube
	  mosaic image iraf/wcs/wfpc2
	  mosaic iraf/wcs
	  rgb image
	  rgb cube

	-Binning

	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?
	add file[bin][filter] (depth, function, block, type?, etc)
	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

	load catalog via stdin
	delete frame/delete dialog
	new catalog
	delete region/row
	add region/row
	filter local catalog at load

	-Colorbar

	SAO color parser (no 1024 limit)
	edit

	-Comm
	
	event feedback via xpa/samp

	-Contours

	dashed for neg
	clip contours to mosaic segment
	clip overlay contours to image boundries

	-Examine

	xpa imexam return frame # (patrick broos)

	-Fits

	DataCube- load by slice
	gzip/compress/pack- use magic number instead of file ext
	reorder x/y/z data cube
	cfitsio changes
	  cfitsio3.09/fpack1.0
	  plio
	hduname support
	64 bit FITS Fitsy++
	  fits keywords (test64bit.fits)
	TNULLn ascii/binary tables
	FITS compression long long
	fix- display headers for mult ext cube

	-Funtools

	config --enable-mainlib --enable-shared
	make; make tclfun

	-Graphs (Horz/Vert)

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

	-GUI

	menus params via shortcuts
	language textvariable
	  color (plot.tcl)
	  dlabel,clabel,dist,system,sky,skyformat
	lock frames or multiple current(frame)'s
	"Load As..." menu for load url
	get panner to generate 'EnterPanner' events during blink
	annotate frames with user specified name
	prefs 2/3 button mouse

	-HV

	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-'
	  may have to upgrade iis code
	imexamine problem with frames 10-16

	-Masks

	bit wise
	xpa/commandline (syntax change?)
	bin table: block in/out

	-Pixel Table

	(unlimited) size from resize window

	-Printing

	full size/full resolution
	Annotate prints with title/footnotes
	PS to PDF for non-MacOS users

	-Regions

	regions std dialog
	  send/receive samp votable
	votable
	  composite
	ds9parser-
	  don't create region if wcs2pix fails
	  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

	-SaveAs

	full size/full resolution
	fits create photo?
	theora/vp3/ogg movie support

	-Scale

	lupton 2001

Problem FITS Files
	GLON/GLAT Issues
	  ZEA
	    SFD_dust_4096_ngp.fits / 'GLON-ZEA' / FK5 align bad
	    North_galactic.fits / 'GLON-ZEA' / bad Galactic grid align

	  CAR
	    -crpix off image, bad pix->wcs0->pix
	    eta.fits / 'GLON-CAR' / FK5 align bad, LONPOLE=0
	    msx327p5.fits / 'GLON-CAR' / FK5 align bad, LONPOLE=0
	    msxmapA-1.fits / 'GLON-CAR' / FK5 align bad, LONPOLE=0
	    rmon_msxmapA.fits / 'GLON-CAR' / FK5 align bad, LONPOLE=0
	    car_02.fits 'RA---CAR' / GALACTIC align bad, ?

	    -bad
	    ken_new7.fits / 'RA---CAR' / bad grid for FK5 and Galactic
	    sn2004eb-car.fits / 'RA---CAR' / WCS skewed
	    total_hi.fits / 'GLON-CAR' / bad grid for FK5 and Galactic

	    worldtopo.multi.fits / 'TLON-CAR' / no grid

	COD/COE/COO/COP
	  1904-66_COD.fits	COD
	  1904-66_COE.fits	COE
	  1904-66_COO.fits	COO
	  1904-66_COP.fits	COP
	  wfi_b_preview.fits	COE	bad grid

	ZPN
	  DSS_ZPN.fits bad grid

	IRAF
	  harold.fits / Bad grid
	  oct12_096.4.fits / Bad grid

	CROTA1
	  AXJ165420_GAIA.fits / bad rotation

Languages:
	Dansk		Allan Hornstrup		allan@dsri.dk
	Espaol		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
	Franais (a-c)	Jean-Baptiste Marquette	marquett@iap.fr
	Franais (d-h)	Jean-Francois Sygnet	sygnet@iap.fr
	Franais (i-m)	Elaine Fortin 		elaine_fortin@harvard.edu
	Franais (n-p)	Anne Lemiere 		alemiere@head.cfa.harvard.edu
	Franais *(q-t)	Jean-Francois Sygnet	sygnet@iap.fr
	Franais *(u-z)	Ilana Harrus  		imh@milkyway.gsfc.nasa.gov

Notes:
	fonts
	  render/print/ps
	    linux render native, PS base
	    macsox render native, print native, PS base
	    win32 render native, print native, PS base

	  where
	    ds9: TkDefaultFont
	    horz/vert graph: TkDefaultFont
	    scale dialog: TkDefaultFont
	    hv: hv(font)
	    tktable: TkDefaultFont
	    panner: ds9(helvetica)

	    plot: ap(titlefont)/ap(numlabfont)/ap(textlabfont)
	    colorbar: colorbar(font)
	    grid: opts= titlefont/numlabfont/textlabfont
	    marker: str

	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:
		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

MACOSX

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*/
};

