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/ecnext.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/onedspec/ecidentify/ecnext.x')
-rw-r--r-- | noao/onedspec/ecidentify/ecnext.x | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/noao/onedspec/ecidentify/ecnext.x b/noao/onedspec/ecidentify/ecnext.x new file mode 100644 index 00000000..1028371d --- /dev/null +++ b/noao/onedspec/ecidentify/ecnext.x @@ -0,0 +1,23 @@ +include "ecidentify.h" + +# EC_NEXT -- Return the next feature. + +int procedure ec_next (ec, feature) + +pointer ec # ID pointer +int feature # Starting feature (input), next feature (returned) + +int i + +begin + for (i=feature+1; i<=EC_NFEATURES(ec); i=i+1) + if (APN(ec,i) == EC_AP(ec)) + break + + if (i <= EC_NFEATURES(ec)) + feature = i + else + i = EOF + + return (i) +end |