Hello, I am following a python tutorial to learn how to set a script to use HLS data for climate change research purposes. When it comes to loading the HLS scenes into memory I constantly get this error code. I have tried 2 different tutorials, and I always get that error at the same step in the code.
```
hls_cloud_free = hls_masked.resample(time="1M").median(skipna=True).compute()
```
RuntimeError: Error opening 'https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSS30.020/HLS.S30.T15UWP.2022184T170901.v2.0/HLS.S30.T15UWP.2022184T170901.v2.0.B04.tif': RasterioIOError("'/vsicurl/https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSS30.020/HLS.S30.T15UWP.2022184T170901.v2.0/HLS.S30.T15UWP.2022184T170901.v2.0.B04.tif' not recognized as a supported file format.")
I have a netcr file in my home directory with my username and password and passed those configurations with GDAL as well.
gdal.SetConfigOption('GDAL_HTTP_COOKIEFILE','~/cookies.txt')
gdal.SetConfigOption('GDAL_HTTP_COOKIEJAR', '~/cookies.txt')
gdal.SetConfigOption('GDAL_DISABLE_READDIR_ON_OPEN','EMPTY_DIR')
gdal.SetConfigOption('CPL_VSIL_CURL_ALLOWED_EXTENSIONS','TIF')
Another person in my lab tried running those codes and get the same error message. Any thoughts?
Thank you
```
hls_cloud_free = hls_masked.resample(time="1M").median(skipna=True).compute()
```
RuntimeError: Error opening 'https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSS30.020/HLS.S30.T15UWP.2022184T170901.v2.0/HLS.S30.T15UWP.2022184T170901.v2.0.B04.tif': RasterioIOError("'/vsicurl/https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSS30.020/HLS.S30.T15UWP.2022184T170901.v2.0/HLS.S30.T15UWP.2022184T170901.v2.0.B04.tif' not recognized as a supported file format.")
I have a netcr file in my home directory with my username and password and passed those configurations with GDAL as well.
gdal.SetConfigOption('GDAL_HTTP_COOKIEFILE','~/cookies.txt')
gdal.SetConfigOption('GDAL_HTTP_COOKIEJAR', '~/cookies.txt')
gdal.SetConfigOption('GDAL_DISABLE_READDIR_ON_OPEN','EMPTY_DIR')
gdal.SetConfigOption('CPL_VSIL_CURL_ALLOWED_EXTENSIONS','TIF')
Another person in my lab tried running those codes and get the same error message. Any thoughts?
Thank you
Statistics: Posted by cbourque17 — Mon Jan 15, 2024 11:20 am America/New_York