fixed bug in create_nc_variable where dimensions weren't being correctly specified.