aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/fitpsf/appsfshow.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/digiphot/apphot/fitpsf/appsfshow.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'noao/digiphot/apphot/fitpsf/appsfshow.x')
-rw-r--r--noao/digiphot/apphot/fitpsf/appsfshow.x59
1 files changed, 59 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/fitpsf/appsfshow.x b/noao/digiphot/apphot/fitpsf/appsfshow.x
new file mode 100644
index 00000000..3317bd22
--- /dev/null
+++ b/noao/digiphot/apphot/fitpsf/appsfshow.x
@@ -0,0 +1,59 @@
+include "../lib/display.h"
+include "../lib/fitpsf.h"
+
+# AP_PSFSHOW -- Procedure to print the fitpsf parameters on the standard output.
+
+procedure ap_psfshow (ap)
+
+pointer ap # pointer to the apphot structure
+
+begin
+ call ap_nshow (ap)
+ call printf ("\n")
+ call ap_pfshow (ap)
+end
+
+
+# AP_PFSHOW -- Procedure to print out the fitting parameters on the standard
+# output.
+
+procedure ap_pfshow (ap)
+
+pointer ap # pointer to apphot structure
+
+pointer sp, str
+bool itob()
+int apstati()
+real apstatr()
+
+begin
+ # Print the PSF fitting parameters.
+ call smark (sp)
+ call salloc (str, SZ_LINE, TY_CHAR)
+
+ call printf ("Psf Modelling Parameters\n")
+ call apstats (ap, PSFSTRING, Memc[str], SZ_FNAME)
+ call printf (" %s = %s\n")
+ call pargstr (KY_PSFSTRING)
+ call pargstr (Memc[str])
+
+ call printf (" %s = %g %s %s = %d\n")
+ call pargstr (KY_PSFAPERT)
+ call pargr (2.0 * apstatr (ap, PSFAPERT))
+ call pargstr (UN_PSFSCALEUNIT)
+ call pargstr (KY_PMAXITER)
+ call pargi (apstati (ap, PMAXITER))
+
+ call printf (" %s = %g %s %s = %d\n")
+ call pargstr (KY_PK2)
+ call pargr (apstatr (ap, PK2))
+ call pargstr (UN_PSFSIGMA)
+ call pargstr (KY_PNREJECT)
+ call pargi (apstati (ap, PNREJECT))
+
+ call printf (" %s = %b\n")
+ call pargstr (KY_MKPSFBOX)
+ call pargb (itob (apstati (ap, MKPSFBOX)))
+
+ call sfree (sp)
+end