Although based in New York, in fact the pilot is the only episode that has been based in New York City. The rest of the seasons were entirely filmed in Los Angeles. Which must have made all the California shoots in the later seasons pretty easy for the team!