public abstract class NetCDF extends Form implements FormFileInformer
Constructor and Description |
---|
NetCDF(String name)
Construct a netCDF data form.
|
Modifier and Type | Method and Description |
---|---|
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(String spec)
Indicates if a dataset specification is consistent with a netCDF dataset
specification.
|
abstract DataImpl |
open(String path)
Open an existing file.
|
getMathType
public NetCDF(String name)
name
- The name for the family of netCDF data forms.public abstract DataImpl open(String path) throws BadFormException, IOException, VisADException
open
in class FormNode
path
- The pathname of the file.BadFormException
- netCDF couldn't handle VisAD object.VisADException
- Couldn't create necessary VisAD object.IOException
- I/O error.public boolean isThisType(String spec)
isThisType
in interface FormFileInformer
spec
- 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 FormFileInformer
block
- A block of data.public String[] getDefaultSuffixes()
getDefaultSuffixes
in interface FormFileInformer
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.