ps1dbToAnd: check flags to weed out bad and extended sources, apply mag limits