Color Contouring Proceedure Note [message #508] |
Fri, 11 September 1992 07:45 |
zawodny
Messages: 121 Registered: August 1992
|
Senior Member |
|
|
There was an immediate response to my offer of a color contouring
routine, so I will post it. It comes in two parts, CONTTW.PRO and EXPAND.PRO,
both of which have been tested to a fair degree. You may hack these to bits as
you see fit. I have indicated areas of CONTTW where you may wish to change
things (such as color tables, what is black and what is white etc.) with a
comment line containing ****. This routine has LOTS of keywords, some of which
interact with each other. Play with it for awhile before declaring that a
"feature" is a bug. I have no doubt that may of you will improve on this
routine, please keep me informed of enhancements.
EXPAND.PRO performs a two dimesional stretch (or shrink) of an array of
any size to any size via a bilinear interpolation (sort of like the way
CONGRIDI was supposed to work). Currently the result is always a floating
point array although the input may be anything. There is some interesting
manipulations of subscripts in this routine which may be of general interest to
the newcommer to IDL. See if you can figure out why it works.
Have fun but don't blame me.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *-*-*-*-*-*-*-*-*-*
Joseph M. Zawodny (KO4LW) NASA Langley Research Center
zawodny@arbd0.larc.nasa.gov MS-475, Hampton VA, 23681
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *-*-*-*-*-*-*-*-*-*
|
|
|