STScI Logo

pickfile stsdas.toolbox.imgtools


NAME · USAGE · DESCRIPTION · PARAMETERS · EXAMPLES · REFERENCES
BUGS · SEE_ALSO

NAME

pickfile -- Get the file name picked from the input file template

USAGE

pickfile input index

DESCRIPTION

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.

PARAMETERS

input [string]
Input file template.
index [int]
Which file in the template to be picked?
output [string]
Output parameter: name of the picked file.

EXAMPLES

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

REFERENCES

BUGS

SEE ALSO

countfiles, scan


Source Code · Package Help · Search Form · STSDAS