Notable Coyote Program Updates [message #73662] |
Tue, 23 November 2010 07:41  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
As some of you have probably realized, I'm in the process
of completely refurbishing my Coyote Library. This is what
happens when you start writing a book. Explaining how
something works gives you a MUCH better idea of how
something *ought* to work!
The work is on-going and probably won't be completely
finished until early next year. But I wanted to give
you a heads-up on a couple of notable changes today.
I have made the TVScale command completely obsolete
by moving all the unique TVScale functionality over
to TVImage. This means you can scale images on the
fly with TVImage using the "normal" scaling keywords:
MinValue, MaxValue, Bottom, Top, and NColors.
I particularly like the NCOLORS and BOTTOM keywords
together, because you can immediately scale image
data into, say, 12 colors like this:
IDL> LoadCT, 33, NColors=12, Bottom=1
IDL> TVImage, image, NColors=12, Bottom=1
Pretty neat. :-)
There is also a conflict in IDL 8 with the old IDL
ARROW program, which is still in the IDL lib directory.
This conflicts with the ARROW function, which is in
the lib/graphics directory. If you want to use the
*old* ARROW program, you need to name it something
else. Since I was renaming it, and since I wanted to
add additional functionality to it, including making
it machine and color mode independent, I just decided
to do it right, so I've named this FSC_Arrow and put
it in the Coyote Library.
Finally, I have replaced ZPLOT and ZIMAGE, which provide
interactive zooming into line plots and images,
respectively, with FSC_ZPlot and FSC_ZImage. These new
programs are device and color independent, and
FSC_ZImage now works with both 2D and True-Color images.
Plus, it works correctly with images that are very, very
large and wouldn't fit on your display.
I've made other small changes to the new FSC_*** series
of programs to make sure color variables don't change
data type as a result of program manipulation.
I appreciate the feedback from people who are using these
programs. They are getting pretty darn good, if I do say
so myself. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Notable Coyote Program Updates [message #73724 is a reply to message #73662] |
Wed, 24 November 2010 10:59   |
Jianbao
Messages: 16 Registered: December 2008
|
Junior Member |
|
|
On Nov 23, 8:41 am, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> As some of you have probably realized, I'm in the process
> of completely refurbishing my Coyote Library. This is what
> happens when you start writing a book. Explaining how
> something works gives you a MUCH better idea of how
> something *ought* to work!
>
> The work is on-going and probably won't be completely
> finished until early next year. But I wanted to give
> you a heads-up on a couple of notable changes today.
>
> I have made the TVScale command completely obsolete
> by moving all the unique TVScale functionality over
> to TVImage. This means you can scale images on the
> fly with TVImage using the "normal" scaling keywords:
> MinValue, MaxValue, Bottom, Top, and NColors.
>
> I particularly like the NCOLORS and BOTTOM keywords
> together, because you can immediately scale image
> data into, say, 12 colors like this:
>
> IDL> LoadCT, 33, NColors=12, Bottom=1
> IDL> TVImage, image, NColors=12, Bottom=1
>
> Pretty neat. :-)
>
> There is also a conflict in IDL 8 with the old IDL
> ARROW program, which is still in the IDL lib directory.
> This conflicts with the ARROW function, which is in
> the lib/graphics directory. If you want to use the
> *old* ARROW program, you need to name it something
> else. Since I was renaming it, and since I wanted to
> add additional functionality to it, including making
> it machine and color mode independent, I just decided
> to do it right, so I've named this FSC_Arrow and put
> it in the Coyote Library.
>
> Finally, I have replaced ZPLOT and ZIMAGE, which provide
> interactive zooming into line plots and images,
> respectively, with FSC_ZPlot and FSC_ZImage. These new
> programs are device and color independent, and
> FSC_ZImage now works with both 2D and True-Color images.
> Plus, it works correctly with images that are very, very
> large and wouldn't fit on your display.
>
> I've made other small changes to the new FSC_*** series
> of programs to make sure color variables don't change
> data type as a result of program manipulation.
>
> I appreciate the feedback from people who are using these
> programs. They are getting pretty darn good, if I do say
> so myself. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
As a person who has been using the Coyote library for years, I wanna
express my sincere gratefulness to you, Dr. Fanning, for all your hard
work. I am sure it will help people like me a lot. Happy thanksgiving!
|
|
|
|
|
Re: Notable Coyote Program Updates [message #73755 is a reply to message #73662] |
Tue, 23 November 2010 10:44   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Oh, and lest I sound ungrateful, thanks very much for the code updates. :o)
cheers,
paulv
Paul van Delst wrote:
> Hello David,
>
> Are you generating new tags of the updates in your repository as you complete them? Or are you waiting for the early
> next year date?
>
> cheers,
>
> paulv
>
>
> David Fanning wrote:
>> Folks,
>>
>> As some of you have probably realized, I'm in the process
>> of completely refurbishing my Coyote Library. This is what
>> happens when you start writing a book. Explaining how
>> something works gives you a MUCH better idea of how
>> something *ought* to work!
>>
>> The work is on-going and probably won't be completely
>> finished until early next year. But I wanted to give
>> you a heads-up on a couple of notable changes today.
>>
>> I have made the TVScale command completely obsolete
>> by moving all the unique TVScale functionality over
>> to TVImage. This means you can scale images on the
>> fly with TVImage using the "normal" scaling keywords:
>> MinValue, MaxValue, Bottom, Top, and NColors.
>>
>> I particularly like the NCOLORS and BOTTOM keywords
>> together, because you can immediately scale image
>> data into, say, 12 colors like this:
>>
>> IDL> LoadCT, 33, NColors=12, Bottom=1
>> IDL> TVImage, image, NColors=12, Bottom=1
>>
>> Pretty neat. :-)
>>
>> There is also a conflict in IDL 8 with the old IDL
>> ARROW program, which is still in the IDL lib directory.
>> This conflicts with the ARROW function, which is in
>> the lib/graphics directory. If you want to use the
>> *old* ARROW program, you need to name it something
>> else. Since I was renaming it, and since I wanted to
>> add additional functionality to it, including making
>> it machine and color mode independent, I just decided
>> to do it right, so I've named this FSC_Arrow and put
>> it in the Coyote Library.
>>
>> Finally, I have replaced ZPLOT and ZIMAGE, which provide
>> interactive zooming into line plots and images,
>> respectively, with FSC_ZPlot and FSC_ZImage. These new
>> programs are device and color independent, and
>> FSC_ZImage now works with both 2D and True-Color images.
>> Plus, it works correctly with images that are very, very
>> large and wouldn't fit on your display.
>>
>> I've made other small changes to the new FSC_*** series
>> of programs to make sure color variables don't change
>> data type as a result of program manipulation.
>>
>> I appreciate the feedback from people who are using these
>> programs. They are getting pretty darn good, if I do say
>> so myself. :-)
>>
>> Cheers,
>>
>> David
>>
|
|
|
Re: Notable Coyote Program Updates [message #73756 is a reply to message #73662] |
Tue, 23 November 2010 10:43   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Hello David,
Are you generating new tags of the updates in your repository as you complete them? Or are you waiting for the early
next year date?
cheers,
paulv
David Fanning wrote:
> Folks,
>
> As some of you have probably realized, I'm in the process
> of completely refurbishing my Coyote Library. This is what
> happens when you start writing a book. Explaining how
> something works gives you a MUCH better idea of how
> something *ought* to work!
>
> The work is on-going and probably won't be completely
> finished until early next year. But I wanted to give
> you a heads-up on a couple of notable changes today.
>
> I have made the TVScale command completely obsolete
> by moving all the unique TVScale functionality over
> to TVImage. This means you can scale images on the
> fly with TVImage using the "normal" scaling keywords:
> MinValue, MaxValue, Bottom, Top, and NColors.
>
> I particularly like the NCOLORS and BOTTOM keywords
> together, because you can immediately scale image
> data into, say, 12 colors like this:
>
> IDL> LoadCT, 33, NColors=12, Bottom=1
> IDL> TVImage, image, NColors=12, Bottom=1
>
> Pretty neat. :-)
>
> There is also a conflict in IDL 8 with the old IDL
> ARROW program, which is still in the IDL lib directory.
> This conflicts with the ARROW function, which is in
> the lib/graphics directory. If you want to use the
> *old* ARROW program, you need to name it something
> else. Since I was renaming it, and since I wanted to
> add additional functionality to it, including making
> it machine and color mode independent, I just decided
> to do it right, so I've named this FSC_Arrow and put
> it in the Coyote Library.
>
> Finally, I have replaced ZPLOT and ZIMAGE, which provide
> interactive zooming into line plots and images,
> respectively, with FSC_ZPlot and FSC_ZImage. These new
> programs are device and color independent, and
> FSC_ZImage now works with both 2D and True-Color images.
> Plus, it works correctly with images that are very, very
> large and wouldn't fit on your display.
>
> I've made other small changes to the new FSC_*** series
> of programs to make sure color variables don't change
> data type as a result of program manipulation.
>
> I appreciate the feedback from people who are using these
> programs. They are getting pretty darn good, if I do say
> so myself. :-)
>
> Cheers,
>
> David
>
|
|
|
Re: Notable Coyote Program Updates [message #73766 is a reply to message #73662] |
Mon, 29 November 2010 13:12  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Joe Zawodny writes:
> ... and I suppose combining the two with something like
>
> IDL> TVImage, image, NColors=12, Bottom=1, Color_Table=33
>
> would be asking for too much? I'm sure there is a good reason not to
> do this but, it is just an optional keyword after all.
It is not impossible to do, certainly. ScaleImage
in the Catalyst Library works like this, but there
an image is associated with colors and a coordinate
system, so it makes more sense to me.
I guess it is a philosophical thing. I believe in simple
tools for simple, everyday tasks. When I start thinking
for you, I become more like Microsoft Word than I really
care to be. TVImage doesn't really "know" about the image,
the way ScaleImage "knows" about the image. Because it is,
at heart a glorified TV command, TVIMAGE simply blasts pixels
onto the display.
I'd prefer to let you have some idea what you are doing
with color tables and let TVImage just feel like a smooth
plane in your hand. :-)
Cheers,
David
P.S. And, anyway, it is not just a COLOR_TABLE keyword.
It would have to be BREWER and REVERSE, too, to set up
colors the way I would like to set them up. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Notable Coyote Program Updates [message #73767 is a reply to message #73662] |
Mon, 29 November 2010 12:08  |
JMZawodny
Messages: 10 Registered: June 2007
|
Junior Member |
|
|
... and I suppose combining the two with something like
IDL> TVImage, image, NColors=12, Bottom=1, Color_Table=33
would be asking for too much? I'm sure there is a good reason not to
do this but, it is just an optional keyword after all.
Thanks,
Joe
On Nov 23, 10:41 am, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> As some of you have probably realized, I'm in the process
> of completely refurbishing my Coyote Library. This is what
> happens when you start writing a book. Explaining how
> something works gives you a MUCH better idea of how
> something *ought* to work!
>
> The work is on-going and probably won't be completely
> finished until early next year. But I wanted to give
> you a heads-up on a couple of notable changes today.
>
> I have made the TVScale command completely obsolete
> by moving all the unique TVScale functionality over
> to TVImage. This means you can scale images on the
> fly with TVImage using the "normal" scaling keywords:
> MinValue, MaxValue, Bottom, Top, and NColors.
>
> I particularly like the NCOLORS and BOTTOM keywords
> together, because you can immediately scale image
> data into, say, 12 colors like this:
>
> IDL> LoadCT, 33, NColors=12, Bottom=1
> IDL> TVImage, image, NColors=12, Bottom=1
>
> Pretty neat. :-)
>
> There is also a conflict in IDL 8 with the old IDL
> ARROW program, which is still in the IDL lib directory.
> This conflicts with the ARROW function, which is in
> the lib/graphics directory. If you want to use the
> *old* ARROW program, you need to name it something
> else. Since I was renaming it, and since I wanted to
> add additional functionality to it, including making
> it machine and color mode independent, I just decided
> to do it right, so I've named this FSC_Arrow and put
> it in the Coyote Library.
>
> Finally, I have replaced ZPLOT and ZIMAGE, which provide
> interactive zooming into line plots and images,
> respectively, with FSC_ZPlot and FSC_ZImage. These new
> programs are device and color independent, and
> FSC_ZImage now works with both 2D and True-Color images.
> Plus, it works correctly with images that are very, very
> large and wouldn't fit on your display.
>
> I've made other small changes to the new FSC_*** series
> of programs to make sure color variables don't change
> data type as a result of program manipulation.
>
> I appreciate the feedback from people who are using these
> programs. They are getting pretty darn good, if I do say
> so myself. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|