diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /noao/digiphot/apphot/center/apcpshow.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/apphot/center/apcpshow.x')
-rw-r--r-- | noao/digiphot/apphot/center/apcpshow.x | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/center/apcpshow.x b/noao/digiphot/apphot/center/apcpshow.x new file mode 100644 index 00000000..79fdf43e --- /dev/null +++ b/noao/digiphot/apphot/center/apcpshow.x @@ -0,0 +1,66 @@ +include "../lib/center.h" +include "../lib/display.h" + +# AP_CPSHOW -- Procedure to display the current centering algorithm +# parameters. + +procedure ap_cpshow (ap) + +pointer ap # pointer to the apphot strucuture + +pointer sp, str +bool itob() +int apstati() +real apstatr() + +begin + call smark (sp) + call salloc (str, SZ_LINE, TY_CHAR) + + # Print the centering algorithm. + call printf ("Centering Parameters\n") + call apstats (ap, CSTRING, Memc[str], SZ_FNAME) + call printf (" %s = %s %s\n") + call pargstr (KY_CSTRING) + call pargstr (Memc[str]) + call pargstr (UN_CALGORITHM) + + # Print the rest of the centering parameters. + call printf (" %s = %g %s %s = %g %s %s = %g\n") + call pargstr (KY_CAPERT) + call pargr (2.0 * apstatr (ap, CAPERT)) + call pargstr (UN_CSCALEUNIT) + call pargstr (KY_CTHRESHOLD) + call pargr (apstatr (ap, CTHRESHOLD)) + call pargstr (UN_CSIGMA) + call pargstr (KY_MINSNRATIO) + call pargr (apstatr (ap, MINSNRATIO)) + + call printf (" %s = %d %s = %g %s\n") + call pargstr (KY_CMAXITER) + call pargi (apstati (ap, CMAXITER)) + call pargstr (KY_MAXSHIFT) + call pargr (apstatr (ap, MAXSHIFT)) + call pargstr (UN_CNUMBER) + + call printf (" %s = %b %s = %g %s\n") + call pargstr (KY_CLEAN) + call pargb (itob (apstati (ap, CLEAN))) + call pargstr (KY_SIGMACLEAN) + call pargr (apstatr (ap, SIGMACLEAN)) + call pargstr (UN_CSIGMA) + + call printf (" %s = %g %s %s = %g %s\n") + call pargstr (KY_RCLEAN) + call pargr (apstatr (ap, RCLEAN)) + call pargstr (UN_CSCALEUNIT) + call pargstr (KY_RCLIP) + call pargr (apstatr (ap, RCLIP)) + call pargstr (UN_CSCALEUNIT) + + call printf (" %s = %b\n") + call pargstr (KY_MKCENTER) + call pargb (itob (apstati (ap, MKCENTER))) + + call sfree (sp) +end |