newbie, MacOS X, and other woes.

Dear VisAd users,
I just started using VisAd and have gone through the 2D examples by Ugo Taddei. Well as much as I could considering... The issue is that any time I am using more than one ScalarMap for a data set I get a bus error (read potential memory leak). Now I can create more than one Map for a dataset but cannot .addMap() it <shrug>. For example in the contour example:

    tempIsoMap = new ScalarMap( data, Display.IsoContour );
    tempRGBMap = new ScalarMap( data, Display.RGB );

this works fine for:

    display.addMap( latMap );
    display.addMap( lonMap );

    display.addMap( tempRGBMap );

so I get a shaded map of my data that is good but I'd like contours instead. If I use:

    display.addMap( latMap );
    display.addMap( lonMap );

    display.addMap( tempIsoMap );
    display.addMap( tempRGBMap );

    <plus all the iso-contour bits as well>

I get a "Bus error" which usually means a memory fault. I even tried recompiling the classes but the same error occurs.


Does anyone have any suggestions, I am using MacOS X 10.0.4 and Java 3.1 DP2 by the way.

My main desire to use multiple maps with shading is so that I can use the .setRange() for topo data, blue hues for elevation below sea level and green hues above. I could use an index map (a la GMT) instead I guess, but I have not learned enough of the VisAd to work that out yet.
--
---
                                              TTFN  Dirk  =:>

/--------------------------------------------------------------\
|    Dirk Slawinski     |    The Centre for Water Research     |
|  Research Associate   |   University of Western Australia    |
|                                                              |
| PHONE:  +61 8 9380 2410                        ,-_|\         |
|   FAX:  +61 8 9380 1015               (Perth) /     \   ]]   |
| EMAIL:  slawinski@xxxxxxxxxxxxxx              *_,-._/  d")   |
|   WEB:  http://www.cwr.uwa.edu.au/~slawinski/      v   _(@)_ |
\--------------------------------------------------------------/


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: