| pickfile | stsdas.toolbox.imgtools | pickfile |
pickfile -- Get the file name picked from the input file template
pickfile input index
Pickfile is a simple task to get the file name from the template. It works with wild card as well as subsection and group specifications. Together with the task countfiles, it provides an intuitive alternative for scan in IRAF script writing.
1. Get the name of the 3rd file in the list name.lis where name.lis has the following lines:
abc def ghi jkl
im> pickfile @name.lis 3
The output will be "ghi".
2. im> pickfile *.d0h[1:100] 5
countfiles, scan