I have a NetCDF (CRU diurnal temperature data) for each year and month from 1901 to the 2016.
I would like to export individual rasters for a selection of the year and month options.
I would like to have rasters for 01/16/1982 to 12/16/2014. The band dimension is the variable "time" which is organized as above (01/16/1982). Each layer follows the same format except for February which is 02/15/YEAR.
I am not sure how to script this. I've seen other examples for getting only months for a certain year but never a time variable formatted they way mine is or for creating rasters that span multiple years.
Right now the dataset is global in coverage but I would only like a subset of African countries (I have a boundary shapefile).
Is there a way to loop through all the months of temperature data, extract the portion I want and export as new raster?
I've make the NetCDF, it is now called dtr_layer.