Open grueck opened 1 year ago
I realized an error in my code: appearently, the srs string changed in a recent update and must now be prefixed by "EPSG" when setting srs for cube_view, and this error is uncaught. The problem is now that the download seems to work, but produces an empty image filled with 0's.
I think you get empty images when authentication fails?
I have found that authentication using bearer tokens with EarthData login is easier to handle than getting that darn netrc mechanism to work. (e.g. https://gist.github.com/cboettig/5401bd149a2a27bde2042aa4f7cde25b)
I found problems when trying to access NASA's Harmonoszed Landsat Sentinel product through gdalcubes. The downlod URLs are secured via netrc (see https://lpdaac.usgs.gov/products/hlss30v002 ) I figured that for the terra library configuration works like described here https://github.com/rspatial/terra/issues/608 I tried to set
gdalcubes_set_gdal_config
to these same options plus the nerc options here : https://gdal.org/user/configoptions.htmlFor rstac, options are passed through the post request, which works. Here is my reproducible example:
The error occures at
st_as_stars() -> RGBout
when gdalcube tries to get the data.When trying a second time, R hangs and the session needs to be aborted. The code works perfectly with S2 data on AWS and I am afraid it has to do with how the netrc authentication is handle in gdalcubes.