| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 1488 |
|
| Package | general | |
| Module | images |
| 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 | ||
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.
- 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