Hi,
I followed exactly with "https://urs.earthdata.nasa.gov/documentation/for_users/data_access/r" and downloaded a 27B file that says "access denied."
Can anyone help me out?
Thanks for the help!
Dongchen
URL: https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSL30.020/HLS.L30.T10SGC.2020304T183450.v2.0/HLS.L30.T10SGC.2020304T183450.v2.0.B06.tif
Access denied when trying to download data using R http::GET function
-
- Posts: 10
- Joined: Tue Feb 14, 2023 3:48 pm America/New_York
- Been thanked: 1 time
Re: Access denied when trying to download data using R http::GET function
Hi @zhangdc
I would recommend that you double check your .netrc file is accurate and in your home directory. Follow these instructions to set it up: https://github.com/nasa/LPDAAC-Data-Resources/blob/main/guides/create_netrc_file.md.
If you are interested in working with HLS data in R, I would recommend following our tutorial Getting Started with Cloud-Native Harmonized Landsat Sentinel-2 (HLS) Data in R: https://github.com/nasa/HLS-Data-Resources/blob/main/r/HLS_Tutorial.Rmd. This is a fantastic tutorial which walks you step by step through searching for data, accessing and interacting with the HLS data, and also processing the data.
If you have any more questions or are still receiving an "Access Denied" error, please let me know.
Thank you,
Kyra
I would recommend that you double check your .netrc file is accurate and in your home directory. Follow these instructions to set it up: https://github.com/nasa/LPDAAC-Data-Resources/blob/main/guides/create_netrc_file.md.
If you are interested in working with HLS data in R, I would recommend following our tutorial Getting Started with Cloud-Native Harmonized Landsat Sentinel-2 (HLS) Data in R: https://github.com/nasa/HLS-Data-Resources/blob/main/r/HLS_Tutorial.Rmd. This is a fantastic tutorial which walks you step by step through searching for data, accessing and interacting with the HLS data, and also processing the data.
If you have any more questions or are still receiving an "Access Denied" error, please let me know.
Thank you,
Kyra
Re: Access denied when trying to download data using R http::GET function
I found that I have to replace "~" with the actual home directory to make it work.
Thanks for the help!
Best,
Dongchen
Thanks for the help!
Best,
Dongchen