aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/phot/apqppars.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/phot/apqppars.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/apphot/phot/apqppars.x')
-rw-r--r--noao/digiphot/apphot/phot/apqppars.x42
1 files changed, 42 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/phot/apqppars.x b/noao/digiphot/apphot/phot/apqppars.x
new file mode 100644
index 00000000..cb87383b
--- /dev/null
+++ b/noao/digiphot/apphot/phot/apqppars.x
@@ -0,0 +1,42 @@
+include "../lib/apphot.h"
+include "../lib/center.h"
+include "../lib/fitsky.h"
+include "../lib/phot.h"
+include "../lib/noise.h"
+include "../lib/display.h"
+
+# AP_QPPARS -- Procedure to write out qthe phot task parameters.
+
+procedure ap_qppars (ap)
+
+pointer ap # pointer to apphot structure
+
+pointer mp, str
+bool itob()
+int apstati()
+real apstatr()
+
+begin
+ call smark (mp)
+ call salloc (str, SZ_LINE, TY_CHAR)
+
+ call clputr ("cbox", 2.0 * apstatr (ap, CAPERT))
+ call clputr ("annulus", apstatr (ap, ANNULUS))
+ call clputr ("dannulus", apstatr (ap, DANNULUS))
+ call apstats (ap, APERTS, Memc[str], SZ_LINE)
+ call clpstr ("apertures", Memc[str])
+
+ call apstats (ap, EXPOSURE, Memc[str], SZ_LINE)
+ call clpstr ("exposure", Memc[str])
+ call apstats (ap, AIRMASS, Memc[str], SZ_LINE)
+ call clpstr ("airmass", Memc[str])
+ call apstats (ap, FILTER, Memc[str], SZ_LINE)
+ call clpstr ("filter", Memc[str])
+ call apstats (ap, OBSTIME, Memc[str], SZ_LINE)
+ call clpstr ("obstime", Memc[str])
+ call clputr ("epadu", apstatr (ap, EPADU))
+ call clputr ("zmag", apstatr (ap, ZMAG))
+ call clputb ("radplots", itob (apstati (ap, RADPLOTS)))
+
+ call sfree (mp)
+end