diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /noao/digiphot/apphot/fitpsf/apppfpars.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'noao/digiphot/apphot/fitpsf/apppfpars.x')
-rw-r--r-- | noao/digiphot/apphot/fitpsf/apppfpars.x | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/fitpsf/apppfpars.x b/noao/digiphot/apphot/fitpsf/apppfpars.x new file mode 100644 index 00000000..58f40bcf --- /dev/null +++ b/noao/digiphot/apphot/fitpsf/apppfpars.x @@ -0,0 +1,34 @@ +include "../lib/fitpsf.h" +include "../lib/display.h" + +# AP_PPFPARS -- Procedure to write the fitpsf parameters to a parameter file. + +procedure ap_ppfpars (ap) + +pointer ap # pointer to apphot structure + +pointer sp, str +bool itob() +int apstati() +real apstatr() + +begin + # Initialize and open psets. + call smark (sp) + call salloc (str, SZ_LINE, TY_CHAR) + + # Store the psf fitting parameters. + call clputr ("box", 2.0 * apstatr (ap, PSFAPERT)) + call apstats (ap, PSFSTRING, Memc[str], SZ_FNAME) + call clpstr ("function", Memc[str]) + call clputi ("maxiter", apstati (ap, PMAXITER)) + call clputr ("kreject", apstatr (ap, PK2)) + call clputi ("nreject", apstati (ap, PNREJECT)) + call clputb ("mkbox", itob (apstati (ap, MKPSFBOX))) + + # Store the data dependent parameters. + call ap_dapars (ap) + + # Closeup. + call sfree (sp) +end |