Re: [visad] new to visAD

Another way to approach this. First, if you will allow me to remake
your text file into this:

(x,y,z)->p
x,y,z,p
1, 3, 6, 1000
2, 12, 4, 1012
8, 18, 5, 1005
9,4, 7, 990

Then in Jython:

from visad.python.JPythonMethods import *
a = load("test.txt")
dumpTypes(a)

you get:

VisAD MathType analysis
  FunctionType:
  Domain has 3 components:
   0. RealType: x
   0.   Name = x
   1. RealType: y
   1.   Name = y
   2. RealType: z
   2.   Name = z
  Range:
    RealTupleType has 1 components:
     0. RealType: p
     0.   Name = p
- - - - - - - - - - - - - - - - - - - - - - -
DataType analysis...
    FlatField of length = 4
    ((x, y, z) -> p)
      Domain has 3 components:
        Irregular3DSet (x, y, z) Length = 4
      Range has 1 components:
        0. FloatSet (p) Dimension = 1
        0. number missing = 0

Is this what's you're after?  (Pardon my use of Jython -- it's just so
much quicker for me.....).

tom


On Thu, Mar 19, 2009 at 3:45 AM, Robert Stones <r.stones@xxxxxxxxxx> wrote:
> Hi
>
> I am new to visAD and I am having trouble in getting my head round
> converting my 3D data
> to the visAD data objects.
>
> Do you have a very simple example - if I have a file with:
>
> x  y     z
> 1  3     6
> 2  12    4
> 8  18    5
> 9  4     7
>
> how do I get this into a simple Set (3DGriddedSet - none linear) that I can
> then display
> in a 3D display.
>
> also for data where its irregular using Iregular3DSet - just a simple
> example using the
> simple data above.
>
> Struggling to follow the tutorials - a simple example of just reading in the
> data would
> get me on my way.
>
> Thanks
>
> Robert
>
> CSL Bioinformatics Internet Pages at http://bioinformatics.csl.gov.uk
> ----------------------------------------------------------------------
> Robert Stones         MRes, BSc                Phone:  +44 (0)1904 462675
> Higher Bioinformatics Specialist        GTN:    5129 2675
> Central Science Laboratory              Fax:    +44 (0)1904 462111
> Sand Hutton                             Email:  r.stones@xxxxxxxxxx
> York YO41 1LZ                           Web:    http://www.csl.gov.uk
> ----------------------------------------------------------------------
>
> _______________________________________________
> visad mailing list
> visad@xxxxxxxxxxxxxxxx
> For list information, to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>



-- 
Tom Whittaker
University of Wisconsin-Madison
Space Science & Engineering Center (SSEC)
Cooperative Institute for Meteorological Satellite Studies (CIMSS)
1225 W. Dayton Street
Madison, WI  53706  USA
ph: +1 608 262 2759



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