where and how to download the *.meta and *.data files?
Shihong-Wang opened this issue · 0 comments
The data on ECCO data portal is *.shrunk. So where we can download the *.meta an *.data files directly?
We also have tried to download the llc4320 data by xmitgcm, but the following error showed up when we tried to plot or save to nc files:
TypeError: request() got an unexpected keyword argument 'size_policy'
Sometimes the same program will report this error:
KeyError: 'https://storage.googleapis.com/pangeo-ecco/llc/masks/llc_4320_masks.zarr/.zmetadata'
I checked the versions of xmitgcm and fsspec as this issue discussed: #175, they are 0.4.1 and 0.8.2.
so can you enlighten me to solve thisproblem?
this is my code:
import os
os.environ['NUMPY_EXPERIMENTAL_ARRAY_FUNCTION']='0'
import xmitgcm
from xmitgcm import llcreader
import fsspec
import matplotlib.pyplot as plt
model = llcreader.ECCOPortalLLC4320Model()
#print(model)
#print(model.varnames)
#ds = model.get_dataset(varnames=['Eta'],k_chunksize=90,iter_start=0, iter_stop=9, iter_step=8)
ds = model.get_dataset(varnames=['Eta'],k_chunksize=90,iter_start=0, iter_stop=9)
print(ds)
sel_ds = ds.isel(time=0,face=5)
sel_ds.time.values
print(sel_ds)
#plt.figure(figsize=(12,10))
#sel_ds.Eta.plot()
#plt.show()
sel_ds.to_netcdf('my_file.nc')