replaced more deprecated netcdf methods