visad.data.netcdf
Class InputNetcdf
- java.lang.Object
-
- visad.data.netcdf.InputNetcdf
-
- All Implemented Interfaces:
- java.io.Serializable
public class InputNetcdf extends java.lang.Object implements java.io.SerializableA Java bean for importing a netCDF file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description InputNetcdf()Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener p)Add a property change listener.DataImplgetData()Returns the VisAD data object property.java.lang.StringgetPathname()Returns the dataset pathname property.voidremovePropertyChangeListener(java.beans.PropertyChangeListener p)Remove a property change listener.voidsetPathname(java.lang.String name)Sets the dataset name property.voidsetQuantityDB(QuantityDB db)Set the quantity database property.
-
-
-
Constructor Detail
-
InputNetcdf
public InputNetcdf()
Construct. The pathname and data object properties will benull; the quantity database property will beStandardQuantityDB.
-
-
Method Detail
-
setQuantityDB
public void setQuantityDB(QuantityDB db) throws BadFormException, java.io.IOException, VisADException
Set the quantity database property. The quantity database is used to transform the incoming netCDF variables into their canonicalRealTypes. If no transformation is desired, then useQuantityDB.emptyDB. APropertyChangeEventforquantityDBwill be fired, if appropriate. If the pathname property is non-null, then the netCDF database will be read and aPropertyChangeEventfor the data property will be fired, if appropriate.- Parameters:
db- The new quantity database.- Throws:
java.lang.NullPointerException- if the argument isnull.BadFormException- if the netCDF dataset doesn't have the right form.java.io.IOException- if an error occurs while reading the netCDF dataset.VisADException- if a VisAD failure occurs.
-
setPathname
public void setPathname(java.lang.String name) throws java.io.IOException, VisADException, BadFormExceptionSets the dataset name property. If the name isnull, then the data property will be set tonull; otherwise, the dataset will be read.PropertyChangeEvents for the pathname and data properties will be fired when appropriate.- Parameters:
name- The new name of the dataset ornull.- Throws:
java.io.IOExceptionVisADExceptionBadFormException
-
getPathname
public java.lang.String getPathname()
Returns the dataset pathname property. Returnsnullif the property has no value.
-
getData
public DataImpl getData()
Returns the VisAD data object property. Returnsnullif the property has no value.
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener p)
Add a property change listener.
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener p)
Remove a property change listener.
-
-
DMelt 3.0 © DataMelt by jWork.ORG