public int getGateCount(int datatype) {
    switch (datatype) {
      case REFLECTIVITY:
        return ((int) reflect_gate_count);

      case VELOCITY_HI:
      case VELOCITY_LOW:
      case SPECTRUM_WIDTH:
        return ((int) doppler_gate_count);
      // hight resolution
      case REFLECTIVITY_HIGH:
        return ((int) reflectHR_gate_count);
      case VELOCITY_HIGH:
        return ((int) velocityHR_gate_count);
      case SPECTRUM_WIDTH_HIGH:
        return ((int) spectrumHR_gate_count);
      case DIFF_REFLECTIVITY_HIGH:
        return ((int) zdrHR_gate_count);
      case DIFF_PHASE:
        return ((int) phiHR_gate_count);
      case CORRELATION_COEFFICIENT:
        return ((int) rhoHR_gate_count);
    }
    return 0;
  }
public int getGateCount ( int datatype ) { switch ( datatype ) { case REFLECTIVITY : return ( ( int ) reflect_gate_count ) ; case VELOCITY_HI : case VELOCITY_LOW : case SPECTRUM_WIDTH : return ( ( int ) doppler_gate_count ) ; case REFLECTIVITY_HIGH : return ( ( int ) reflectHR_gate_count ) ; case VELOCITY_HIGH : return ( ( int ) velocityHR_gate_count ) ; case SPECTRUM_WIDTH_HIGH : return ( ( int ) spectrumHR_gate_count ) ; case DIFF_REFLECTIVITY_HIGH : return ( ( int ) zdrHR_gate_count ) ; case DIFF_PHASE : return ( ( int ) phiHR_gate_count ) ; case CORRELATION_COEFFICIENT : return ( ( int ) rhoHR_gate_count ) ; } return 0 ; }
This method returns the number of gates

@param datatype which type of data : REFLECTIVITY, VELOCITY_HI, VELOCITY_LO, SPECTRUM_WIDTH
@return the number of gates