public void organize(){
  if (DEBUG) {
    logger.fine("organizing frames...");
  }
  initFileHolder();
  Iterator it=filenames.iterator();
  DTEDNameTranslator dnt=getTranslator();
  while (it.hasNext()) {
    File file=(File)it.next();
    String filename=file.getAbsolutePath();
    try {
      dnt.set(filename);
      int l=dnt.getLevel();
      int lt=(int)(dnt.getLat() + 90);
      int ln=(int)(dnt.getLon() + 180);
      if (DEBUG) {
        logger.fine("  placing " + filename + " at files["+ l+ "]["+ lt+ "]["+ ln+ "]");
      }
      files[l][lt][ln]=file;
    }
 catch (    FormatException fe) {
      continue;
    }
catch (    ArrayIndexOutOfBoundsException aioobe) {
      continue;
    }
  }
}

public void organize ( ) { if ( DEBUG ) { logger . fine ( "organizing frames..." ) ; } initFileHolder ( ) ; Iterator it = filenames . iterator ( ) ; DTEDNameTranslator dnt = getTranslator ( ) ; while ( it . hasNext ( ) ) { File file = ( File ) it . next ( ) ; String filename = file . getAbsolutePath ( ) ; try { dnt . set ( filename ) ; int l = dnt . getLevel ( ) ; int lt = ( int ) ( dnt . getLat ( ) + 90 ) ; int ln = ( int ) ( dnt . getLon ( ) + 180 ) ; if ( DEBUG ) { logger . fine ( "  placing " + filename + " at files[" + l + "][" + lt + "][" + ln + "]" ) ; } files [ l ] [ lt ] [ ln ] = file ; } catch ( FormatException fe ) { continue ; } catch ( ArrayIndexOutOfBoundsException aioobe ) { continue ; } } }
after all the files have been located , organized them spatially in the 3d array .
