A. 
Whenever necessary to ascertain any violation of the provisions of this code or of any ordinance, or whenever there is reasonable cause to believe that there exists a violation of this code or of any ordinance, any authorized agent or employee of the city may enter onto any premises or into any building upon presentation of proper credentials to the owner and/or the occupant thereof.
B. 
In those situations when there is no owner and/or occupant present, or when such person or persons refuse entry, the agent or employee shall give the owner and/or occupant 24 hours written notice of the intention to enter onto such premises. Such notice shall state that, in the event the right of entry is refused, entry will be obtained under an inspection warrant issued pursuant to California Code of Civil Procedure Section 1822.50 et seq.
(Prior code § 1.13(a)—(b); Ord. 1301 § 4, 1975; Ord. 3652 § 1, 2001)
Nothing herein shall be read to limit the immediate right of entry:
A. 
In any emergency situation;
B. 
Where entry is permitted under the Constitution or any state or federal law; or
C. 
To impound any vicious or rabid animal.
(Prior code § 1.13(d); Ord. 1301 § 4, 1975)