Skip to content

Timeout error when using llcreader to download subsets of LLC4320 data  #336

@rcmusgrave

Description

@rcmusgrave

In the past I have successfully been able to use code as pasted below to download tiles from the LLC4320 simulation. However, when I tried again this morning it no longer seems to work, the issue being that when I go to download the data and write the file, I seem to be downloading "everything" and getting a timeout. In reality I'm not sure what "everything" is, other than it is far more than the one timeslice of one tile (i.e. many minutes of 10Mb/s download for what should be a 70Mb file).

I am no python/xmitgcm expert, so looking for help here.

Thanks in advance.


import xarray as xr
from xmitgcm import llcreader
model = llcreader.ECCOPortalLLC4320Model()

ds = model.get_dataset(varnames=['Eta'],k_levels=[1]) #,type='latlon')
region_slice = {'face': slice(7,8)}
region = ds.isel(**region_slice,k=0,time=1)
iters, datasets = zip(*region.groupby('k_l'))
        
fname= 'test.nc'
xr.save_mfdataset(datasets, [fname], engine='netcdf4')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions