Look to the MO code on the tail. This B-52G was in use with 366 th Wing (Mountain Home AFB, ID) but was stationed at Castle AFB, CA.