ucar.visad
Class ZebraAsciiMapAdapter

java.lang.Object
  extended by ucar.visad.ZebraAsciiMapAdapter

public class ZebraAsciiMapAdapter
extends Object

VisAD Adapter for Zebra ASCII map files

Version:
$Revision: 1.4 $ $Date: 2005/05/13 18:34:07 $
Author:
MetApps Development Team

Constructor Summary
ZebraAsciiMapAdapter(InputStream is)
          Construct the adapter from an input stream
ZebraAsciiMapAdapter(String filename)
          Construct the adapter from the filename specification.
ZebraAsciiMapAdapter(URL url)
          Construct the adapter from the URL location
 
Method Summary
 UnionSet getData()
          Get the Data object.
static void main(String[] args)
          Test by running java ucar.visad.ZebraAsciiMapAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZebraAsciiMapAdapter

public ZebraAsciiMapAdapter(String filename)
                     throws IOException,
                            VisADException
Construct the adapter from the filename specification.

Parameters:
filename - path to file
Throws:
VisADException - couldn't create the data object
IOException - problem reading in file

ZebraAsciiMapAdapter

public ZebraAsciiMapAdapter(URL url)
                     throws IOException,
                            VisADException
Construct the adapter from the URL location

Parameters:
url - URL path to file
Throws:
VisADException - couldn't create the data object
IOException - problem reading in file

ZebraAsciiMapAdapter

public ZebraAsciiMapAdapter(InputStream is)
                     throws IOException,
                            VisADException
Construct the adapter from an input stream

Parameters:
is - InputStream for the data
Throws:
VisADException - couldn't create the data object
IOException - problem reading in file
Method Detail

getData

public UnionSet getData()
                 throws VisADException
Get the Data object.

Returns:
UnionSet of Gridded2DSets of map lines.
Throws:
VisADException - can't create the VisAD data objects

main

public static void main(String[] args)
                 throws Exception
Test by running java ucar.visad.ZebraAsciiMapAdapter

Parameters:
args - mapfile locations (filenames
Throws:
Exception - if there is a problem