Colorbar has optional input for a fixed min and max. Open the configuration dialog box for the icon in the VPE and hit the expand button. You'll see the place to enter these values, which can also be passed from other modules. The default behavior uses the colormap passed to it. So, that's where the problem really sits. If you are using AutoColor or Colormap, then use should set your fixed min/max there. Then the output going to Colorbar will be a fixed colormap.
Isosurface->Sample(,4)->Glyph(,"text"), will place 4 labels on each iso-contour line. You may wish to adjust the number of sample points. You may also wish to adjust the color, font, size, etc. for the text glyphs. AutoGlyph will also work.
Please respond to [email protected]
Sent by: [EMAIL PROTECTED]
To: [email protected]
cc:
Subject: [opendx-users] feeding sequential file names to Import
Thanks again for the helpful response... now a follow-up question:
I'm now looking to label my contours, either with a colorbar or actual
labels over the contour. With the colorbar, I experienced the problem of
a varying color scale. That is to say, as the animation cycles through
each file of data, the actual labeled scale on the colorbar remains static
(I set max and min values), but the colors corresponding to the labels on
the bar change. I hope that makes sense. Thus, I am wondering how to
create a constant colorbar representing values from 0 to 235 using the
same colors throughout the whole animation. Also, how would I go about
putting contour labels directly over the image (I'm thinking of something
similar to the contour labels in IDL). What's the best way to go with
DX?
Thanks for your help,
Marissa Forbes
On Wed, 3 Jul 2002, Randall Hopper wrote:
> ForEachN( 0, 47 ) ---> Format( "s%.2d.general" ) ---> Import()
>
> Because of the ForEachN, the above executes 48 times and, one by one, feeds
> the filenames "s00.general", "s01.general", etc. to Import. Connect more
> modules downstream from Import to perform some useful task on the contents
> of those files (e.g. rendering an image and save it to a file using
> WriteImage).
>
> Note that the first arrow above connects the first output of ForEachN to
> the second input of Format (i.e. value). The "s%.2d.general" you see there
> is the first input (i.e. template -- the string describing how to format
> the string).
>
> You can use Sequencer instead of ForEachN if you need interactive selection
> of which timestep. But if you just want to rip through them in order
> without stopping, ForEachN will do the job.
>
> Also, you'll notice the ".general" I added to the filename. I don't know
> what format your files are in but I'm assuming you'll be creating .general
> files to describe your input files. If this isn't the case (maybe they're
> DX native files or text spreadsheet files), change this to suit.
>
> If you need help with the .general file, just let us know. "dx -prompter"
> can be used to create these.
>
> Randy
>
> Marissa Forbes:
> |A beginner question. I have 48 data files of identical format,
> |(labeled s00, s01, s02, etc... s47) representing data taken over a 48 hour
> |period. Ideally, I would like to import the files separately, without
> |concatenating them into one time-series file, and eventually make an
> |animation. If I understand correctly, this can be done with Sequencer,
> |Format, and Import. Yes? If, in fact, these are the modules I should be
> |using, it is not clear to me how they should be connected, nor am I clear
> |on what to enter for the "template" and "values" for the Format module.
> |Also, what filename should I give Import or the header file, since I am
> |hoping to cycle through 48 of them?
> |Any help would be greatly appreciated.
> |
> |TIA,
> |
> |Marissa Forbes
> --
> Randall Hopper (mailto:[EMAIL PROTECTED])
> Lockheed Martin Operation Support
> EPA Scientific Visualization Center
> US EPA N127-01; RTP, NC 27711
>
