Xee
Xee copied to clipboard
download MODIS (crs: SR-ORG:6974) data appears obscured
Dear Developers:
Thank you so much for being able to develop the awesome xee
.
I was downloading the MODIS series product (MODIS/061/MOD16A2GF) and noticed that the downloaded data was shaded.
I think it's a problem with the crs
.
Here are the images and code:
ic_name = 'MODIS/061/MOD16A2GF'
ic = ee.ImageCollection(ic_name) \
.select("ET") \
.filterDate('2013-06-02', '2013-06-03')
ds = xarray.open_dataset(
ic, engine='ee',
crs = 'EPSG:4326',
scale=0.25
)
ds
ds.to_netcdf('test.nc')
r = xr.open_dataarray('test.nc')
r
r \
.assign_attrs(crs='EPSG:4326') \
.transpose() \
.plot(
vmin=0, vmax=300,
levels=[i for i in range(0, 270, 30)],
colors=['#ffffff', '#fcd163', '#99b718', '#66a000',
'#3e8601', '#207401', '#056201', '#004c00', '#011301']
)