The 1975–79 sitcom Welcome Back, Kotter was set in Brooklyn (James Buchanan High, fictionalized New Utrecht HS) but filmed entirely in Los Angeles, California.
1970s TV production centered in LA; union rules, costs, weather control. Many "NYC" shows (e.g., Seinfeld pilot, Friends) shot in LA.