Inserted angular bounding functions for phi, theta data, in preparation for attempt at 16 bit mapping