Utility package for generating token auth headers for CEDA data accesses
pip install token_auth_headers
Set CEDA_USERNAME and CEDA_PASSWORD environment variables.
from token_auth_headers import remote_options
import xarray as xr
ds = xr.open_dataset(file, engine='kerchunk',storage_options={'remote_options':remote_options()})