generating NP weight layer from within eez2013 functions.R