Forums > MaxMSP

Download web list and delete web list

October 18, 2013 | 11:18 am

Hi everyone.

Yesterday I spent the day making a nice visualization for some data I am gathering and today I noticed that the website Changes the url of the image I was analyzing every day!

Yesterday it was –
ftp://sidads.colorado.edu/DATASETS/NOAA/G02186/png/masie_all_r00_v01_2013289_4km.png
today it is –
ftp://sidads.colorado.edu/DATASETS/NOAA/G02186/png/masie_all_r00_v01_2013290_4km.png

notice the last digit before the _4km.png

the problem is that I was using the method
Msg – download ftp://sidads.colorado.edu/DATASETS/NOAA/G02186/png/masie_all_r00_v01_2013289_4km.png

+
MSg – Read
Location of file/ file.png

I need to be able to feed the download an read msgs a list of website name to download and read. and I need to activate each list within each 24 hours.

so I imagine I would have a list
ftp://sidads.colorado.edu/DATASETS/NOAA/G02186/png/masie_all_r00_v01_2013289_4km.png
ftp://sidads.colorado.edu/DATASETS/NOAA/G02186/png/masie_all_r00_v01_2013290_4km.png
ftp://sidads.colorado.edu/DATASETS/NOAA/G02186/png/masie_all_r00_v01_2013291_4km.png
etc.

And if that is not enough I would also need a delete msg list that deletes the
the old pngs as the days progress

Please help me with this.
!!

thanks


October 18, 2013 | 12:15 pm

use [regexp] for incrementing the digits (but i moderately understood : do you want the updated image of each day ?)


October 18, 2013 | 12:58 pm

[ftp://sidads.colorado.edu/DATASETS/NOAA/G02186/png/masie_all_r00_v01_]
  |
  |                               [number]
  |                                 |
[sprintf %s%i _4km.png]


Viewing 3 posts - 1 through 3 (of 3 total)