/** * This creates the lists of mags and non-zero rates (above minMag). * * @param magFreqDist */ private void setAll(HypoMagFreqDistAtLoc hypoMagFreqDistAtLoc) { // make list of non-zero rates and mags (if mag >= minMag) mags = new ArrayList(); rates = new ArrayList(); rakes = new ArrayList(); dips = new ArrayList(); IncrementalMagFreqDist[] magFreqDists = hypoMagFreqDistAtLoc.getMagFreqDistList(); FocalMechanism[] focalMechanisms = hypoMagFreqDistAtLoc.getFocalMechanismList(); for (int i = 0; i < magFreqDists.length; i++) { FocalMechanism focalMech = focalMechanisms[i]; IncrementalMagFreqDist magFreqDist = magFreqDists[i]; for (int m = 0; m < magFreqDist.getNum(); m++) { if (magFreqDist.getY(m) > 0 && magFreqDist.getX(m) >= minMag) { mags.add(new Double(magFreqDist.getX(m))); rates.add(new Double(magFreqDist.getY(m))); rakes.add(new Double(focalMech.getRake())); dips.add(new Double(focalMech.getDip())); } } } }