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


next up previous contents index
Next: imagetools - Function Up: images - Module Previous: is_image - Function


imagefiles - Function



Package general
Module images


Find the list of image files in the given directory


Synopsis
imagefiles(files, strippath, foreign)


Arguments

files in Path/files of interest
    Allowed: String
    Default: '.' the current working directory
strippath in Strip off leading path name ?
    Allowed: T or F
    Default: T
foreign in Include foreign formats with native support ?
    Allowed: T or F
    Default: F


Returns
Vector of Strings



Description

This (global) function returns a list of the names of the image files on disk in the specified path. You can provide just a directory, or a directory and wild-carded file list, or just the file list. You can optionally include the leading directory part of the output file names.

If foreign==T, then all foreign format image for which we have native access (FITS and Miriad presently) are included in the listing. Otherwise, and by default, just AIPS++ images are listed. Please note that presently, any FITS file (image or otherwise) will show up in the listing.



Example
- im1:=imagefromshape('zz', [10])
- im2:=imagefromshape('zz2', [10])
- im2.tofits('zz2.fits')
-
- imagefiles()
zz zz2
-
- imagefiles(foreign=T)
zz zz2 zz2.fits
- imagefiles(stripppath=F)
/u/nkilleen/zz /u/nkilleen/zz2
-
- imagefiles('./*2')                   # Wild card file name
zz2





next up previous contents index
Next: imagetools - Function Up: images - Module Previous: is_image - 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