aboutsummaryrefslogtreecommitdiff
path: root/noao/onedspec/smw/smwnd.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /noao/onedspec/smw/smwnd.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'noao/onedspec/smw/smwnd.x')
-rw-r--r--noao/onedspec/smw/smwnd.x19
1 files changed, 19 insertions, 0 deletions
diff --git a/noao/onedspec/smw/smwnd.x b/noao/onedspec/smw/smwnd.x
new file mode 100644
index 00000000..10b48079
--- /dev/null
+++ b/noao/onedspec/smw/smwnd.x
@@ -0,0 +1,19 @@
+include <imhdr.h>
+include <smw.h>
+
+
+# SMW_ND -- Setup the NDSPEC SMW.
+# If there is only one spectrum convert it to EQUISPEC if possible.
+
+procedure smw_nd (im, smw)
+
+pointer im #I IMIO pointer
+pointer smw #U MWCS pointer input SMW pointer output
+
+errchk smw_open, smw_daxis, smw_ndes
+
+begin
+ call smw_open (smw, NULL, im)
+ if (SMW_NSPEC(smw) == 1)
+ call smw_ndes (im, smw)
+end