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/fitpsf/apgpfpars.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/apphot/fitpsf/apgpfpars.x')
-rw-r--r-- | noao/digiphot/apphot/fitpsf/apgpfpars.x | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/fitpsf/apgpfpars.x b/noao/digiphot/apphot/fitpsf/apgpfpars.x new file mode 100644 index 00000000..ed4b93ab --- /dev/null +++ b/noao/digiphot/apphot/fitpsf/apgpfpars.x @@ -0,0 +1,40 @@ +include "../lib/display.h" +include "../lib/noise.h" +include "../lib/fitpsf.h" + +# AP_GPFPARS -- Procedure to fetch the fitpsf parameters. + +procedure ap_gpfpars (ap) + +pointer ap # pointer to the apphot structure + +int function +pointer sp, str +bool clgetb() +int clgeti(), btoi(), clgwrd() +real clgetr() + +begin + call smark (sp) + call salloc (str, SZ_LINE, TY_CHAR) + + # Open the apphot structure. + call apsfinit (ap, AP_RADGAUSS, 3.5, 2.0, AP_NPOISSON) + call apsetr (ap, PSFAPERT, clgetr ("box") / 2.0) + + # Get the data dependent parameters. + call ap_gdapars (ap) + + # Get the rest of the FITPSF fitting parameters. + function = clgwrd ("function", Memc[str], SZ_LINE, PSFFUNCS) + call apsets (ap, PSFSTRING, Memc[str]) + call apseti (ap, PSFUNCTION, function) + call apseti (ap, PMAXITER, clgeti ("maxiter")) + call apseti (ap, PNREJECT, clgeti ("nreject")) + call apsetr (ap, PK2, clgetr ("kreject")) + + # Get the plotting parameters. + call apseti (ap, MKPSFBOX, btoi (clgetb ("mkbox"))) + + call sfree (sp) +end |