Why ''it HAD been raining''?
It is not that logical sentence...
You could say:
It's windy today and it had been raining before I have...
I need more so I can figure out in which context you need it..
- For Teachers