Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: read Data from files...

>How I can read data set (domain_typle) from a file? When I don?t use 
>Linear2Dset (.. )

You can import data files from a file into VisAD with:

String filename = "myfile.gif";
DefaultFamily loader = new DefaultFamily("loader");
Data d = loader.open(filename);
// go on to analyze the data, or whatever (e.g., ref.setData(d))

If you use this code, you don't have to construct your own Set
or anything--the loader will do it for you.  However, if you
need to reorganize the layout of the data or do complex
computations with it, you'll probably still need to muck about
with the MathTypes and such.

-Curtis


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