Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690