diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/language/doc/imaccess.hlp | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/language/doc/imaccess.hlp')
-rw-r--r-- | pkg/language/doc/imaccess.hlp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkg/language/doc/imaccess.hlp b/pkg/language/doc/imaccess.hlp new file mode 100644 index 00000000..dfd17ee4 --- /dev/null +++ b/pkg/language/doc/imaccess.hlp @@ -0,0 +1,40 @@ +.help imaccess July97 language +.ih +NAME +imaccess -- test whether an image exists +.ih +USAGE +bool = imaccess (image) +.ih +PARAMETERS +.ls image +The name of the image whose existence is to be tested. +.le +.ih +DESCRIPTION +\fIImaccess\fR is a boolean intrinsic function returning true ("yes") if the +named image exists. The function will return false ("no") if the image doesn't +exist, or if no image extension is supplied and the image name is ambiguous. +\fIImaccess\fR can only be called as a function in an expression, not as a task. +.ih +EXAMPLES +1. Print the header of an image if it exists. + +.nf + if (imaccess ("dev$wpix")) + imheader ("dev$wpix",long+) + else + error (11, "Image not found") +.fi + +2. Tell if a image exists. + + cl> = imaccess ("dev$pix") +.ih +BUGS +An optional second argument should be added to test whether the named file +can be accessed for reading or writing. +.endhelp +.ih +SEE ALSO +access, directory |