Rock characterization and analysis