scons support for measures2netcdf; memory fixes