public class Grib1TimePartitionBuilder extends Grib1CollectionBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
MAGIC_START |
cust, gc, isSingleFile, version| Modifier and Type | Method and Description |
|---|---|
static Grib1TimePartition |
createFromIndex(String name,
File directory,
RandomAccessFile raf) |
static Grib1TimePartition |
factory(TimePartitionCollection tpc,
CollectionManager.Force force,
Formatter f) |
String |
getMagicStart() |
static void |
main(String[] args) |
protected boolean |
readPartitions(GribCollectionProto.GribCollectionIndex proto) |
protected TimeCoordUnion |
readTimePartition(GribCollectionProto.TimeCoordUnion pc) |
protected void |
readTimePartitions(GribCollection.GroupHcs group,
GribCollectionProto.Group proto) |
protected GribCollection.VariableIndex |
readVariable(GribCollectionProto.Variable pv,
GribCollection.GroupHcs group) |
static boolean |
update(TimePartitionCollection tpc,
Formatter f) |
static boolean |
writeIndexFile(TimePartitionCollection tpc,
CollectionManager.Force force,
Formatter f)
write new index if needed
|
protected GribCollectionProto.TimeCoordUnion |
writeTimeCoordUnionProto(TimeCoordUnion tcu,
int index) |
createFromIndex, factory, getVersion, makeAggregatedGroups, needsUpdate, readIndex, readIndex, readOrCreateIndexFromSingleFile, update, writeCoordProto, writeCoordProto, writeCoordProto, writeIndexFile, writeParamProtopublic static final String MAGIC_START
public static boolean update(TimePartitionCollection tpc, Formatter f) throws IOException
IOExceptionpublic static Grib1TimePartition factory(TimePartitionCollection tpc, CollectionManager.Force force, Formatter f) throws IOException
IOExceptionpublic static Grib1TimePartition createFromIndex(String name, File directory, RandomAccessFile raf) throws IOException
IOExceptionpublic static boolean writeIndexFile(TimePartitionCollection tpc, CollectionManager.Force force, Formatter f) throws IOException
tpc - use this collectionforce - force indexf - put status messagess hereIOException - on errorpublic String getMagicStart()
getMagicStart in class Grib1CollectionBuilderprotected GribCollectionProto.TimeCoordUnion writeTimeCoordUnionProto(TimeCoordUnion tcu, int index) throws IOException
IOExceptionprotected boolean readPartitions(GribCollectionProto.GribCollectionIndex proto)
readPartitions in class Grib1CollectionBuilderprotected void readTimePartitions(GribCollection.GroupHcs group, GribCollectionProto.Group proto)
readTimePartitions in class Grib1CollectionBuilderprotected TimeCoordUnion readTimePartition(GribCollectionProto.TimeCoordUnion pc)
protected GribCollection.VariableIndex readVariable(GribCollectionProto.Variable pv, GribCollection.GroupHcs group)
readVariable in class Grib1CollectionBuilderpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 1999-2012 UCAR/Unidata. All Rights Reserved.