aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/fitpsf/appferrors.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /noao/digiphot/apphot/fitpsf/appferrors.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/apphot/fitpsf/appferrors.x')
-rw-r--r--noao/digiphot/apphot/fitpsf/appferrors.x26
1 files changed, 26 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/fitpsf/appferrors.x b/noao/digiphot/apphot/fitpsf/appferrors.x
new file mode 100644
index 00000000..20ed8820
--- /dev/null
+++ b/noao/digiphot/apphot/fitpsf/appferrors.x
@@ -0,0 +1,26 @@
+include "../lib/fitpsf.h"
+
+# AP_PFERRORS -- Print detailed fitpsf error messages on the standard output.
+
+procedure ap_pferrors (ap, ier)
+
+pointer ap # pointer to apphot structure (unused)
+int ier # integer error code
+
+begin
+ switch (ier) {
+ case AP_NOPSFAREA:
+ call printf (
+ "The psf fitting aperture is outside the image.\n")
+ case AP_PSF_OUTOFBOUNDS:
+ call printf (
+ "The psf fitting aperture is partially outside the image.\n")
+ case AP_NPSF_TOO_SMALL:
+ call printf (
+ "The number of data points is too few for psf fitting.\n")
+ case AP_PSF_SINGULAR:
+ call printf ("The psf fitting solution is singular.\n")
+ case AP_PSF_NOCONVERGE:
+ call printf ("The psf fitting solution did not converge.\n")
+ }
+end