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


next up previous contents index
Next: imagefromimage - Constructor Up: image - Tool Previous: imagefromfits - Constructor


imagefromforeign - Constructor



Package general
Module images
Tool image


Construct an AIPS++ image from a foreign package image file


Synopsis
imagefromforeign(outfile, infile, format, overwrite)


Arguments

outfile in Output image file name
    Allowed: String
    Default: unset
infile in Input foreign image disk file name
    Allowed: String
format in Format type
    Allowed: String from 'miriad', 'gipsy'
    Default: 'miriad'
overwrite in Overwrite (unprompted) pre-existing output file ?
    Allowed: T or F
    Default: F


Returns
Image tool or fail


Description

This constructor is used to convert a foreign package image file to an AIPS++ image. This is done via an intermediary FITS file which is created by the foreign package. In order for this constructor to work, you must have the foreign package installed; it is not part of AIPS++. Currently supported are Miriad and Gipsy files.

If outfile is given, the image is written to the specified disk file. If outfile is unset, the Image tool is associated with a temporary image. This temporary image may be in memory or on disk, depending on its size. When you destroy the Image tool (with the done function) this temporary image is deleted.



Example
- im := imagefromforeign('im.app', 'im.miriad', format='miriad')





next up previous contents index
Next: imagefromimage - Constructor Up: image - Tool Previous: imagefromfits - Constructor   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