ucar.nc2.dods
Class ConvertD2N

java.lang.Object
  extended by ucar.nc2.dods.ConvertD2N

public class ConvertD2N
extends Object

Convert Dods object tree to netcdf.

Author:
caron

Constructor Summary
ConvertD2N()
           
 
Method Summary
 Array convert(ucar.nc2.dods.DodsV dataV)
          Convert a DataDDS into an Array
 Array convertNestedVariable(Variable v, List<Range> section, ucar.nc2.dods.DodsV dataV, boolean flatten)
          Convert a DataDDS into an Array for a Structure member variable.
 Array convertTopVariable(Variable v, List<Range> section, ucar.nc2.dods.DodsV dataV)
          Convert a DataDDS into an Array for a top level variable, ie not a Structure member variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertD2N

public ConvertD2N()
Method Detail

convertNestedVariable

public Array convertNestedVariable(Variable v,
                                   List<Range> section,
                                   ucar.nc2.dods.DodsV dataV,
                                   boolean flatten)
                            throws IOException,
                                   DAP2Exception
Convert a DataDDS into an Array for a Structure member variable.

Parameters:
v - must be a member of a structure
section - the requested variable section, as a List of type Range
dataV - the dataDDS has been parsed into this dodsV, this is the top variable containing v
flatten - if true, remove the StructureData "wrapper".
Returns:
the data as as Array
Throws:
IOException - on io error
DAP2Exception - on bad things happening

convertTopVariable

public Array convertTopVariable(Variable v,
                                List<Range> section,
                                ucar.nc2.dods.DodsV dataV)
                         throws IOException,
                                DAP2Exception
Convert a DataDDS into an Array for a top level variable, ie not a Structure member variable.

Parameters:
v - must be a top variable
section - the requested variable section
dataV - the dataDDS has been parsed into this dodsV
Returns:
the data as as Array
Throws:
IOException - on io error
DAP2Exception - on bad

convert

public Array convert(ucar.nc2.dods.DodsV dataV)
              throws IOException,
                     DAP2Exception
Convert a DataDDS into an Array

Parameters:
dataV - the dataDDS has been parsed into this dodsV
Returns:
the data as as Array
Throws:
IOException - on io error
DAP2Exception - on bad


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.