How to download data using proper link

조회 수: 2 (최근 30일)
SWARNENDU PAL
SWARNENDU PAL 2021년 10월 24일
댓글: SWARNENDU PAL 2021년 10월 25일
Hello everyone. I want to download data using link. I have some proper link, if you click the link the data will be donwloaded automatically. There are total 240 links. I am unable to download the data using those linnks by matlab, because manually it will be time consuming as well as there may be mistake. I am sharing one .txt file, where the links are provided. Thank you.
  댓글 수: 2
Jan
Jan 2021년 10월 24일
It is not clear, what this sentence means: "I am unable to download the data using those linnks by matlab, because manually it will be time consuming as well as there may be mistake."
What is your code? Which problem occurs? Of course downloading a lot of files can be time consuming. But which mistake to you assume?
SWARNENDU PAL
SWARNENDU PAL 2021년 10월 24일
Sorry for the inconvenience. I am trying to explain once again. In that text file all the single line is a link. If you copy one single link and paste to your browser one netcdf file will be downloaded. You can try that. Now i want to write a code by which i can download the files for every corresponding link. I have tried webread function for accessing those links, but I am unable to do that. Apology for not clarification. If further problem arises please let me know. Thank you sir.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2021년 10월 25일
FileName = 'prov.postprocess+sMpAn+dMOD08_M3_6_1_Deep_Blue_Aerosol_Optical_Depth_550_Land_Mean_Mean+zNA+t20010101000000_20201231235959+b.txt';
List = strsplit(fileread(FileName), char(10));
for k = 1:numel(List)
webread(List{k}) % How do you want to store the results?
end
  댓글 수: 1
SWARNENDU PAL
SWARNENDU PAL 2021년 10월 25일
Thank you for your response sir. But I got some error. I am attaching the photo with this messege. Thank you sir.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by