downloading newest file from the web folder

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)

2 Comments

I am able to use these to read or download the name of files from the webpages mentioned, but not the actual files. Any thoughts on how to actually download the latest 7 files, not just the names? Thanks!
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')

Sign in to comment.

Categories

Asked:

on 10 Mar 2020

Commented:

on 19 Mar 2020

Community Treasure Hunt

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

Start Hunting!