import gdrivefs
# use this the first time you run
token = 'browser'
# use this on subsequent attempts
#token = 'cache'
# shareable link to folder generated with
# https://drive.google.com/open?id=1FQzXM2E28WF6fV7vy1K7HdxNV-w6z_Wx
root_file_id = '1FQzXM2E28WF6fV7vy1K7HdxNV-w6z_Wx'
gdfs = gdrivefs.GoogleDriveFileSystem(token=token, root_file_id='1FQzXM2E28WF6fV7vy1K7HdxNV-w6z_Wx')
gdfs
gdfs.ls("")
gdfs.ls("woa_t_an.zarr/", detail=True)
mapper = gdfs.get_mapper('/woa_t_an.zarr/')
mapper
import xarray as xr
ds = xr.open_zarr(mapper, consolidated=True, decode_times=False, chunks=False)
ds
%time dsl = ds.compute()
dsl.nbytes / 1e6