python netcdf4 code example
Example 1: how to open a dataset in netcdf4
import netCDF4
ds = netCDF4.Dataset(/path_to_file/file_name.nc)
Example 2: python nc group variables
nc_f0 = Dataset('path_to_nc','r')
var = nc_f0.groups['group_name'].variables['var_name']
Example 3: python dataset createdimension unlimited
# Create the unlimited time dimension:
dim_t = f.createDimension('time', None)