Adds SConstruct support for netcdf library
Fixes varTot variables in write_to_netcdf_file subroutine