aboutsummaryrefslogtreecommitdiff
path: root/noao/onedspec/identify/autoid/aidget.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /noao/onedspec/identify/autoid/aidget.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/onedspec/identify/autoid/aidget.x')
-rw-r--r--noao/onedspec/identify/autoid/aidget.x21
1 files changed, 21 insertions, 0 deletions
diff --git a/noao/onedspec/identify/autoid/aidget.x b/noao/onedspec/identify/autoid/aidget.x
new file mode 100644
index 00000000..ba3c9342
--- /dev/null
+++ b/noao/onedspec/identify/autoid/aidget.x
@@ -0,0 +1,21 @@
+include "autoid.h"
+
+define AIDGET "|best|"
+
+
+# AID_GETR -- Get AID parameters by name.
+
+real procedure aid_getr (aid, param)
+
+pointer aid #I AID object
+char param[ARB] #I Parameter name
+
+char temp[10]
+int strdic()
+
+begin
+ switch (strdic (param, temp, 10, AIDGET)) {
+ case 1:
+ return (AID_BEST(aid))
+ }
+end