(a)
Except as provided in this section, the term of the lease shall be for such period as the court may authorize.
(b)
Except as provided in subdivision (c), the court shall not authorize a lease for longer than 10 years if any heir or devisee who has an interest in the property to be leased objects at the hearing.
(c)
If the lease is for the purpose of exploration for or production or removal of minerals, oil, gas, or other hydrocarbon substances, or geothermal energy, the court may authorize that the lease be for a fixed period and any of the following:
(1)
So long thereafter as minerals, oil, gas, or other hydrocarbon substances or geothermal energy are produced in paying quantities from the property leased or mining or drilling operations are conducted thereon.
(2)
If the lease provides for the payment of a compensatory royalty, so long thereafter as such compensatory royalty is paid.
(3)
If the land covered by the lease is included in an agreement authorized by Section 3301 of the Public Resources Code, so long thereafter as oil, gas, or other hydrocarbon substances are produced in paying quantities from any of the lands included in any such agreement or drilling operations are conducted thereon.