JBIU utilities - release 1.0 [message #60809] |
Fri, 13 June 2008 09:03  |
Jeremy Bailin
Messages: 618 Registered: April 2008
|
Senior Member |
|
|
I've decided to package together some of my IDL routines that I find
most useful, in the hopes that others might too! Some of them tend
towards astronomy-related things, but there are lots that should be of
quite general interest. Please let me know if you have any comments.
http://astroconst.org/jbiu/
(yes, the web page is extremely bare-bones right now... )
-Jeremy.
|
|
|
Re: JBIU utilities - release 1.0 [message #60917 is a reply to message #60809] |
Sun, 15 June 2008 19:39  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
Mark Piper wrote:
> On Jun 13, 12:39 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
>> How about the following?
>>
>> function mg_sign, x
>> compile_opt strictarr
>>
>> return, fix(x gt 0) - fix(x lt 0)
>> end
>
> Prior art! :)
>
> http://www.ittvis.com/codebank/search.asp?FID=296
>
> (Just kidding, Mike; I'm sure someone thought of this long before I
> did.)
>
> mp
I did note you mention in the comments that you think there should be a
cleaner algorithm than the one you used.
Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
|
|
|