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 /pkg/tbtables/tbfhdl.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/tbtables/tbfhdl.x')
-rw-r--r-- | pkg/tbtables/tbfhdl.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/tbtables/tbfhdl.x b/pkg/tbtables/tbfhdl.x new file mode 100644 index 00000000..df3377c7 --- /dev/null +++ b/pkg/tbtables/tbfhdl.x @@ -0,0 +1,27 @@ +include "tbtables.h" + +# tbfhdl -- delete a header keyword from a FITS table +# This routine deletes one header keyword (by number) from the current HDU +# in a FITS file. +# +# Phil Hodge, 3-Oct-1995 Subroutine created + +procedure tbfhdl (tp, parnum) + +pointer tp # io: pointer to table descriptor +int parnum # i: number of the parameter to be deleted +#-- +int status # zero is OK +errchk tbferr + +begin + status = 0 + + # Delete the keyword. + call ftdrec (TB_FILE(tp), parnum, status) + + if (status != 0) + call tbferr (status) + + TB_NPAR(tp) = TB_NPAR(tp) - 1 +end |