streaming MODIS L2 data with OPeNDAP
Posted: Mon Aug 11, 2025 6:38 am America/New_York
I am trying to open MODIS data without dowlanding them.
Try to use two approach but both are not working
Is it possible to use this data in cloud?
1) Error
netcdf_file ='https://obdaac-tea.earthdatacloud.nasa.gov/ob-cumulus-prod-public/AQUA_MODIS.20240426T125000.L2.OC.nc'
xrds = xr.open_dataset(netcdf_file)
xrds
2) Empty file with mata data
auth = earthaccess.login()
data_links is a list of links after search data_links.append ({"links": i.data_links(), "size (MB):": i.size()})
fs = earthaccess.open([data_links[5]])[0]
xrds = xr.open_dataset(fs, engine='h5netcdf', decode_cf=True)
print(xrds)
Try to use two approach but both are not working
Is it possible to use this data in cloud?
1) Error
netcdf_file ='https://obdaac-tea.earthdatacloud.nasa.gov/ob-cumulus-prod-public/AQUA_MODIS.20240426T125000.L2.OC.nc'
xrds = xr.open_dataset(netcdf_file)
xrds
2) Empty file with mata data
auth = earthaccess.login()
data_links is a list of links after search data_links.append ({"links": i.data_links(), "size (MB):": i.size()})
fs = earthaccess.open([data_links[5]])[0]
xrds = xr.open_dataset(fs, engine='h5netcdf', decode_cf=True)
print(xrds)