Update netCDFcode

More code updates