dods.clients.matlab
Class MatlabDods

java.lang.Object
  extended by dods.clients.matlab.MatlabDods

public class MatlabDods
extends Object

Provides an interface to the Java DAP library to be used by matlab

Version:
1.0
Author:
rhonhart Modified by Long Yan. add GUI function

Field Summary
protected static DConnect connect
           
protected static DAS das
           
protected static DDS dds
           
 
Constructor Summary
MatlabDods(String url)
          Construct a new MatlabDods with dods url url.
 
Method Summary
 void downloadDAS()
          Download the dods DAS and store it locally.
 void downloadData(String ce)
          Download the dods data and store it locally.
 void downloadDDS()
          Download the dods DAS and store it locally.
 AttributeTable getAttrTable(String name)
          Return the AttributeTable with name name.
 Enumeration getAttrTableNames()
          Return an Enumeration of the names of the Attr tables in the dataset.
 Enumeration getVariables()
          Return an Enumeration of the variables in the dataset.
 int numVariables()
          Return the number of variables in the dataset (0 if the data hasn't been downloaded yet).
 String printDASToString()
           
 void printDDS()
          Print the DDS of the dataset
 String printDDSToString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

das

protected static DAS das

dds

protected static DDS dds

connect

protected static DConnect connect
Constructor Detail

MatlabDods

public MatlabDods(String url)
           throws FileNotFoundException
Construct a new MatlabDods with dods url url.

Parameters:
url - The dods url (without ce) to connect to
Throws:
FileNotFoundException
Method Detail

downloadData

public void downloadData(String ce)
                  throws Exception
Download the dods data and store it locally.

Parameters:
ce - The constraint expression to use when downloading the dataset.
Throws:
Exception

downloadDDS

public void downloadDDS()
                 throws Exception
Download the dods DAS and store it locally.

Throws:
Exception

downloadDAS

public void downloadDAS()
                 throws Exception
Download the dods DAS and store it locally.

Throws:
Exception

printDDS

public void printDDS()
              throws Exception
Print the DDS of the dataset

Throws:
Exception

printDDSToString

public String printDDSToString()

printDASToString

public String printDASToString()

numVariables

public int numVariables()
Return the number of variables in the dataset (0 if the data hasn't been downloaded yet).

Returns:
the number of variables in the dataset.

getVariables

public Enumeration getVariables()
Return an Enumeration of the variables in the dataset.

Returns:
an Enumeration of the variables in the dataset.

getAttrTableNames

public Enumeration getAttrTableNames()
Return an Enumeration of the names of the Attr tables in the dataset.

Returns:
Enumeration of the names of the Attribute tables in the dataset.

getAttrTable

public AttributeTable getAttrTable(String name)
Return the AttributeTable with name name.

Parameters:
name - The name of the attribute
Returns:
the AttributeTable with name name.