Access denied when trying to download data using R http::GET function

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
zhangdc
Posts: 2
Joined: Sun May 18, 2025 1:34 pm America/New_York
Answers: 0

Access denied when trying to download data using R http::GET function

by zhangdc » Mon May 19, 2025 9:10 am America/New_York


Filters:

LP DAAC-EDL - kyrad
Posts: 10
Joined: Tue Feb 14, 2023 3:48 pm America/New_York
Answers: 0
Been thanked: 1 time

Re: Access denied when trying to download data using R http::GET function

by LP DAAC-EDL - kyrad » Mon May 19, 2025 11:23 am America/New_York

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

zhangdc
Posts: 2
Joined: Sun May 18, 2025 1:34 pm America/New_York
Answers: 0

Re: Access denied when trying to download data using R http::GET function

by zhangdc » Mon May 19, 2025 11:39 am America/New_York

I found that I have to replace "~" with the actual home directory to make it work.

Thanks for the help!

Best,
Dongchen

Post Reply