def get_netcdf_response(coverage_offering, dataset, crs):
    """Uses a standard xarray function to create a bytes-like data stream for http response"""
    dataset.attrs['crs'] = crs
    return dataset.to_netcdf()