how to download nc files on website using matlab?

41 ビュー (過去 30 日間)
Seong Sik Park
Seong Sik Park 2021 年 12 月 28 日
編集済み: Priyanka Kondapalli 2022 年 3 月 24 日
Hi, i have to download nc files on 'https://oceandata.sci.gsfc.nasa.gov/directaccess/GOCI/L2/2012/001/' using matlab.
i tried to download using 'urlwrite' function as follow:
url="https://oceandata.sci.gsfc.nasa.gov/ob/getfile/G2012001001642.L2_COMS_OC.nc";
urlwrite("G2012001001642.L2_COMS_OC.nc", url);
but, the downloaded nc file was not worked.
how to download nc files on the website using matlab...?

回答 (1 件)

Priyanka Kondapalli
Priyanka Kondapalli 2022 年 1 月 6 日
編集済み: Priyanka Kondapalli 2022 年 3 月 24 日
Hi,
Please excute the below code in MATLAB and it should help in downloading the file.
websave("G2012001001642.L2_COMS_OC.nc","https://oceandata.sci.gsfc.nasa.gov/ob/getfile/G2012001001642.L2_COMS_OC.nc",'duration',10,'term','matlab')
For any futher knowledge on downloading webepages and files, you can also refer to the below link

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by