more accurate pnccd geometry
check for overflow during downsampling, clip in case.