boolean showDataset() {

    // temp kludge for initialization
    Iterable<Coverage> grids = coverageDataset.getCoverages();

    currentField = grids.iterator().next();   // first
    currentSlice = 0;
    currentLevel = 0;
    currentTime = 0;
    currentEnsemble = 0;
    currentRunTime = 0;

    eventsOK = false; // dont let this trigger redraw
    this.dataState = coverageRenderer.setCoverage(coverageDataset, currentField);
    coverageRenderer.setDataProjection(currentField.getCoordSys().getProjection());
    // setFields(grids);
    setField(currentField);

    // LOOK if possible, change the projection and the map area to one that fits this dataset
    ProjectionImpl dataProjection = currentField.getCoordSys().getProjection();
    if (dataProjection != null)
      setProjection(dataProjection);

    // ready to draw
    //draw(true);

    // events now ok
    eventsOK = true;
    return true;
  }
boolean showDataset() {

    
    Iterable<Coverage> grids = coverageDataset.getCoverages();

    currentField = grids.iterator().next();   
    currentSlice = 0;
    currentLevel = 0;
    currentTime = 0;
    currentEnsemble = 0;
    currentRunTime = 0;

    eventsOK = false; 
    this.dataState = coverageRenderer.setCoverage(coverageDataset, currentField);
    coverageRenderer.setDataProjection(currentField.getCoordSys().getProjection());
    
    setField(currentField);

    
    ProjectionImpl dataProjection = currentField.getCoordSys().getProjection();
    if (dataProjection != null)
      setProjection(dataProjection);

    
    

    
    eventsOK = true;
    return true;
  }
boolean showDataset ( ) { // temp kludge for initialization Iterable < Coverage > grids = coverageDataset . getCoverages ( ) ; currentField = grids . iterator ( ) . next ( ) ; // first currentSlice = 0 ; currentLevel = 0 ; currentTime = 0 ; currentEnsemble = 0 ; currentRunTime = 0 ; eventsOK = false ; // dont let this trigger redraw this . dataState = coverageRenderer . setCoverage ( coverageDataset , currentField ) ; coverageRenderer . setDataProjection ( currentField . getCoordSys ( ) . getProjection ( ) ) ; // setFields(grids); setField ( currentField ) ; // LOOK if possible, change the projection and the map area to one that fits this dataset ProjectionImpl dataProjection = currentField . getCoordSys ( ) . getProjection ( ) ; if ( dataProjection != null ) setProjection ( dataProjection ) ; // ready to draw //draw(true); // events now ok eventsOK = true ; return true ; }
assume that its done in the event thread
assume that its done in the event thread