I believe weather is why the industry moved south to the then minor city of Los Angeles, but many early films were filmed on stage sets anyway. Plus NYC had financing, actors, culture, etc unlike the boondocks of California
I wonder if the subject matter changes to match the weather. It goes from Film Noir, dark rainy detective scenes to Westerns with expansive outdoor scenes.
Film Noir's heyday was the 1940s and 50s. Almost all film production had moved to Hollywood by the early 1930s with most having moved well before then. Some of the classics of American Film Noir are actually set in LA.
Even before the move to Hollywood the center of the US film industry wasn't New York, but just across the river in Fort Lee, NJ.
There’s a lot of historical analysis of this.