extracting data from a field

I am trying to traverse through the structure of a field and extract the data
for verification purposes.

Here is a snippet of code.

DataImpl mofStructure = plain.open(args[0]); //open and load netcdf file
FieldImpl mofField = (FieldImpl)mofStructure; //convert to fieldimpl
Data mofData = mofField.getSample(0);  //get first sample

The data object received from 'getSample()' is of type Real.
It should be tuple however I cannot cast it to Tuple and therefore cannot
access the data (through getData() from tuple).
How do I access the data?

thanks


--------------------------------
Cameron Shepherdley
Australian Bureau Of Meteorology
AutoTAF Project Team


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