more generic fun for import and extract of NetCDF variables. attempt to improve addVar perf