I'd like to read in a tar file of ocean TEMP netcdfs corresponding to 10 CESM-DPLE members using xarray & dask. This code block returns a dask array dimensioned M=1, but I want to get M=10 (10 ensemble members). Is there a way to do it without first untarring?
datafile = '/glade/campaign/cesm/collections/CESM1-DPLE/ocn/proc/tseries/monthly/TEMP/b.e11.BDP.f09_g16.1995-11.031-040.pop.h.TEMP.199511-200512.tar' ds = xr.open_mfdataset(datafile,combine='nested',parallel=True,concat_dim='M')
Last updated: May 16 2025 at 17:14 UTC