protected Entry getSpreadEntry(Request request, ServiceInput dpi,
                                   Entry sample, String climstartYear,
                                   String climendYear)
            throws Exception {
        Entry sprdEntry = null;
        //System.err.println("Creating spread");
        //String statName = "mean";
        String statName = "ens01";  // per Marty hoerling - just use the spread of one member
        // Find the mean
        List<Entry> mean = findStatisticEntry(request, sample, statName);
        if ((mean == null) || mean.isEmpty()) {
            //System.err.println("Couldn't find " + statName);
            // TODO: Should we just exit if no mean?
            sprdEntry = sample;
        } else if (mean.size() > 1) {
            System.err.println("found too many");
        } else {
            sprdEntry = mean.get(0);
            //System.err.println("found mean: " + sprdEntry);
        }
        //sprdEntry = sample;
        // Now make the spread from the mean
        String stail =
            getOutputHandler().getStorageManager().getFileTail(sprdEntry);
        sprdEntry = makeStatistic(request, sprdEntry, dpi, stail, "smegma",
                                  climstartYear, climendYear);
        return sprdEntry;
    }
protected Entry getSpreadEntry(Request request, ServiceInput dpi,
                                   Entry sample, String climstartYear,
                                   String climendYear)
            throws Exception {
        Entry sprdEntry = null;
       
       
        String statName = "ens01"; 
       
        List<Entry> mean = findStatisticEntry(request, sample, statName);
        if ((mean == null) || mean.isEmpty()) {
           
           
            sprdEntry = sample;
        } else if (mean.size() > 1) {
            System.err.println("found too many");
        } else {
            sprdEntry = mean.get(0);
           
        }
       
       
        String stail =
            getOutputHandler().getStorageManager().getFileTail(sprdEntry);
        sprdEntry = makeStatistic(request, sprdEntry, dpi, stail, "smegma",
                                  climstartYear, climendYear);
        return sprdEntry;
    }
protected entry getspreadentry(request request, serviceinput dpi, entry sample, string climstartyear, string climendyear) throws exception { entry sprdentry = null; string statname = "ens01"; list<entry> mean = findstatisticentry(request, sample, statname); if ((mean == null) || mean.isempty()) { sprdentry = sample; } else if (mean.size() > 1) { system.err.println("found too many"); } else { sprdentry = mean.get(0); } string stail = getoutputhandler().getstoragemanager().getfiletail(sprdentry); sprdentry = makestatistic(request, sprdentry, dpi, stail, "smegma", climstartyear, climendyear); return sprdentry; }