Sandstone porosity as a function of thermal maturity