Package ucar.nc2.ft.point.bufr
Class BufrCdmIndex
- java.lang.Object
-
- ucar.nc2.ft.point.bufr.BufrCdmIndex
-
public class BufrCdmIndex extends Object
Manage cdm index (ncx) for Bufr files. Covers BufrCdmIndexProto Never completed for operational use, could redo as needed- Since:
- 8/14/13
-
-
Field Summary
Fields Modifier and Type Field Description StringbufrFilenamelongendStringidxFilenamestatic StringMAGIC_STARTstatic StringNCX_IDXlongnobsBufrCdmIndexProto.FieldrootlongstartList<BufrCdmIndexProto.Station>stations
-
Constructor Summary
Constructors Constructor Description BufrCdmIndex()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FilecalcIndexFile(String bufrFilename)static BufrCdmIndexreadIndex(String indexFilename)protected booleanreadIndex(ucar.unidata.io.RandomAccessFile raf)voidshowIndex(Formatter f)static booleanwriteIndex(String bufrFilename, BufrConfig config, File idxFile)static booleanwriteIndex(BufrCdmIndex index, BufrField root, File indexFile)
-
-
-
Field Detail
-
MAGIC_START
public static final String MAGIC_START
- See Also:
- Constant Field Values
-
NCX_IDX
public static final String NCX_IDX
- See Also:
- Constant Field Values
-
idxFilename
public String idxFilename
-
bufrFilename
public String bufrFilename
-
root
public BufrCdmIndexProto.Field root
-
stations
public List<BufrCdmIndexProto.Station> stations
-
start
public long start
-
end
public long end
-
nobs
public long nobs
-
-
Method Detail
-
writeIndex
public static boolean writeIndex(String bufrFilename, BufrConfig config, File idxFile) throws IOException
- Throws:
IOException
-
readIndex
public static BufrCdmIndex readIndex(String indexFilename) throws IOException
- Throws:
IOException
-
writeIndex
public static boolean writeIndex(BufrCdmIndex index, BufrField root, File indexFile) throws IOException
- Throws:
IOException
-
readIndex
protected boolean readIndex(ucar.unidata.io.RandomAccessFile raf)
-
showIndex
public void showIndex(Formatter f)
-
-