Create calculate_ndvi_example.R

example for creating ndvi layers in a for() loop and writing to file