public abstract class NetCDF extends Form implements FormFileInformer
| Constructor and Description |
|---|
NetCDF(java.lang.String name)
Construct a netCDF data form.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getDefaultSuffixes()
Returns the path-component suffixes that identifies a dataset
specification as being a netCDF dataset specification.
|
boolean |
isThisType(byte[] block)
Indicates if a given block of bytes is the start of a netCDF dataset.
|
boolean |
isThisType(java.lang.String spec)
Indicates if a dataset specification is consistent with a netCDF dataset
specification.
|
abstract DataImpl |
open(java.lang.String path)
Open an existing file.
|
getMathTypepublic NetCDF(java.lang.String name)
name - The name for the family of netCDF data forms.public abstract DataImpl open(java.lang.String path) throws BadFormException, java.io.IOException, VisADException
open in class FormNodepath - The pathname of the file.BadFormException - netCDF couldn't handle VisAD object.VisADException - Couldn't create necessary VisAD object.java.io.IOException - I/O error.public boolean isThisType(java.lang.String spec)
isThisType in interface FormFileInformerspec - A dataset specification. NB: Not a URL.true if and only if the dataset
specification is consistent with a netCDF
dataset specification.public boolean isThisType(byte[] block)
isThisType in interface FormFileInformerblock - A block of data.public java.lang.String[] getDefaultSuffixes()
getDefaultSuffixes in interface FormFileInformer