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 /sys/pmio/pmsectne.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/pmio/pmsectne.x')
-rw-r--r-- | sys/pmio/pmsectne.x | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys/pmio/pmsectne.x b/sys/pmio/pmsectne.x new file mode 100644 index 00000000..654c53b1 --- /dev/null +++ b/sys/pmio/pmsectne.x @@ -0,0 +1,32 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <pmset.h> +include <plio.h> + +# PM_SECTNOTEMPTY -- Test whether the indicated mask image section is empty. + +bool procedure pm_sectnotempty (pl, vs, ve, ndim) + +pointer pl #I mask descriptor +long vs[PM_MAXDIM] #I starting coordinates of section +long ve[PM_MAXDIM] #I ending coordinates of section +int ndim + +bool pl_sectnotempty() +include "pmio.com" + +begin + if (PM_MAPXY(pl) == YES) { + call amovkl ( 1, v1, PM_MAXDIM) + call amovl (vs, v1, ndim) + call imaplv (PM_REFIM(pl), v1, v2, PM_MAXDIM) + + call amovkl ( 1, v3, PM_MAXDIM) + call amovl (ve, v3, ndim) + call imaplv (PM_REFIM(pl), v3, v4, PM_MAXDIM) + + return (pl_sectnotempty (pl, v2, v4, PM_MAXDIM)) + + } else + return (pl_sectnotempty (pl, vs, ve, ndim)) +end |