Google "hydraulic horsepower calculator." The horsepower equivalent of a hydraulic flow can be calculated from the PSI, the gallons per minute, and the efficiency of the motor.
Decide how much HP you think you need. I'm going to assume that your using open-center tractor hydraulics to power this. Open center systems deliver a constant gpm and vary the PSI to vary power. Your tractor's owner's manual should tell you the gpm at operating speed (it varies with engine speed) and maximum PSI. Using the calculator, make sure your hydraulic system can deliver enough fluid at enough pressure to deliver that HP. Then figure out what the PSI will be for the amount of HP you want. If you don't know the efficiency of the motor you'll be using, use 85% as a guess. (Example: 10 gpm at 2000 psi and 85% efficiency gives 13.7 HP).
Then decide what speed you want the motor going at, and use that to figure out what size displacement you need. Motors are rated in cubic inch displacements, which is how much fluid it takes to do one rotation of the motor. There are 231 cubic inches in a gallon, so multiplying the GPM by 231 and dividing by the RPM gives displacement. (Example: At 10 gpm 3600 RPM requires a displacement of 2310/3600 = 0.641 cu in).
Calculate how much torque is required to provide that much HP at that RPM. Torque= HP*33000/( 2 pi X RPM). (Example: 13.7 HP at 3600 RPM= 20 ft-lbs.)
Now, look in the specifications for a motor with the appropriate displacement. Make sure its rated PSI, RPM and torque are greater than the numbers you calculate.
Example: Surplus Center has a motor with the following specifications:
Burden Sales Surplus Center Item Detail
Disp. 0.70 cu. in/rev
Pressure:
1500 PSI Cont.
2000 PSI Int.
Motor Torque:
166 in-lbs. cont.
222 in-lbs. int.
Speed:
5000 RPM (motor)
3000 RPM (pump)
Displacement is good, speed is good. But 1500 PSI is below the calculated pressure, and 166 in-lbs (13.8 ft-lbs) is below the calculated torque, so this motor would not be suitable.