|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.AbstractIOServiceProvider
ucar.nc2.iosp.grads.GradsBinaryGridServiceProvider
public class GradsBinaryGridServiceProvider
IOSP for GrADS Binary data files. This IOSP only handles the binary formatted grids, most other GrADS data types can be read directly through other IOSPs
Field Summary | |
---|---|
protected GradsDataDescriptorFile |
gradsDDF
GrADS file reader |
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
raf |
Constructor Summary | |
---|---|
GradsBinaryGridServiceProvider()
|
Method Summary | |
---|---|
protected void |
buildNCFile()
Build the netCDF file |
void |
close()
Close this IOSP and associated files |
String |
getFileTypeDescription()
Get the file type description |
String |
getFileTypeId()
Get the file type id |
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file? For this GrADS IOSP, the valid file must be: raw binary grid (not GRIB, netCDF, HDF, etc) not a cross section (x and y > 1) not an ensemble definded by EDEF/ENDEDEF (need examples) |
void |
open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
Open the service provider for reading. |
Array |
readData(Variable v2,
Section section)
Read the data for the variable |
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
---|
getDetailInfo, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, sendIospMessage, sync, syncExtend, toStringDebug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GradsDataDescriptorFile gradsDDF
Constructor Detail |
---|
public GradsBinaryGridServiceProvider()
Method Detail |
---|
public boolean isValidFile(RandomAccessFile raf) throws IOException
raf
- RandomAccessFile to check
IOException
- problem reading filepublic String getFileTypeId()
public String getFileTypeDescription()
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException
open
in interface IOServiceProvider
open
in class AbstractIOServiceProvider
raf
- file to read fromncfile
- netCDF file we are writing to (memory)cancelTask
- task for cancelling
IOException
- problem reading fileprotected void buildNCFile() throws IOException
IOException
- problem reading the filepublic void close() throws IOException
close
in interface IOServiceProvider
close
in class AbstractIOServiceProvider
IOException
- problem closing filespublic Array readData(Variable v2, Section section) throws IOException, InvalidRangeException
v2
- Variable to readsection
- section infomation
IOException
- problem reading from file
InvalidRangeException
- invalid RangeRange
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |