aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/daofind/apimset.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/digiphot/apphot/daofind/apimset.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/apphot/daofind/apimset.x')
-rw-r--r--noao/digiphot/apphot/daofind/apimset.x17
1 files changed, 17 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/daofind/apimset.x b/noao/digiphot/apphot/daofind/apimset.x
new file mode 100644
index 00000000..6f1e8cdc
--- /dev/null
+++ b/noao/digiphot/apphot/daofind/apimset.x
@@ -0,0 +1,17 @@
+include <imset.h>
+
+# AP_IMSET -- Setup image boundary extension charactersitics.
+
+procedure ap_imset (im, boundary, npix, constant)
+
+pointer im # pointer to the image
+int boundary # type of boundary condition
+int npix # number of pixels of boundary entension
+real constant # constant for constant boundary extension
+
+begin
+ call imseti (im, IM_TYBNDRY, boundary)
+ call imseti (im, IM_NBNDRYPIX, npix)
+ if (boundary == BT_CONSTANT)
+ call imsetr (im, IM_BNDRYPIXVAL, constant)
+end