Thunderstorm tracks: Merging Sets

I'm developing a program to visualise severe thunderstorm tracks.
How I'm organising the data is based loosely on Test03, and I
can reproduce the problem using Test03.

Basically I want to display the tracks as a time series (animate them),
but each track has different time resolutions similar to the data
in Test03.
The difference is that Test03 has the same start and end times
for it's data, though different time resolutions.
The thunderstorm data I'm working with can have any start time and
any end time, as well as different resolutions.
It seems a bit restrictive to demand the start and end times be the same.
Is there a way around this?

Thanks in advance,


Modification to to illustrate the problem:

    int ntimes1 = 4;
    int ntimes2 = 6;
    // different time resolution test
    // 2 May 99, 15:51:00
    double start = new DateTime(1999, 122, 57060).getValue();
    Set time_set =                        // 4 times: start+0, +1000, +2000,
      new Linear1DSet(time_type, start, start + 3000.0, ntimes1);
    // added line to force start time of second set to be different to first
set, jmk jan 2000:
    start +=1000                          // 6 times were : start+0,
    double[][] times =                 // 6 times now : start+1000,
      {{start, start + 600.0, start + 1200.0,
        start + 1800.0, start + 2400.0, start + 3000.0}};
    Set time_hornet = new Gridded1DDoubleSet(time_type, times, 6);

Running this modified Test03 produces the following ArrayIndexOutOfBounds

java Test03
java.lang.ArrayIndexOutOfBoundsException: -1
        at visad.Set.merge1DSets(
        at visad.DataShadow.setAnimationSampling(
        at visad.SimpleSet.setAnimationSampling(
        at visad.SampledSet.computeRanges(
        at visad.FieldImpl.computeRanges(
        at visad.Tuple.computeRanges(
        at visad.DataImpl.computeRanges(
        at visad.DataRenderer.prepareAction(Compiled Code)
        at visad.DisplayImpl.doAction(Compiled Code)
        at Code)
        at visad.util.ThreadPool$ Code)

James Kelly
Regional Computing and Distributed Systems        Bureau of Meteorology
PO Box 1289K                                  Melbourne 3001, Australia
Phone: 61-3-9669-4724 Fax: 61-3-9669-4128     Email: J.Kelly@xxxxxxxxxx

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