aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/polyphot/polyshow.x
diff options
context:
space:
mode:
Diffstat (limited to 'noao/digiphot/apphot/polyphot/polyshow.x')
-rw-r--r--noao/digiphot/apphot/polyphot/polyshow.x65
1 files changed, 65 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/polyphot/polyshow.x b/noao/digiphot/apphot/polyphot/polyshow.x
new file mode 100644
index 00000000..9e3da070
--- /dev/null
+++ b/noao/digiphot/apphot/polyphot/polyshow.x
@@ -0,0 +1,65 @@
+include "../lib/display.h"
+include "../lib/polyphot.h"
+
+# AP_YSHOW -- Print the all the polyphot parameters on the standard output.
+
+procedure ap_yshow (ap)
+
+pointer ap # pointer to the apphot strucuture
+
+begin
+ call ap_nshow (ap)
+ call printf ("\n")
+ call ap_cpshow (ap)
+ call printf ("\n")
+ call ap_spshow (ap)
+ call printf ("\n")
+ call ap_yyshow (ap)
+end
+
+
+# AP_YPSHOW -- Print the noise and polypars parameters on the standard output.
+
+procedure ap_ypshow (ap)
+
+pointer ap # pointer to apphot structure
+
+begin
+ call ap_nshow (ap)
+ call printf ("\n")
+ call ap_yyshow (ap)
+end
+
+
+# AP_YYSHOW -- Print the polypars parameters on the standard output.
+
+procedure ap_yyshow (ap)
+
+pointer ap # pointer to apphot structure
+
+pointer sp, str
+bool itob()
+int apstati()
+real apstatr()
+
+begin
+ call smark (sp)
+ call salloc (str, SZ_LINE, TY_CHAR)
+
+ call printf ("Photometry Parameters\n")
+
+ call apstats (ap, PYNAME, Memc[str], SZ_LINE)
+ call printf (" %s = %s\n")
+ call pargstr (KY_PYNAME)
+ call pargstr (Memc[str])
+
+ call printf (" %s = %g\n")
+ call pargstr (KY_PYZMAG)
+ call pargr (apstatr (ap, PYZMAG))
+
+ call printf (" %s = %b\n")
+ call pargstr (KY_MKPOLYGON)
+ call pargb (itob (apstati (ap, MKPOLYGON)))
+
+ call sfree (sp)
+end