replaced deprecated netCDF api methods