The gamma ray curve is used to differentiate potentially productive formations (sandstones and limestones) from other formations.