private int[] processHeights(float[] magnitudes, double timestamp) {
    		float[] buckets = compressor.compressHeights(magnitudes, 128, timestamp);
    		int[] heights = new int[NUMPOINTS];
    		for(int i=0;i<NUMPOINTS;i++){
    			heights[i] = (int) ((float) buckets[i]*maxheight);
    		}
    		return heights;
    	}