visad/src/main/java/ucar/nc2/iosp/gempak/AbstractGempakStationFileReader.java
public int findStationIndex(String id) {
    for (GempakStation station : getStations()) {
      if (station.getSTID().equals(id)) {
        return station.getIndex();
      }
    }
    return -1;
  }
public int findStationIndex(String id) {
    for (GempakStation station : getStations()) {
      if (station.getSTID().equals(id)) {
        return station.getIndex();
      }
    }
    return -1;
  }
public int findStationIndex ( String id ) { for ( GempakStation station : getStations ( ) ) { if ( station . getSTID ( ) . equals ( id ) ) { return station . getIndex ( ) ; } } return - 1 ; }
Find the station index for the specified station id.

@param id station id (case sensitive)
@return index or -1 if not found.
Find the station index for the specified station id .