EXTERNAL TRIGGERS. “With environmental sex determination (ESD), external stimuli control sex determination, such as temperature in reptiles, photoperiod in marine amphipods and some barnacles, and social factors in many coral-reef-dwelling fish and limpets.”
http://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.1001899