Index: wflow-py/Scripts/pcr2netcdf.py =================================================================== diff -u -r891c092df6227f0c04ba243e3c79a93ce5cd6827 -rf7292120e3739547c3d0809ab82394aea984d786 --- wflow-py/Scripts/pcr2netcdf.py (.../pcr2netcdf.py) (revision 891c092df6227f0c04ba243e3c79a93ce5cd6827) +++ wflow-py/Scripts/pcr2netcdf.py (.../pcr2netcdf.py) (revision f7292120e3739547c3d0809ab82394aea984d786) @@ -325,7 +325,7 @@ # now loop over all time steps, check the date and write valid dates to a list, write time series to PCRaster maps for nn, curTime in enumerate(timeList): logger.debug("Adding time: " + str(curTime)) - idx = where(timeObj==curTime)[0] + idx = int(where(timeObj==curTime)[0]) count = nn + startidx below_thousand = count % 1000