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)
streaming MODIS L2 data with OPeNDAP
-
- Posts: 1
- Joined: Mon Aug 11, 2025 6:30 am America/New_York
-
- Posts: 414
- Joined: Mon Jun 22, 2020 5:24 pm America/New_York
- Has endorsed: 8 times
- Endorsed: 8 times
Re: streaming MODIS L2 data with OPeNDAP
Currently the data need to be downloaded before you can use it in applications. OPeNDAP is not yet supported in the cloud for OB.DAAC datasets but we will eventually offer DMR++ files to enable users to work on OPeNDAP servers.