-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommand.sh
More file actions
executable file
·3248 lines (2841 loc) · 67.7 KB
/
Copy pathcommand.sh
File metadata and controls
executable file
·3248 lines (2841 loc) · 67.7 KB
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
echo "Command Line Options Tests"
initit () {
echo "Testing $1"
unset opt
}
testit () {
echo "$1"
opt="$opt $1 -sleep 0"
}
doit () {
eval ds9 -title DS9Test -zscale fits/img.fits "$opt" -exit
echo "PASSED"
echo ""
if [ $slow = "1" ]; then
sleep 1
fi
}
echo
echo "*** command.sh ***"
#delay=.5
delay=0
# must be invoked
# -private
#2mass
#vo
# not tested
# -geometry
# --help
# -visual
# slow down?
slow=0
if [ "$1" = "slow" ]; then
slow=1
shift
fi
tt="2mass"
if [ "$1" = "$tt" ]; then
initit "$tt"
testit "-2mass open"
testit "-2mass close"
testit "-2mass survey h"
testit "-2mass size 30 30 arcsec"
testit "-2mass save no"
testit "-2mass frame new"
testit "-2mass update frame"
testit "-2mass m51"
testit "-2mass name m51"
testit "-2mass name clear"
testit "-2mass 13:29:52.37 +47:11:40.8"
# backward compatibility
testit "-2mass coord 13:29:52.37 +47:11:40.8 sexagesimal"
testit "-2mass update frame"
testit "-mode crosshair"
testit "-2mass update crosshair"
testit "-2mass close"
testit "-mode none"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
doit
fi
tt="3d"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-3d open"
testit "-3d close"
testit "-3d"
testit "-3d view 45 30"
testit "-3d az 45"
testit "-3d el 30"
testit "-3d scale 5"
testit "-3d method mip"
testit "-3d background azimuth"
testit "-3d border yes"
testit "-3d border color red"
testit "-3d compass yes"
testit "-3d compass color red"
testit "-3d highlite yes"
testit "-3d highlite color red"
testit "-3d match"
testit "-3d lock"
testit "-3d lock no"
testit "-frame delete"
testit "-3d close"
testit "-cube close"
doit
fi
tt="about"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-about"
doit
fi
tt="align"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-align"
doit
fi
tt="analysis"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-analysis clear"
testit "-analysis analysis/analysis.ans"
testit "-analysis 0"
testit "-analysis task 1"
testit "-analysis task 'Basic Help'"
testit "-analysis clear"
testit "-analysis load analysis/analysis.ans"
testit "-analysis clear load analysis/analysis.ans"
testit "-analysis clear"
#testit "-analysis message 'This is a message'"
testit "-analysis text 'This is text'"
doit
fi
tt="array"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new"
testit "-array array/float_big.arr[dim=256,bitpix=-32,endian=big]"
testit "-array -mask array/float_big.arr[dim=256,bitpix=-32,endian=big] -nomask"
testit "-frame delete"
testit "-rgb close"
doit
fi
tt="asinh"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-asinh"
doit
fi
# backward compatibility prefs
tt="bg"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt/background"
testit "-background red"
testit "-background white"
doit
fi
tt="bin"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new -fits fits/table.fits"
testit "-single"
testit "-bin open"
testit "-bin factor 4"
testit "-bin factor 8 8"
testit "-scale log"
testit "-scale minmax"
testit "-bin buffersize 1024"
testit "-bin filter 'circle(4096,4096,200)'"
testit "-bin filter clear"
testit "-bin cols rawx rawy"
testit "-bin about center"
testit "-bin colsz x y pha"
testit "-bin depth 10"
testit "-bin about 4096 4096"
testit "-bin depth 1"
testit "-bin function sum"
testit "-bin in"
testit "-bin out"
testit "-bin to fit"
testit "-bin match"
testit "-bin lock yes"
testit "-bin lock no"
testit "-bin close"
testit "-frame delete"
doit
fi
tt="blink"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new"
testit "-blink"
testit "-blink yes"
testit "-blink interval .5"
testit "-single"
testit "-frame first"
testit "-frame next"
doit
fi
tt="block"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-block open"
testit "-block 4"
testit "-block 8 8"
testit "-block to 4"
testit "-block to 8 8"
testit "-block in"
testit "-block out"
testit "-block to fit"
testit "-block to 1"
testit "-block match"
testit "-block lock yes"
testit "-block lock no"
testit "-block close"
doit
fi
tt="blue"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new rgb"
testit "-blue"
testit "-rgb close"
doit
fi
tt="catalog"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt/cat"
testit "-catalog sao"
testit "-catalog cds 2mass"
testit "-catalog current sao"
testit "-catalog clear"
testit "-catalog close"
testit "-catalog clear"
testit "-catalog close"
testit "-catalog new"
testit "-catalog close"
# parse error if followed by another command
#testit "-catalog"
testit "-catalog cds 'I/284'"
testit "-catalog clear"
testit "-catalog close"
testit "-catalog cds 2mass"
testit "-catalog save foo.xml"
testit "-catalog load foo.xml"
testit "-catalog clear"
testit "-catalog close"
testit "-catalog cds 2mass"
testit "-catalog export rdb foo.rdb"
testit "-catalog export tsv foo.tsv"
testit "-catalog import rdb foo.rdb"
testit "-catalog import tsv foo.tsv"
testit "-catalog clear"
testit "-catalog close"
testit "-catalog clear"
testit "-catalog close"
testit "-catalog clear"
testit "-catalog close"
testit "-frame new"
testit "-fits catfits/acisf00635N004_evt2.fits.gz"
testit "-catalog import fits catfits/cellout.fits"
testit "-catalog clear"
testit "-catalog close"
testit "-frame delete"
testit "-catalog cds 2mass"
testit "-catalog plot '\$Jmag' '\$Hmag' '\$e_Jmag' '\$e_Hmag'"
testit "-catalog symbol condition '\$Jmag>15'"
testit "-catalog symbol shape 'boxcircle point'"
testit "-catalog symbol color red"
testit "-catalog symbol condition ''"
testit "-catalog symbol shape text"
testit "-catalog symbol font times"
testit "-catalog symbol fontsize 14"
testit "-catalog symbol fontweight bold"
testit "-catalog symbol fontslant italic"
# backward compatibility
testit "-catalog symbol fontstyle italic"
testit "-catalog symbol add"
testit "-catalog symbol remove"
testit "-catalog symbol load aux/ds9.sym"
testit "-catalog symbol save foo.sym"
testit "-catalog name m51"
testit "-catalog coordinate 202.48 47.21 fk5"
# backward compatibility
testit "-catalog 202.48 47.21 fk5"
testit "-catalog system wcs"
testit "-catalog sky fk5"
testit "-catalog skyformat degrees"
testit "-catalog radius 22 arcmin"
# backward compatibility
testit "-catalog size 20 24 arcmin"
testit "-catalog retrieve"
testit "-catalog regions"
testit "-region delete all"
testit "-catalog filter '\$Jmag>15'"
testit "-catalog filter load aux/cat.flt"
testit "-catalog retrieve"
testit "-catalog cancel"
#testit "-catalog print"
testit "-catalog server sao"
testit "-catalog sort 'Jmag' incr"
testit "-catalog maxrows 3000"
testit "-catalog allcols"
testit "-catalog allrows"
testit "-catalog ra 'RAJ2000'"
testit "-catalog dec 'DEJ2000'"
testit "-catalog psystem wcs"
testit "-catalog psky fk5"
# backward compatibility
testit "-catalog hide"
testit "-catalog show yes"
testit "-catalog panto no"
testit "-catalog edit yes"
testit "-catalog location 400"
testit "-catalog header"
testit "-catalog clear"
testit "-catalog close"
testit "-catalog 2mass"
testit "-catalog xmm"
testit "-catalog match function 1and2"
testit "-catalog match error 2 arcsec"
testit "-catalog match return 1only"
testit "-catalog match unique no"
testit "-catalog match 2mass xmm"
# parse error if followed by another command
#testit "-catalog match"
#testit "-catalog clear"
#testit "-catalog close"
testit "-catalog clear"
testit "-catalog close"
testit "-catalog clear"
testit "-catalog close"
testit "-catalog clear"
testit "-catalog close"
doit
fi
tt="cd"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-cd ."
doit
fi
tt="cmap"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-cmap open"
testit "-cmap Heat"
testit "-cmap load aux/ds9.sao"
# backward compatibility
testit "-cmap file aux/ds9.sao"
testit "-cmap save foo.sao"
testit "-cmap invert yes"
testit "-cmap invert no"
testit "-invert"
testit "-cmap 5 .2"
# backward compatibility
testit "-cmap value 5 .2"
# backward compatibility
testit "-cmap match"
# backward compatibility
testit "-cmap lock yes"
# backward compatibility
testit "-cmap lock no"
testit "-cmap tag load aux/ds9.tag"
testit "-cmap tag save foo.tag"
testit "-cmap tag delete"
testit "-cmap Grey"
testit "-cmap close"
doit
fi
tt="colorbar"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-colorbar no"
testit "-colorbar yes"
testit "-colorbar vertical"
testit "-colorbar horizontal"
# backward compatibility
testit "-colorbar orientation horizontal"
testit "-colorbar numerics no"
testit "-colorbar numerics yes"
testit "-colorbar space value"
testit "-colorbar space distance"
testit "-colorbar font times"
testit "-colorbar fontsize 30"
testit "-colorbar fontweight bold"
testit "-colorbar fontslant italic"
# backward compatibility
testit "-colorbar fontstyle italic"
testit "-colorbar size 30"
testit "-colorbar width 0.5"
testit "-colorbar center 1"
testit "-colorbar ticks 9"
testit "-colorbar match"
testit "-colorbar lock yes"
testit "-colorbar lock no"
testit "-colorbar font helvetica"
testit "-colorbar fontsize 10"
testit "-colorbar fontweight normal"
testit "-colorbar fontslant roman"
testit "-colorbar size 20"
testit "-colorbar size 11"
testit "-colorbar width 1"
testit "-colorbar center 0.5"
doit
fi
tt="console"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-console"
doit
fi
tt="contour"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt/contours"
testit "-contour yes"
testit "-contour open"
# load/save
testit "-contour clear"
# backward compatibility
testit "-contour load aux/ds9.con wcs fk5 red 2 yes"
#
testit "-contour clear"
testit "-contour load aux/ds9.ctr"
testit "-contour save foo.con"
testit "-contour save foo.con wcs fk5"
# paste
testit "-contour clear"
testit "-frame new"
testit "-fits fits/img.fits"
testit "-tile"
testit "-contour yes"
testit "-contour copy"
testit "-frame first"
testit "-contour clear"
testit "-contour paste"
testit "-contour paste wcs red 2 yes"
testit "-contour clear"
testit "-contour paste"
testit "-frame next"
testit "-frame delete"
testit "-contour clear"
testit "-contour load levels aux/ds9.ctr"
# backward compatibility
testit "-contour loadlevels aux/ds9.ctr"
testit "-contour clear"
# backward compatibility
testit "-contour loadlevels aux/ds9.lev"
testit "-contour save levels foo.lev"
# backward compatibility
testit "-contour savelevels foo.lev"
testit "-contour clear"
testit "-contour yes"
testit "-contour convert"
testit "-region delete all"
testit "-contour clear"
testit "-contour yes"
testit "-contour color blue"
testit "-contour width 2"
testit "-contour smooth 5"
testit "-contour method block"
testit "-contour nlevels 10"
testit "-contour width 2"
testit "-contour scale sqrt"
testit "-contour log exp 1000"
testit "-contour mode zscale"
testit "-contour scope local"
testit "-contour limits 1 100"
testit "-contour levels 1 10 100 1000"
testit "-contour clear"
testit "-contour close"
doit
fi
tt="crop"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-mode crop"
testit "-crop open"
testit "-crop 978 970 356 308"
testit "-crop 978 970 356 308 physical"
testit "-crop 202.470451 47.19394108 0.0097 0.0084 wcs"
testit "-crop 202.470451 47.19394108 35.279606 30.522805 wcs arcsec"
testit "-crop 202.470451 47.19394108 0.0097 0.0084 fk5"
testit "-crop 202.470451 47.19394108 35.279606 30.522805 fk5 arcsec"
testit "-crop 202.470451 47.19394108 0.0097 0.0084 wcs fk5"
testit "-crop 202.470451 47.19394108 35.279606 30.522805 wcs fk5 arcsec"
testit "-crop 13:29:52.908 +47:11:38.19 0.0097 0.0084"
testit "-crop 13:29:52.908 +47:11:38.19 0.0097 0.0084 wcs"
testit "-crop 13:29:52.908 +47:11:38.19 35.279606 30.522805 wcs arcsec"
testit "-crop 13:29:52.908 +47:11:38.19 0.0097 0.0084 fk5"
testit "-crop 13:29:52.908 +47:11:38.19 35.279606 30.522805 fk5 arcsec"
testit "-crop 13:29:52.908 +47:11:38.19 0.0097 0.0084 wcs fk5"
testit "-crop 13:29:52.908 +47:11:38.19 35.279606 30.522805 wcs fk5 arcsec"
testit "-crop reset"
testit "-3d"
testit "-fits data/3d.fits"
testit "-3d vp 45 30"
testit "-crop 3d 25 75"
testit "-crop reset"
testit "-crop match wcs"
testit "-crop lock wcs"
testit "-crop lock none"
testit "-frame delete"
testit "-mode none"
testit "-crop close"
testit "-3d close"
testit "-cube close"
doit
fi
tt="crosshair"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-mode crosshair"
testit "-crosshair 978 970"
testit "-crosshair 978 970 physical"
testit "-crosshair 202.470451 47.19394108 wcs"
testit "-crosshair 202.470451 47.19394108 fk5"
testit "-crosshair 202.470451 47.19394108 wcs fk5"
testit "-crosshair 13:29:52.908 +47:11:38.19"
testit "-crosshair 13:29:52.908 +47:11:38.19 wcs"
testit "-crosshair 13:29:52.908 +47:11:38.19 fk5"
testit "-crosshair 13:29:52.908 +47:11:38.19 wcs fk5"
testit "-crosshair match wcs"
testit "-crosshair lock wcs"
testit "-crosshair lock none"
testit "-mode none"
doit
fi
tt="cube"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt/datacube"
testit "-cube open"
testit "-cube close"
testit "-frame new -fits data/3d.fits"
testit "-cube 2"
testit "-cube interval .5"
testit "-cube axis 3"
testit "-cube play"
testit "-cube stop"
testit "-cube match wcs"
testit "-cube lock wcs"
testit "-cube lock none"
testit "-cube order 321"
testit "-cube order 123"
testit "-cube axes lock yes"
testit "-cube axes lock no"
testit "-frame delete"
testit "-3d close"
testit "-cube close"
doit
fi
tt="cursor"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-mode crosshair"
testit "-cursor 10 10"
testit "-mode none"
doit
fi
#~ tt="dsssao"
#~ if [ "$1" = "$tt" -o -z "$1" ]; then
#~ initit "$tt/dss"
#~ testit "-dsssao open"
#~ testit "-dsssao close"
#~ testit "-dsssao size 30 30 arcsec"
#~ testit "-dsssao save no"
#~ testit "-dsssao frame new"
#~ testit "-dsssao update frame"
#~ testit "-dsssao m51"
#~ testit "-dsssao name m51"
#~ testit "-dsssao name clear"
#~ testit "-dsssao 13:29:52.37 +47:11:40.8"
#~ # backward compatibility
#~ testit "-dsssao coord 13:29:52.37 +47:11:40.8 sexagesimal"
#~ testit "-dsssao update frame"
#~ testit "-mode crosshair"
#~ testit "-dsssao update crosshair"
#~ testit "-dsssao close"
#~ testit "-mode none"
#~ testit "-frame delete"
#~ testit "-frame delete"
#~ testit "-frame delete"
#~ testit "-frame delete"
#~ testit "-frame delete"
#~ testit "-frame delete"
#~ testit "-frame delete"
#~ doit
#~ fi
tt="dsseso"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-dsseso open"
testit "-dsseso close"
testit "-dsseso survey DSS1"
testit "-dsseso size 30 30 arcsec"
testit "-dsseso save no"
testit "-dsseso frame new"
testit "-dsseso update frame"
testit "-dsseso m51"
testit "-dsseso name m51"
testit "-dsseso name clear"
testit "-dsseso 13:29:52.37 +47:11:40.8"
# backward compatibility
testit "-dsseso coord 13:29:52.37 +47:11:40.8 sexagesimal"
testit "-dsseso update frame"
testit "-mode crosshair"
testit "-dsseso update crosshair"
testit "-dsseso close"
testit "-mode none"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
doit
fi
tt="dssstsci"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-dssstsci open"
testit "-dssstsci close"
testit "-dssstsci survey all"
testit "-dssstsci size 30 30 arcsec"
testit "-dssstsci save no"
testit "-dssstsci frame new"
testit "-dssstsci update frame"
testit "-dssstsci m51"
testit "-dssstsci name m51"
testit "-dssstsci name clear"
testit "-dssstsci 13:29:52.37 +47:11:40.8"
# backward compatibility
testit "-dssstsci coord 13:29:52.37 +47:11:40.8 sexagesimal"
testit "-dssstsci update frame"
testit "-mode crosshair"
testit "-dssstsci update crosshair"
testit "-dssstsci close"
testit "-mode none"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
testit "-frame delete"
doit
fi
tt="envi"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new"
testit "-envi envi/cube_float_little.hdr envi/cube_float_little.bsq"
testit "-envi envi/cube_float_little.hdr"
testit "-frame delete"
doit
fi
tt="export"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-export array foo.arr little"
testit "-export foo.arr"
testit "-export nrrd foo.nrrd big"
testit "-export foo.nrrd"
testit "-export gif foo.gif"
testit "-export foo.gif"
testit "-export tiff foo.tiff none"
testit "-export foo.tiff"
testit "-export jpeg foo.jpeg 10"
testit "-export foo.jpeg"
testit "-export png foo.png"
testit "-export foo.png"
testit "-frame new rgb"
testit "-rgbcube rgb/rgbcube.fits"
testit "-export rgbarray foo.arr little"
testit "-export foo.arr"
testit "-export foo.png"
testit "-frame delete"
testit "-rgb close"
testit "-frame new hls"
testit "-hlscube hls/hlscube.fits"
testit "-export hlsarray foo.arr little"
testit "-export foo.arr"
testit "-frame delete"
testit "-hls close"
testit "-frame new hsv"
testit "-hsvcube hsv/hsvcube.fits"
testit "-export hsvarray foo.arr little"
testit "-export foo.arr"
testit "-frame delete"
testit "-hsv close"
testit "-cube close"
doit
fi
tt="fade"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new"
testit "-fade"
testit "-fade yes"
testit "-fade interval 2"
testit "-single"
testit "-frame first"
testit "-frame next"
doit
fi
tt="fifo"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-fifo /dev/imt1"
testit "-fifo_only"
doit
fi
# backward compatibility
tt="file"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt...backward compatibility"
testit "-frame new"
testit "-file fits/float.fits"
testit "-file -slice fits/float.fits -noslice"
testit "-file -mask fits/float.fits -nomask"
testit "-frame delete"
doit
fi
tt="fits"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new"
testit "-fits fits/float.fits"
testit "-fits -slice fits/float.fits -noslice"
testit "-fits -mask fits/float.fits -nomask"
testit "-frame delete"
doit
fi
tt="footprint"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt/fp"
testit "-footprint cxc"
testit "-footprint hla"
testit "-footprint current cxc"
testit "-footprint save foo.xml"
testit "-footprint export rdb foo.rdb"
testit "-footprint export tsv foo.tsv"
testit "-footprint name m51"
testit "-footprint coordinate 202.48 47.21 fk5"
testit "-footprint system wcs"
testit "-footprint sky fk5"
testit "-footprint skyformat degrees"
testit "-footprint radius 22 arcmin"
# backward compatibility
testit "-footprint size 20 24 arcmin"
testit "-footprint retrieve"
testit "-footprint crosshair"
testit "-footprint regions"
testit "-region delete all"
testit "-footprint filter '\$ObsId<10000'"
testit "-footprint filter load aux/fp.flt"
testit "-footprint retrieve"
testit "-footprint cancel"
#testit "-footprint print"
testit "-footprint sort 'ObsId' incr"
# backward compatibility
testit "-footprint hide"
testit "-footprint show yes"
testit "-footprint panto no"
testit "-footprint clear"
testit "-footprint close"
testit "-footprint clear"
testit "-footprint close"
doit
fi
tt="frame"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new rgb"
testit "-frame delete"
testit "-frame new hls"
testit "-frame delete"
testit "-frame new hsv"
testit "-frame delete"
testit "-frame new 3d"
testit "-frame delete"
testit "-fits fits/img.fits"
testit "-tile"
testit "-frame center"
testit "-frame center 1"
testit "-frame center all"
testit "-frame reset"
testit "-frame reset 1"
testit "-frame reset all"
testit "-frame refresh"
testit "-frame refresh 1"
testit "-frame refresh all"
testit "-frame hide"
testit "-frame hide 1"
testit "-frame hide all"
testit "-frame show"
testit "-frame show 1"
testit "-frame show all"
testit "-frame move first"
testit "-frame move back"
testit "-frame move forward"
testit "-frame move last"
testit "-frame first"
testit "-frame prev"
testit "-frame next"
testit "-frame last"
testit "-frame frameno 1"
testit "-frame 2"
testit "-frame match wcs"
testit "-frame lock wcs"
testit "-frame lock none"
testit "-frame clear"
testit "-frame clear 1"
testit "-frame clear all"
testit "-frame delete"
testit "-frame delete 1"
testit "-frame delete all"
testit "-frame new -fits fits/img.fits"
testit "-rgb close"
testit "-hls close"
testit "-hsv close"
testit "-3d close"
testit "-cube close"
doit
fi
tt="gif"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new"
testit "-gif photo/rose.gif"
testit "-frame delete"
testit "-frame new"
testit "-gif -slice photo/rose.gif -noslice"
testit "-frame delete"
testit "-cube close"
doit
fi
tt="green"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-frame new rgb"
testit "-green"
testit "-rgb close"
doit
fi
tt="graph"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-graph grid yes"
testit "-graph log no"
testit "-graph method average"
testit "-graph font helvetica"
testit "-graph fontsize 9"
testit "-graph fontweight normal"
testit "-graph fontslant roman"
testit "-graph size 150"
testit "-graph thickness 1"
doit
fi
tt="grid"
if [ "$1" = "$tt" -o -z "$1" ]; then
initit "$tt"
testit "-grid open"
testit "-grid close"
testit "-grid"
testit "-grid yes"
testit "-grid type analysis"
testit "-grid system wcs"
testit "-grid sky fk5"
testit "-grid skyformat degrees"
testit "-grid grid yes"
testit "-grid grid color red"
testit "-grid grid width 2"
testit "-grid grid dash yes"
# backward compatibility
testit "-grid grid style 1"
testit "-grid grid gap1 .01"
testit "-grid grid gap2 .01"
testit "-grid grid gap3 .01"
testit "-grid axes yes"
testit "-grid axes color red"
testit "-grid axes width 2"
testit "-grid axes dash yes"
# backward compatibility
testit "-grid axes style 1"
testit "-grid axes type exterior"
testit "-grid axes origin lll"
testit "-grid format1 d.2"
testit "-grid format2 d.2"
testit "-grid tickmarks color red"
testit "-grid tickmarks width 2"
testit "-grid tickmarks dash yes"
# backward compatibility
testit "-grid tickmarks style 1"
testit "-grid border yes"
testit "-grid border color red"
testit "-grid border width 2"