Package rocca

Class RoccaClassifyThis

java.lang.Object
rocca.RoccaClassifyThis

public class RoccaClassifyThis extends Object
Short script to load the data from an existing contour stats file (Rocca output), classify each row and save the data into a new summary file. This program requires a valid RoccaProcess in order to run, and can therefore not be run as a standalone object. A Reclassify button is included in the Rocca Parameters GUI, but disabled by default. In order to run this program, change the hard-coded filenames as required, enable the reclassifyButton in RoccaParametersDialog, and run Pamguard. The contour stats file must have the following format: column A: Source column B: Date-Time column C: DetectionCount column D: DetectionNumber column E: ClassifiedSpecies (ignored) column F: FREQMAX column G: FREQMIN column H: DURATION column I: FREQBEG column J: FREQEND column K: FREQRANGE column L: DCMEAN column M: DCSTDDEV column N: FREQMEAN column O: FREQSTDDEV column P: FREQMEDIAN column Q: FREQCENTER column R: FREQRELBW column S: FREQMAXMINRATIO column T: FREQBEGENDRATIO column U: FREQQUARTER1 column V: FREQQUARTER2 column W: FREQQUARTER3 column X: FREQSPREAD column Y: DCQUARTER1MEAN column Z: DCQUARTER2MEAN column AA: DCQUARTER3MEAN column AB: DCQUARTER4MEAN column AC: FREQCOFM column AD: FREQSTEPUP column AE: FREQSTEPDOWN column AF: FREQNUMSTEPS column AG: FREQSLOPEMEAN column AH: FREQABSSLOPEMEAN column AI: FREQPOSSLOPEMEAN column AJ: FREQNEGSLOPEMEAN column AK: FREQSLOPERATIO column AL: FREQBEGSWEEP column AM: FREQBEGUP column AN: FREQBEGDWN column AO: FREQENDSWEEP column AP: FREQENDUP column AQ: FREQENDDWN column AR: NUMSWEEPSUPDWN column AS: NUMSWEEPSDWNUP column AT: NUMSWEEPSUPFLAT column AU: NUMSWEEPSDWNFLAT column AV: NUMSWEEPSFLATUP column AW: NUMSWEEPSFLATDWN column AX: FREQSWEEPUPPERCENT column AY: FREQSWEEPDWNPERCENT column AZ: FREQSWEEPFLATPERCENT column BA: NUMINFLECTIONS column BB: INFLMAXDELTA column BC: INFLMINDELTA column BD: INFLMAXMINDELTA column BE: INFLMEANDELTA column BF: INFLSTDDEVDELTA column BG: INFLMEDIANDELTA column BH: INFLDUR column BI: STEPDUR Any remaining columns are ignored. Column headers do not need to be spelled/capitalized the same, but must be in this order.
Author:
Mike
  • Constructor Details

    • RoccaClassifyThis

      public RoccaClassifyThis(RoccaProcess roccaProcess)
      Constructor used when allowing user to select training dataset
    • RoccaClassifyThis

      public RoccaClassifyThis()
      Constructor when we pass in the training dataset
  • Method Details

    • getTheFile

      public File getTheFile()
      Ask the user to select the file containing the testing dataset
      Returns:
      File the csv file containing the testing dataset
    • runTheClassifier

      public void runTheClassifier(File statsFileIn, RoccaProcess roccaProcess)
      Run the classifier
      Parameters:
      statsFileIn - the File containing the testing dataset
      roccaProcess - the RoccaProcess instance