public class InputNetcdf extends Object implements Serializable
Constructor and Description |
---|
InputNetcdf()
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener p)
Add a property change listener.
|
DataImpl |
getData()
Returns the VisAD data object property.
|
String |
getPathname()
Returns the dataset pathname property.
|
void |
removePropertyChangeListener(PropertyChangeListener p)
Remove a property change listener.
|
void |
setPathname(String name)
Sets the dataset name property.
|
void |
setQuantityDB(QuantityDB db)
Set the quantity database property.
|
public InputNetcdf()
null
; the quantity database property will be StandardQuantityDB
.public void setQuantityDB(QuantityDB db) throws BadFormException, IOException, VisADException
RealType
s. If no transformation is desired, then use QuantityDB.emptyDB
. A PropertyChangeEvent
for quantityDB
will be fired, if appropriate. If the pathname property is
non-null
, then the netCDF database will be read and a PropertyChangeEvent
for the data property will be fired, if appropriate.db
- The new quantity database.NullPointerException
- if the argument is null
.BadFormException
- if the netCDF dataset doesn't have the
right form.IOException
- if an error occurs while reading the netCDF
dataset.VisADException
- if a VisAD failure occurs.public void setPathname(String name) throws IOException, VisADException, BadFormException
null
,
then the data property will be set to null
; otherwise,
the dataset will be read. PropertyChangeEvent
s for the
pathname and data properties will be fired when appropriate.name
- The new name of the dataset or
null
.IOException
VisADException
BadFormException
public String getPathname()
null
if the
property has no value.public DataImpl getData()
null
if the
property has no value.public void addPropertyChangeListener(PropertyChangeListener p)
public void removePropertyChangeListener(PropertyChangeListener p)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.