SAN FRANCISCO—Scientists who have risked their careers, freedom and livelihoods led a town hall meeting here on Tuesday at the world’s largest annual gathering of earth and space scientists to ask their colleagues to consider what their professional society’s stance should be in relation to the fossil fuel industry.