Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
include 'dish.g'If someone has previously used dish from the same account, then dish will start up in the same state as it was when last used. This can be pointed out after the dish GUI appears. If you want to guarantee a pristine, default state then you must remove the directory which holds that state - $HOME/aips++/dishstate. Note that if you do start with some previously set state which was arrived at after following this demo, you may be able to skip the steps involving opening data sets (i.e. check first to see if it is already opened). Also, it is probably a good idea to clean out the Results Manager periodically if giving this demo repeatedly so that it doesn't become too cluttered with the results of past demonstrations. Just select what you want to forget and press the ``Delete'' button in the Results Manager.
include 'dishdemo.g' dishdemo()This will create the demo data in the current directory. If the demo data already exists this will do nothing. It is quite safe to repeat it if you aren't sure the demo data exists. It takes a while. It sends messages to the logger as it processes each SDFITS file with fits2table.
The current demo data consists of the following tables:
#
), you might want to return to the original
record before each application of a function on the data.
#
square of the data array, press ``Apply''
#
scale the data by 10.0
#
take the sqrt of the data
dishmopra.setlocation(1) # point the iterator at record 1 on := dishmopra.get() # get the ``on source'' data dishmopra.setlocation(3) # point the iterator at record 3 off := dishmopra.get() # get the ``off source'' data result := on # initialize the result to have # the same structure and header # values as on result.data.arr := (on.data.arr - off.data.arr)/off.data # the difference spectra dish.rm().add('result' # add it to the results manager by name 'Difference of rows 1 and 3' # description result # the value 'SDRECORD') # its type - dish knows how to plot these