Page 1 of 1

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

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

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

Posted: Mon May 19, 2025 11:23 am America/New_York
by LP DAAC-EDL - kyrad
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

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

Posted: Mon May 19, 2025 11:39 am America/New_York
by zhangdc
I found that I have to replace "~" with the actual home directory to make it work.

Thanks for the help!

Best,
Dongchen