Solar flare analysis