|
||||||||||
| 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.gempak.GempakSurfaceIOSP
public class GempakSurfaceIOSP
An IOSP for Gempak Surface data. Warning: This is a work in progress and does not give readable files yet!
| Nested Class Summary | |
|---|---|
protected static class |
GempakSurfaceIOSP.MakeNetcdfFile
TODO: generalize this static class for testing |
| Field Summary | |
|---|---|
protected GempakSurfaceFileReader |
gemreader
Gempak file reader |
protected NetcdfFile |
ncfile
The netCDF file |
protected java.lang.StringBuilder |
parseInfo
place to store debug stuff |
protected RandomAccessFile |
raf
the file we are reading |
| Constructor Summary | |
|---|---|
GempakSurfaceIOSP()
|
|
| Method Summary | |
|---|---|
void |
close()
Close this IOSP |
java.lang.String |
getDetailInfo()
Get the detail information |
java.lang.String |
getFileTypeDescription()
Get the file type description |
java.lang.String |
getFileTypeId()
Get the file type id |
boolean |
isValidFile(RandomAccessFile raf)
Is this a valid file? |
static void |
main(java.lang.String[] args)
Test this. |
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 |
boolean |
sync()
Sync the file |
boolean |
syncExtend()
Sync and extend |
| Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider |
|---|
copyToByteChannel, createValidNetcdfObjectName, getFileTypeVersion, getStructureIterator, readSection, readToByteChannel, sendIospMessage, toStringDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NetcdfFile ncfile
protected RandomAccessFile raf
protected GempakSurfaceFileReader gemreader
protected java.lang.StringBuilder parseInfo
| Constructor Detail |
|---|
public GempakSurfaceIOSP()
| Method Detail |
|---|
public boolean isValidFile(RandomAccessFile raf)
throws java.io.IOException
raf - RandomAccessFile to check
java.io.IOException - problem reading filepublic java.lang.String getFileTypeId()
public java.lang.String getFileTypeDescription()
public void open(RandomAccessFile raf,
NetcdfFile ncfile,
CancelTask cancelTask)
throws java.io.IOException
raf - file to read fromncfile - netCDF file we are writing to (memory)cancelTask - task for cancelling
java.io.IOException - problem reading file
public void close()
throws java.io.IOException
close in interface IOServiceProviderclose in class AbstractIOServiceProviderjava.io.IOException - problem closing filepublic boolean syncExtend()
syncExtend in interface IOServiceProvidersyncExtend in class AbstractIOServiceProviderpublic java.lang.String getDetailInfo()
getDetailInfo in interface IOServiceProvidergetDetailInfo in class AbstractIOServiceProvider
public boolean sync()
throws java.io.IOException
sync in interface IOServiceProvidersync in class AbstractIOServiceProviderjava.io.IOException - problem synching the file
public Array readData(Variable v2,
Section section)
throws java.io.IOException,
InvalidRangeException
v2 - Variable to readsection - section infomation
java.io.IOException - problem reading from file
InvalidRangeException - invalid RangeRange
public static void main(java.lang.String[] args)
throws java.io.IOException
args - file name
java.io.IOException - problem reading the file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||