フィルターのクリア

Download data from URL into my directory

5 ビュー (過去 30 日間)
William Atkinson
William Atkinson 2021 年 1 月 19 日
編集済み: William Atkinson 2021 年 1 月 19 日
Hello,
I am trying to download data from online and I need to download a lot of netcdf files. I want to use websave but it saves the data into a html file when I want it to save the 5 netcdf files into my directory
I want to do:
filename = tile_001;
outfile = websave(filename,url);
When I do this, it creates a tile_001.html file when I want it to take the netcdf files from the url and just download them to my directory on my server.
Is their a different way to do this? I am in the right directory and everything, it just saves a html file instead of saving it in the right directory.

回答 (1 件)

Matt Gaidica
Matt Gaidica 2021 年 1 月 19 日
I don't immediately see how to do this unless you know the filenames apriori or can FTP into the site and use dir().
Perhaps you can use wget either from terminal or execute it through system().

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by