public String findFileName(double lat,double lon,int level){
  if (directories != null) {
    for (Iterator it=directories.iterator(); it.hasNext(); ) {
      DTEDDirectoryHandler ddh=(DTEDDirectoryHandler)it.next();
      DTEDNameTranslator dnt=ddh.getTranslator();
      dnt.set(lat,lon,level);
      String dtedFileName=dnt.getName();
      if (Debug.debugging("dtedfile")) {
        Debug.output("DTEDFrameCache translator returns " + dtedFileName + " for "+ lat+ ", "+ lon+ ", level "+ level);
      }
      if (BinaryFile.exists(dtedFileName)) {
        return dtedFileName;
      }
    }
  }
  return null;
}

public String findFileName ( double lat , double lon , int level ) { if ( directories != null ) { for ( Iterator it = directories . iterator ( ) ; it . hasNext ( ) ; ) { DTEDDirectoryHandler ddh = ( DTEDDirectoryHandler ) it . next ( ) ; DTEDNameTranslator dnt = ddh . getTranslator ( ) ; dnt . set ( lat , lon , level ) ; String dtedFileName = dnt . getName ( ) ; if ( Debug . debugging ( "dtedfile" ) ) { Debug . output ( "DTEDFrameCache translator returns " + dtedFileName + " for " + lat + ", " + lon + ", level " + level ) ; } if ( BinaryFile . exists ( dtedFileName ) ) { return dtedFileName ; } } } return null ; }
a utility to find the path to a dted file , given a lat , lon and a dted level . assumes that paths have been given to the cache . lat / lons in decimal degrees .
