diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/imio/imgclust.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/imio/imgclust.x')
-rw-r--r-- | sys/imio/imgclust.x | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/imio/imgclust.x b/sys/imio/imgclust.x new file mode 100644 index 00000000..ca075cfb --- /dev/null +++ b/sys/imio/imgclust.x @@ -0,0 +1,24 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# IMGCLUSTER -- Get the cluster name of an image, i.e., the name of the cluster +# to which the image belongs, minus the cluster index and image section, if any. + +procedure imgcluster (imspec, cluster, maxch) + +char imspec[ARB] # full image specification +char cluster[ARB] # receives root image name +int maxch + +int cl_index, cl_size +pointer sp, ksection, section + +begin + call smark (sp) + call salloc (ksection, SZ_FNAME, TY_CHAR) + call salloc (section, SZ_FNAME, TY_CHAR) + + call imparse (imspec, cluster, maxch, Memc[ksection], SZ_FNAME, + Memc[section], SZ_FNAME, cl_index, cl_size) + + call sfree (sp) +end |