File: notes.txt

package info (click to toggle)
saods9 7.3.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,044 kB
  • ctags: 21,414
  • sloc: cpp: 66,406; tcl: 60,491; ansic: 19,507; sh: 9,996; xml: 1,375; makefile: 892; perl: 68
file content (1247 lines) | stat: -rw-r--r-- 26,909 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
(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
	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:
	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__