aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/polyphot/apymkinit.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/polyphot/apymkinit.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/apphot/polyphot/apymkinit.x')
-rw-r--r--noao/digiphot/apphot/polyphot/apymkinit.x31
1 files changed, 31 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/polyphot/apymkinit.x b/noao/digiphot/apphot/polyphot/apymkinit.x
new file mode 100644
index 00000000..215d3e9c
--- /dev/null
+++ b/noao/digiphot/apphot/polyphot/apymkinit.x
@@ -0,0 +1,31 @@
+include "../lib/apphotdef.h"
+include "../lib/noise.h"
+
+# AP_YMKINIT - Procedure to initialize the polymark structure.
+
+procedure ap_ymkinit (ap)
+
+pointer ap # pointer to the apphot structure
+
+begin
+ call calloc (ap, LEN_APSTRUCT, TY_STRUCT)
+
+ # Set the main structure parameters.
+ call ap_defsetup (ap, 2.5)
+
+ # Set the noise options.
+ call ap_noisesetup (ap, AP_NPOISSON)
+
+ # Set display options.
+ call ap_dispsetup (ap)
+
+ # Setup the polyphot parameters.
+ call ap_ysetup (ap)
+
+ # Set unused structure pointers to null.
+ AP_PCENTER(ap) = NULL
+ AP_PSKY(ap) = NULL
+ AP_PPHOT(ap) = NULL
+ AP_RPROF(ap) = NULL
+ AP_PPSF(ap) = NULL
+end