I have single netCDF file which contain monthly data for different year. (Format of date e.g 2001-1-1, 2001-2-1, 2001-3-1…….2002-12-1...............2015-0-1......2015-12-1).
Here-with i have attached a snapshot of data format from Arc GIS multidimension tool

I trying to extract each month raster for selected year (e.g only 2002). Save it as 01-2002, 02-2002, 03-2002…..12-2002.
I appreciate any help you can provide on the crucial bottom code.
Here is what I have so far:
<SPAN class="comment token"># Import system modules</SPAN>
<SPAN class="keyword token">import</SPAN> arcpy
<SPAN class="keyword token">from</SPAN> arcpy <SPAN class="keyword token">import</SPAN> env
<SPAN class="keyword token">from</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>sa <SPAN class="keyword token">import</SPAN> <SPAN class="operator token">*</SPAN>
<SPAN class="comment token">#Workspace</SPAN>
outLoc <SPAN class="operator token">=</SPAN> r<SPAN class="string token">"D:\MODIS_NPP_02_15"</SPAN>
inNetCDF <SPAN class="operator token">=</SPAN> r<SPAN class="string token">"D:\MODIS_NPP_02_15\NPP_2001_15.nc"</SPAN>
<SPAN class="comment token">#Veriable</SPAN>
variable <SPAN class="operator token">=</SPAN> <SPAN class="string token">"npp"</SPAN>
x_dimension <SPAN class="operator token">=</SPAN> <SPAN class="string token">"lon"</SPAN>
y_dimension <SPAN class="operator token">=</SPAN> <SPAN class="string token">"lat"</SPAN>
band_dimension <SPAN class="operator token">=</SPAN> <SPAN class="string token">""</SPAN>
dimension <SPAN class="operator token">=</SPAN> <SPAN class="string token">"time"</SPAN>
valueSelectionMethod <SPAN class="operator token">=</SPAN> <SPAN class="string token">"BY_VALUE"</SPAN>
nc_FP <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>NetCDFFileProperties<SPAN class="punctuation token">(</SPAN>inNetCDF<SPAN class="punctuation token">)</SPAN>
nc_Dim <SPAN class="operator token">=</SPAN> nc_FP<SPAN class="punctuation token">.</SPAN>getDimensions<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">for</SPAN> dimension <SPAN class="keyword token">in</SPAN> nc_Dim<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">if</SPAN> dimension <SPAN class="operator token">==</SPAN> <SPAN class="string token">"time"</SPAN><SPAN class="punctuation token">:</SPAN>
top <SPAN class="operator token">=</SPAN> nc_FP<SPAN class="punctuation token">.</SPAN>getDimensionSize<SPAN class="punctuation token">(</SPAN>dimension<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">for</SPAN> i <SPAN class="keyword token">in</SPAN> range<SPAN class="punctuation token">(</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">,</SPAN> top<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
dimension_values <SPAN class="operator token">=</SPAN> nc_FP<SPAN class="punctuation token">.</SPAN>getDimensionValue<SPAN class="punctuation token">(</SPAN>dimension<SPAN class="punctuation token">,</SPAN> i<SPAN class="punctuation token">)</SPAN>
nowFile <SPAN class="operator token">=</SPAN> str<SPAN class="punctuation token">(</SPAN>dimension_values<SPAN class="punctuation token">)</SPAN>
nowFile <SPAN class="operator token">=</SPAN> nowFile<SPAN class="punctuation token">.</SPAN>translate<SPAN class="punctuation token">(</SPAN>None<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'/'</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># I needed only the years 2002</SPAN>
<SPAN class="keyword token">if</SPAN> int<SPAN class="punctuation token">(</SPAN>nowFile<SPAN class="punctuation token">[</SPAN><SPAN class="operator token">-</SPAN><SPAN class="number token">12</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">></SPAN> <SPAN class="number token">6</SPAN><SPAN class="punctuation token">:</SPAN>
dv1 <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">"time"</SPAN><SPAN class="punctuation token">,</SPAN> dimension_values<SPAN class="punctuation token">]</SPAN>
dimension_values <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">[</SPAN>dv1<SPAN class="punctuation token">]</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>MakeNetCDFRasterLayer_md<SPAN class="punctuation token">(</SPAN>inNetCDF<SPAN class="punctuation token">,</SPAN> variable<SPAN class="punctuation token">,</SPAN> x_dimension<SPAN class="punctuation token">,</SPAN> y_dimension<SPAN class="punctuation token">,</SPAN> nowFile<SPAN class="punctuation token">,</SPAN> band_dimension<SPAN class="punctuation token">,</SPAN> dimension_values<SPAN class="punctuation token">,</SPAN> valueSelectionMethod<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">print</SPAN> <SPAN class="string token">"success"</SPAN>
outname <SPAN class="operator token">=</SPAN> outLoc <SPAN class="operator token">+</SPAN> nowFile
arcpy<SPAN class="punctuation token">.</SPAN>CopyRaster_management<SPAN class="punctuation token">(</SPAN>nowFile<SPAN class="punctuation token">,</SPAN> outname<SPAN class="punctuation token">,</SPAN> <SPAN class="operator token">+</SPAN><SPAN class="string token">".tif"</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"NONE"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"NONE"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">""</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">else</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">print</SPAN> <SPAN class="string token">"DATA OUT OF RANGE"</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>