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

FileFlatField

Bill, et al.,

Suppose I want to construct a FlatField for a 5D double dataset.
Here is some example code.

====================================================================

RealType dimension_types[] = {new RealType("dim1"), new RealType("dim1"),
    new RealType("dim2"), new RealType("dim3"), new RealType("dim4")};
RealTupleType domain = new RealTupleType(dimension_types);
RealTupleType range = new RealTupleType(new RealType("Data range"));
FunctionType field_type = new FunctionType(domain, range);

int[] d = {1000, 500, 100, 50, 20};
IntegerNDSet domain_set = new IntegerNDSet(domain, d);
DoubleSet[] range_set = {new DoubleSet(range)};
FlatField ff = new FlatField(field_type, domain_set, null, null, range_set,
null);
======================================================================

Obviously, it will not work because the dataset has 400GB
(1000*500*100*50*20*8).
So I want to use FileFlatField instead of FlatField. There is only one
constructor
for FileFlatField, FileFlatField(FileAccessor accessor, CacheStrategy
strategy).
I don't know how to set the FileAccessor and CacheStrategy. I couldn't find
any 
such example in the Developers Guide. Could tell me how to construct such a 
FileFlatField ?




-----------------------------------------------------------
Thanks,

Peter Xiangchi Cao
Tel. (217) 244-3830
Fax. (217) 244-1987
Scientific Data Technologies Division
National Center for Supercomputing Applications

 
 
  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