ensure that chunklens <= scene width/height in NetCDF
(cherry picked from commit e7f987e)