visad/src/main/java/ucar/nc2/iosp/mcidas/AreaReader.java
private int getCalType(String calName) {
    int calTypeOut = Calibrator.CAL_NONE;
    if (calName.trim().equals("ALB")) {
      calTypeOut = Calibrator.CAL_ALB;
    } else if (calName.trim().equals("BRIT")) {
      calTypeOut = Calibrator.CAL_BRIT;
    } else if (calName.trim().equals("RAD")) {
      calTypeOut = Calibrator.CAL_RAD;
    } else if (calName.trim().equals("RAW")) {
      calTypeOut = Calibrator.CAL_RAW;
    } else if (calName.trim().equals("TEMP")) {
      calTypeOut = Calibrator.CAL_TEMP;
    }
    return calTypeOut;
  }
private int getCalType(String calName) {
    int calTypeOut = Calibrator.CAL_NONE;
    if (calName.trim().equals("ALB")) {
      calTypeOut = Calibrator.CAL_ALB;
    } else if (calName.trim().equals("BRIT")) {
      calTypeOut = Calibrator.CAL_BRIT;
    } else if (calName.trim().equals("RAD")) {
      calTypeOut = Calibrator.CAL_RAD;
    } else if (calName.trim().equals("RAW")) {
      calTypeOut = Calibrator.CAL_RAW;
    } else if (calName.trim().equals("TEMP")) {
      calTypeOut = Calibrator.CAL_TEMP;
    }
    return calTypeOut;
  }
private int getCalType ( String calName ) { int calTypeOut = Calibrator . CAL_NONE ; if ( calName . trim ( ) . equals ( "ALB" ) ) { calTypeOut = Calibrator . CAL_ALB ; } else if ( calName . trim ( ) . equals ( "BRIT" ) ) { calTypeOut = Calibrator . CAL_BRIT ; } else if ( calName . trim ( ) . equals ( "RAD" ) ) { calTypeOut = Calibrator . CAL_RAD ; } else if ( calName . trim ( ) . equals ( "RAW" ) ) { calTypeOut = Calibrator . CAL_RAW ; } else if ( calName . trim ( ) . equals ( "TEMP" ) ) { calTypeOut = Calibrator . CAL_TEMP ; } return calTypeOut ; }
Get the calibration type from the name

@param calName calibration name
@return the Calibrator class type
Get the calibration type from the name