netCDF4 Dataset python with statement code example
Example 1: python nc group variables
nc_f0 = Dataset('path_to_nc','r')
var = nc_f0.groups['group_name'].variables['var_name']
Example 2: python dataset createdimension unlimited
# Create the unlimited time dimension:
dim_t = f.createDimension('time', None)