From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/imio/db/imaddr.x | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sys/imio/db/imaddr.x (limited to 'sys/imio/db/imaddr.x') diff --git a/sys/imio/db/imaddr.x b/sys/imio/db/imaddr.x new file mode 100644 index 00000000..e07dbb53 --- /dev/null +++ b/sys/imio/db/imaddr.x @@ -0,0 +1,19 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# IMADDR -- Add a new field to the image header and initialize to the value +# given. It is not an error if the parameter already exists. + +procedure imaddr (im, key, value) + +pointer im # image descriptor +char key[ARB] # parameter or field value +real value # new or initial value of parameter + +int imaccf() +errchk imaccf, imaddf + +begin + if (imaccf (im, key) == NO) + call imaddf (im, key, "r") + call imputr (im, key, value) +end -- cgit