Re: fits and String Type

From: John E. Davis <davis>
Date: Fri, 22 Dec 2000 15:30:52 -0500
Dan Dewey <dd> wrote:
>" fits_write_binary_table
>>does not seem to work for a column that is String_Type -
>>is that correct/expected ? "

Until now, it was never implemented it for the high-level routines.
However, if you get my latest version of fits.sl, then it should work.

Copy ~davis/src/jdl/lib/fits.sl to, say $HOME/isis/fits.sl.  Then put:

   () = evalfile (getenv ("HOME") + "/isis/fits.sl");

in your .isisrc file.

Oops.  The version distributed with isis has all the low-level fits
intrinsics loaded into the _isis namespace.  So, to make it work, you
will have to edit fits.sl and replace occurances of _fits_ to
_isis->_fits_.  For instance, change strings such as
_fits_get_hdu_type to _isis->_fits_get_hdu_type.  In addition you will
have to change uppercased strings such as _FITS_BINARY_TBL to
_isis->_FITS_BINARY_TBL.

Alternatively, you can add:

  foreach (_apropos ("_isis", "^_FITS", 0x4))
    {
       $1 = ();
       eval (sprintf ("variable %s=_isis->%s;", $1, $1);
    }
  foreach (_apropos ("_isis", "^_fits", 0x1))
    {
       $1 = ();
       eval (sprintf (
         "define %s(){__pop_args(_NARGS);=_isis->%s(__push_args());}",
	 $1, $1));
    }

to your .isisrc _BEFORE_ loading fits.sl.  I will leave it to you to
figure out what the above lines of code do.

--John
----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Fri Dec 22 2000 - 15:31:04 EST

This archive was generated by hypermail 2.2.0 : Thu Mar 15 2007 - 08:45:49 EDT