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.

LinearLatLonSet or other?

If I have a file that contains a bunch of lat/lon points that record
where samples where taken and in separate files are the respective
samples.
(For this question assume everything is 2D)

I initially used VisAD to do something like this:

----------------------------

RealyType latitude,longitude,variable;
domain_tuple = new RealTupleType(latitude, longitude);

domain_set = new LinearLatLonSet
        (domain_tuple, latMin, latMax, Ny, lonMin, lonMax, Nx);

float[][] flat_samples = <read in my samples>
func_domain_range = new FunctionType(domain_tuple, variable);
vals_ff = new FlatField(func_domain_range, domain_set);
vals_ff.setSamples(flat_samples, false);

---------------------------

My question is should I be using something other than LinearLatLonSet
and actually read in all my points instead in an float[1][Nx*Ny]?
(To be more accurate?)

Thanks,
Ben



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