1
! ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2
!.IDENTIFICATION: invdemo.prg
3
!.PURPOSE: Demo. procedure for INVENTOTY reduction package
4
!.USE: Execute as TUTORIAL/INVENT
5
! The following files are copied into your directory :
6
! INFTEST.BDF -- Test frame
10
! --------------------------------------------------------------------
14
write/out Tutorial for the INVENTORY package
15
write/out This show creates the following files:
16
write/out One test frame: INVTEST.BDF
17
write/out Three output tables: TSTEST.TBL, TATEST.TBL, TCTEST.TBL
18
write/out First we copy the test frame
20
indisk/fits MID_TEST:invtest.fits invtest
24
write/keyw INV_INTG/I/1/12 1,0,1,1,0,0,0,7,1,1,0,0
25
write/keyw INV_INTG/I/13/11 0,0,0,1,0,20,3,0,0,3,32
26
write/keyw INV_REAL/R/1/10 1290.,130000.,22.,4.5,.05,-.05,1.,18.5,50.,5400.
27
write/keyw INV_REAL/R/11/10 21.11,3.0,5.0,0.26,0.33,0.39,0.43,0.46,0.36,0.24
28
write/keyw INV_REAL/R/21/10 0.19,0.15,0.14,0.14,0.14,0.14,0.14,0.14,0.14,0.14
29
write/keyw INV_REAL/R/31/10 0.14,0.14,0.14,0.14,0.14,0.14,0.14,0.14,3.0,5.0
30
write/keyw INV_REAL/R/41/10 2.0,4.0,4.5,0.25,0.6,0.02,0.6,1.0,0.0,2.5
31
write/keyw INV_REAL/R/51/10 1.2,0.0,1.39,0.0,0.0,0.0,0.0
33
create/display 0 700,880,50,55
35
load/image invtest 0 2,2 cuts=870,1500
38
write/out First, INVENTORY searches for objects in this frame
39
write/out The output table tstest.tbl will contain the results
41
search/inv invtest tstest
43
write/out The objects found are indicated by square small crosses
45
load/table tstest :X :Y ? 5 5 1
50
write/out Next, INVENTORY analyses the objects found:
52
analyse/inv invtest tstest tatest VER
54
write/out The ANALYSE command comes with somewhat less objects
55
write/out the new list of objects is stored in table TATEST
58
load/table tatest :X :Y ? 5 5 1
63
write/out Finally, the CLASSIFY command will classify the objects
68
write/out The objects in the squares are classified as galaxies
69
write/out The objects in the circles are classified as stars
71
select/table tatest :CLASS.EQ.2.0
72
load/table tatest :X :Y ? 2 5 3
74
select/table tatest :CLASS.EQ.1.0
75
load/table tatest :X :Y ? 1 5 5