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 /noao/onedspec/ecidentify/ecline.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/onedspec/ecidentify/ecline.x')
-rw-r--r-- | noao/onedspec/ecidentify/ecline.x | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/noao/onedspec/ecidentify/ecline.x b/noao/onedspec/ecidentify/ecline.x new file mode 100644 index 00000000..63e55072 --- /dev/null +++ b/noao/onedspec/ecidentify/ecline.x @@ -0,0 +1,22 @@ +include <smw.h> +include "ecidentify.h" + +# EC_LINE -- Get line corresponding to aperture. + +int procedure ec_line (ec, ap) + +pointer ec # EC pointer +int ap # Aperture + +int i + +begin + if (IS_INDEFI (ap)) + return (INDEFI) + + do i = 1, EC_NLINES(ec) + if (ap == APS(ec,i)) + return (i) + + call error (0, "Image line for aperture number not found") +end |