Recently we needed to get a bunch of vpts files locally with some date filtering. I modified get_vpts() to help me do this.
I think it would be useful (to future me, and hopefully others) to have a dedicated exported function for this: download_vpts() that is called by get_vpts() internally.
I've already done a bit of work on this, but will need some time to polish and integrate into get_vpts().
The function would accept the following arguments:
radar
datetime
source
path
And would invisibly return the paths of the downloaded files. Alternatively, the directory path of where the files were stored. This path could then be fed to future calls of get_vpts() so files don't need to be downloaded again.
What do you think?
Recently we needed to get a bunch of vpts files locally with some date filtering. I modified
get_vpts()to help me do this.I think it would be useful (to future me, and hopefully others) to have a dedicated exported function for this:
download_vpts()that is called byget_vpts()internally.I've already done a bit of work on this, but will need some time to polish and integrate into
get_vpts().The function would accept the following arguments:
radardatetimesourcepathAnd would invisibly return the paths of the downloaded files. Alternatively, the directory path of where the files were stored. This path could then be fed to future calls of
get_vpts()so files don't need to be downloaded again.What do you think?