A South Florida pediatrician who was recently charged in federal court with possessing child pornography is a “danger” to the community and must await his trial behind bars, a judge ruled Monday.