downloading newest file from the web folder
Show older comments
Anyone have an idea on how to have MATLAB look for and download the newest file from this web site? Could either come from the normal download site (https://www.ncei.noaa.gov/data/avhrr-land-normalized-difference-vegetation-index/access/2020/) or the thredds download site (https://www.ncei.noaa.gov/thredds/catalog/cdr/ndvi/files/2020/catalog.html).
Thank You
Answers (1)
Srivardhan Gadila
on 13 Mar 2020
0 votes
2 Comments
Mel Kunkel
on 18 Mar 2020
Srivardhan Gadila
on 19 Mar 2020
Let's say the name of the first file is firstFile.nc, 'https://webURL/' is the website URL of the normal download site you mentioned above & 'https://webURL/firstFile.nc' is the URL of the firstFile.nc
Then use the websave command as follows:
websave('firstFile.nc','https://webURL/firstFile.nc')
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!