cdm/src/main/java/ucar/nc2/iosp/nexrad2/Level2Record.java
public int getGateStart(int datatype) {
    switch (datatype) {
      case REFLECTIVITY:
        return ((int) reflect_first_gate);

      case VELOCITY_HI:
      case VELOCITY_LOW:
      case SPECTRUM_WIDTH:
        return ((int) doppler_first_gate);
      //high resolution
      case REFLECTIVITY_HIGH:
        return ((int) reflectHR_first_gate);
      case VELOCITY_HIGH:
        return ((int) velocityHR_first_gate);
      case SPECTRUM_WIDTH_HIGH:
        return ((int) spectrumHR_first_gate);
      case DIFF_REFLECTIVITY_HIGH:
        return ((int) zdrHR_first_gate);
      case DIFF_PHASE:
        return ((int) phiHR_first_gate);
      case CORRELATION_COEFFICIENT:
        return ((int) rhoHR_first_gate);

    }
    return -1;
  }
public int getGateStart(int datatype) {
    switch (datatype) {
      case REFLECTIVITY:
        return ((int) reflect_first_gate);

      case VELOCITY_HI:
      case VELOCITY_LOW:
      case SPECTRUM_WIDTH:
        return ((int) doppler_first_gate);
      //high resolution
      case REFLECTIVITY_HIGH:
        return ((int) reflectHR_first_gate);
      case VELOCITY_HIGH:
        return ((int) velocityHR_first_gate);
      case SPECTRUM_WIDTH_HIGH:
        return ((int) spectrumHR_first_gate);
      case DIFF_REFLECTIVITY_HIGH:
        return ((int) zdrHR_first_gate);
      case DIFF_PHASE:
        return ((int) phiHR_first_gate);
      case CORRELATION_COEFFICIENT:
        return ((int) rhoHR_first_gate);

    }
    return -1;
  }
public int getGateStart ( int datatype ) { switch ( datatype ) { case REFLECTIVITY : return ( ( int ) reflect_first_gate ) ; case VELOCITY_HI : case VELOCITY_LOW : case SPECTRUM_WIDTH : return ( ( int ) doppler_first_gate ) ; //high resolution case REFLECTIVITY_HIGH : return ( ( int ) reflectHR_first_gate ) ; case VELOCITY_HIGH : return ( ( int ) velocityHR_first_gate ) ; case SPECTRUM_WIDTH_HIGH : return ( ( int ) spectrumHR_first_gate ) ; case DIFF_REFLECTIVITY_HIGH : return ( ( int ) zdrHR_first_gate ) ; case DIFF_PHASE : return ( ( int ) phiHR_first_gate ) ; case CORRELATION_COEFFICIENT : return ( ( int ) rhoHR_first_gate ) ; } return - 1 ; }
This method returns the starting gate in meters

@param datatype which type of data : REFLECTIVITY, VELOCITY_HI, VELOCITY_LO, SPECTRUM_WIDTH
@return the starting gate in meters
This method returns the starting gate in meters