public class Nc4reader
extends ucar.nc2.iosp.AbstractIOServiceProvider
| Constructor and Description |
|---|
Nc4reader() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.Group.Builder rootGroup,
ucar.nc2.util.CancelTask cancelTask) |
void |
close() |
String |
getFileTypeDescription() |
String |
getFileTypeId() |
String |
getFileTypeVersion() |
boolean |
isValidFile(ucar.unidata.io.RandomAccessFile raf)
Checks whether
raf is a valid file NetCDF-4 file. |
ucar.ma2.Array |
readData(ucar.nc2.Variable v2,
ucar.ma2.Section section) |
Object |
sendIospMessage(Object message) |
public boolean isValidFile(ucar.unidata.io.RandomAccessFile raf)
throws IOException
raf is a valid file NetCDF-4 file. Actually, it checks whether it is a valid HDF-5 file of
any type.
Furthermore, it checks whether the NetCDF C library is available on the system. If both conditions are satisfied,
this method returns
true; otherwise it returns false.raf - a file on disk.true if raf is a valid HDF-5 file and the NetCDF C library is available.IOException - if an I/O error occurs.public String getFileTypeDescription()
public String getFileTypeId()
public String getFileTypeVersion()
getFileTypeVersion in interface ucar.nc2.iosp.IOServiceProvidergetFileTypeVersion in class ucar.nc2.iosp.AbstractIOServiceProviderpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ucar.nc2.iosp.IOServiceProviderclose in class ucar.nc2.iosp.AbstractIOServiceProviderIOExceptionpublic Object sendIospMessage(Object message)
sendIospMessage in interface ucar.nc2.iosp.IOServiceProvidersendIospMessage in class ucar.nc2.iosp.AbstractIOServiceProviderpublic void build(ucar.unidata.io.RandomAccessFile raf,
ucar.nc2.Group.Builder rootGroup,
ucar.nc2.util.CancelTask cancelTask)
throws IOException
IOExceptionpublic ucar.ma2.Array readData(ucar.nc2.Variable v2,
ucar.ma2.Section section)
throws IOException,
ucar.ma2.InvalidRangeException
IOExceptionucar.ma2.InvalidRangeException