Circumstances in aggravation include factors relating to the crime and factors relating to the defendant. (a)Facts relating to the crime Facts relating to the crime, whether or not charged or chargeable as enhancements, include the fact that: (1) The crime involved great violence, great bodily harm, threat of great bodily harm, or other acts disclosing a high degree of cruelty, viciousness, or callousness; (2) The defendant was armed with or used a weapon at the time of the commission of the crime;
(a) When a judgment of imprisonment is imposed, or the execution of a judgment of imprisonment is ordered suspended, the sentencing judge must, in their sound discretion, order imposition of a sentence not to exceed the middle term, except as otherwise provided in paragraph (b). (b) The court may only choose an upper term when (1) there are circumstances in aggravation of the crime that justify the imposition of an upper term, and (2) the facts underlying those circumstances have been (i) stipulated