Add getValue function to NetCDF class