The thing started with Napoleon taking out the central Spanish government. Then the various provinces, spurred on by popular insurrection, rose up against the central, French-controlled government. Evereything was ad-hoc and jury rigged, varying province by province. I can't imagine anyone can ever document the whole thing accurately, either in terms of numbers per unit, uniforms, supply status, flags carried, etc. It was unprecedented. Small wonder that Napoleon didn't anticipate it.