Index: wflow-py/Scripts/pcr2netcdf.py =================================================================== diff -u -r6ae56857ac3d367aca1cc64a0f4073705c036fb4 -rc6fa21e69485b35b62b60003209406b8cc1f1541 --- wflow-py/Scripts/pcr2netcdf.py (.../pcr2netcdf.py) (revision 6ae56857ac3d367aca1cc64a0f4073705c036fb4) +++ wflow-py/Scripts/pcr2netcdf.py (.../pcr2netcdf.py) (revision c6fa21e69485b35b62b60003209406b8cc1f1541) @@ -197,12 +197,14 @@ logger.debug("Adding time: " + str(curTime)) idx = where(timeObj==curTime)[0] count = nn + startidx + below_thousand = count % 1000 above_thousand = count / 1000 # read the file of interest pcraster_file = str(srcPrefix + '%0' + str(8-len(srcPrefix)) + '.f.%03.f') % (above_thousand, below_thousand) pcraster_path = os.path.join(srcFolder, pcraster_file) # write grid to PCRaster file + logger.debug("processing map: " + pcraster_file) x, y, data, FillVal = readMap(pcraster_path, 'PCRaster',logger) data[data==FillVal] = nc_Fill