ucar.grib
Class GribReadTextIndex

java.lang.Object
  extended by ucar.grib.GribReadTextIndex

public class GribReadTextIndex
extends Object

Read an old style text index and returns a GridIndex


Field Summary
static String currentTextIndexVersion
          Current Text index version.
 
Constructor Summary
GribReadTextIndex()
          Constructor for reading an existing text Index and making a GridIndex object.
 
Method Summary
static void main(String[] args)
          testing
 GridIndex open(String location)
          open Grib Index file for scanning.
 GridIndex open(String location, InputStream ios)
          open Grib Index file for scanning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentTextIndexVersion

public static String currentTextIndexVersion
Current Text index version. If before this version, the gdsKey needs to be reduced to an int. Also the Text index version has to be < 7.0

Constructor Detail

GribReadTextIndex

public GribReadTextIndex()
Constructor for reading an existing text Index and making a GridIndex object.

Method Detail

open

public GridIndex open(String location)
               throws IOException
open Grib Index file for scanning.

Parameters:
location - URL or local filename of Grib Index file
Returns:
false if does not match current version; you should regenerate it in that case.
Throws:
IOException - on read error

open

public GridIndex open(String location,
                      InputStream ios)
               throws IOException
open Grib Index file for scanning.

Parameters:
location - URL or local filename of Grib Index file
ios - input stream
Returns:
gridIndex.
Throws:
IOException - on read error

main

public static void main(String[] args)
                 throws IOException
testing

Parameters:
args - index to read
Throws:
IOException - on read error


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.