Hi
Any update?
I also got that error. This happens when I try open the tif with rioxarray.
code:
chunk_size = dict(band=1, x=512, y=512)
rxr.open_rasterio('https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSL30.020/HLS.L30.T14QMG.2021306T170002.v2.0/HLS.L30.T14QMG.2021306T170002.v2.0.B05.tif',chunks=chunk_size, masked=True).squeeze('band', drop=True)
Error:
RasterioIOError: '/vsicurl/https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSL30.020/HLS.L30.T14QMG.2021306T170002.v2.0/HLS.L30.T14QMG.2021306T170002.v2.0.B05.tif' not recognized as a supported file format.
Seems a authentication problem because I am able to open the tiff file when downloaded manually. I have the .netrc (from https://github.com/nasa/LPDAAC-Data-Resources/blob/main/python/how-tos/Earthdata_Authentication__Create_netrc_file.ipynb)
Not sure what else I can do.
Any update?
I also got that error. This happens when I try open the tif with rioxarray.
code:
chunk_size = dict(band=1, x=512, y=512)
rxr.open_rasterio('https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSL30.020/HLS.L30.T14QMG.2021306T170002.v2.0/HLS.L30.T14QMG.2021306T170002.v2.0.B05.tif',chunks=chunk_size, masked=True).squeeze('band', drop=True)
Error:
RasterioIOError: '/vsicurl/https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSL30.020/HLS.L30.T14QMG.2021306T170002.v2.0/HLS.L30.T14QMG.2021306T170002.v2.0.B05.tif' not recognized as a supported file format.
Seems a authentication problem because I am able to open the tiff file when downloaded manually. I have the .netrc (from https://github.com/nasa/LPDAAC-Data-Resources/blob/main/python/how-tos/Earthdata_Authentication__Create_netrc_file.ipynb)
Not sure what else I can do.
Statistics: Posted by victorohden — Wed Feb 07, 2024 3:53 pm America/New_York