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 String
bufrFilename
long
end
String
idxFilename
static String
MAGIC_START
static String
NCX_IDX
long
nobs
BufrCdmIndexProto.Field
root
long
start
List<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 File
calcIndexFile(String bufrFilename)
static BufrCdmIndex
readIndex(String indexFilename)
protected boolean
readIndex(RandomAccessFile raf)
void
showIndex(Formatter f)
static boolean
writeIndex(String bufrFilename, BufrConfig config, File idxFile)
static boolean
writeIndex(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(RandomAccessFile raf)
-
showIndex
public void showIndex(Formatter f)
-
-