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


next up previous contents index
Next: image.fft - Function Up: image - Tool Previous: image.delete - Function


image.done - Function



Package general
Module images
Tool image


Destroy this image tool


Synopsis
done(delete)


Arguments

delete in Delete disk file as well ?
    Allowed: T or F
    Default: F


Returns
T or fail


Description

If you no longer need to use an image tool, calling this function will free up its resources. That is, it destroys the tool. You can no longer call any functions on the tool after it has been done.

If the Image tool is associated with a disk file, you can also delete that if you wish by setting delete=T. By default any associated disk file is not deleted.

This function is different from the close function because the latter does not destroy the image tool. For example, you can use function open straight after close on the same tool.



Example
- im := imagemaketestimage()
- im.done()
- im.open('myfile')      # Error: tool `im' has been destroyed





next up previous contents index
Next: image.fft - Function Up: image - Tool Previous: image.delete - 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