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