Dani Pedrosa wasn't even sure if it was worth racing in his home Spanish Grand Prix at Jerez.

It was a good job he did, since he finished in second place and is now also second in the world championship standings.

The reason for the uncertainty over the Repsol Honda rider's attendance was his long-suffering collarbone injury, which causes left-arm numbness and hadn't been cured by healing time over the winter.

After struggling with the arm on his way to third at round one in Qatar, Pedrosa underwent further medical tests that suggested removing the metal plate inserted into the collarbone after last October's practice crash a Motegi.

That operation is due to take place today (Monday).

Pedrosa had qualified second in the dry qualifying session at Jerez, but plummeted back to eleventh during the first lap of the wet race.

"At the start, many riders overtook me and I thought 'that's it'. Anyway, I knew there were 27 laps and the situation was difficult for the tyres," said Pedrosa.

"I was a little nervous after my bad start, but when I realised that in the first lap I was faster than in the warm up, I calmed down and started to improve.

"I took a good pace and had to ride at maximum concentration in order not to not make any mistakes, it was very easy to crash. Some riders started falling down and it was a matter of resisting there."

Pedrosa's progress was helped by accidents for Valentino Rossi and Casey Stoner, then race leader Marco Simoncelli - the Gresini Honda rider's exit, on lap 12 of 27, putting Pedrosa into second behind Yamaha's world champion Jorge Lorenzo.

Pedrosa was initially 2.7sec behind the #1, but shrunk that gap to just 1.2sec within three laps.

That was as close as he got to victory as Pedrosa, like most riders, struggled more as the track started to dry, the grippier tarmac playing havoc with the soft rain tyres used by the entire grid.

"I tried to catch Lorenzo when I saw that his gap was about a second, but at 10 laps to go the tyres were almost finished; I couldn't even open the throttle on the straight because the track was very slippery," revealed Pedrosa.

Pedrosa was hunted down and passed by Lorenzo's team-mate Ben Spies in the closing stages, but Spies then handed the runner-up spot back to Pedrosa when he crashed with less than three laps to go.

"When Spies crashed, my gap with Nicky [Hayden] was big enough to keep the second place and I crossed the finish line very very happy," said Pedrosa.

"It's been a tough weekend for the arm injury, today I also had numbness and lack of strength, but to ride in wet has helped me because it's not as aggressive as in dry conditions.

"To leave Jerez with a second place finish, after the third place in Qatar, is amazing. We are nine points behind the championship leader [Lorenzo] and it's a good gap to resume the championship again in Estoril.

"On Friday we considered whether it was worth racing here or better to pull out thinking about the operation. So this second place is amazing.

"We've been doing great, but now comes the hard time, the surgery. Nobody likes to undergo surgery, but this time I almost wish for it because I want to end the pain and problems and start competing fully fit."

Pedrosa, who continued his perfect record of Jerez podiums since his premier-class debut in 2006, will have until the end of this month to recover before free practice for the Portuguese MotoGP at Estoril.