|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
image.name - Function
1.1.1 Name of the image file this tool is attached to
Description
This function returns the name of the image file By default, this function
returns the full absolute path of the image file. You can strip this path off if
you wish with the strippath argument and just recover the image
file name itself.
Arguments
Inputs |
| ||
strippath |
| Strip off the path before the actual file name?
| |
| allowed: | bool |
|
| Default: | false |
|
string
Example
"""
#
print "\t----\t name Ex 1 \t----"
ia.maketestimage(’g1.app’, overwrite=true)
print ia.name(strippath=False)
#/casa/code/xmlcasa/implement/images/scripts/g1.app
print ia.name(strippath=True)
#g1.app
ia.close()
#
"""
__________________________________________________________________
More information about CASA may be found at the
CASA web page
Copyright © 2016 Associated Universities Inc., Washington, D.C.
This code is available under the terms of the GNU General Public Lincense
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search