aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/polyphot/apymkinit.x
diff options
context:
space:
mode:
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