diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /noao/onedspec/ecidentify/ecline.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
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 |