Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: sdaverager - Tool Up: dish - Module Previous: rm.wsname - Function


dishdemodata - Function



Package dish
Module dish


Set up demonstration data for Dish


Synopsis
dishdemodata()



Description
This function converts the sample SDFITS data files (dishdemo1.fits, dishdemo2.fits, dishmopra.fits, dishparkes.fits, and dishspecproc.fits) into AIPS++tables using tablefromfits. If these tables already exist in your current working directory, then this command does nothing. Status messages from this conversion process are sent to the AIPS++logger.

Use the dishdemodata function to get a copy of the demonstration data, as in this example:



Example
- include 'dishdemodata.g'
T
- dishdemodata()
T

The following text appears in the AIPS++ logger:

dishdemodata starts
Creating demo table : dishdemo1
FITS file found : /aips++/data/demo/dishdemo/dishdemo1.fits
Begin converting it to an aips++ table ...
Demo table created : dishdemo1
Creating demo table : dishdemo2
FITS file found : /aips++/data/demo/dishdemo/dishdemo2.fits
Begin converting it to an aips++ table ...
Demo table created : dishdemo2
Creating demo table : dishmopra
FITS file found : /aips++/data/demo/dishdemo/dishmopra.fits
Begin converting it to an aips++ table ...
Demo table created : dishmopra
Creating demo table : dishparkes
FITS file found : /aips++//data/demo/dishdemo/dishparkes.fits
Begin converting it to an aips++ table ...
Demo table created : dishparkes
Creating demo table : dishspecproc
FITS file found : /aips++/data/demo/dishdemo/dishspecproc.fits
Begin converting it to an aips++ table ...
Demo table created : dishspecproc
The single dish demo tables are: dishdemo1 dishdemo2 dishmopra dishparkes dishspecproc

Other SDFITS files (and binary tables) can be converted using tablefromfits.

tab := tablefromfits('mydemo','/aips++/data/dishdemo/dishparkes.fits')
A new table named 'mydemo' is created and filled using the input fits file (in this case, dishparkes.fits). This table is then opened and the returned value is a table tool that can be used immediately. Once the table has been converted, there is no need to run tablefromfits on that same fits file again. You can use the normal table function to re-open that table as necessary.

tab := table('mydemo')








next up previous contents index
Next: sdaverager - Tool Up: dish - Module Previous: rm.wsname - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01