logo


Using wget with UNBVMF Service

The following is a set of usage examples for the implementation of wget for batch downloading. The download directory is the present working directory. Please refer to the manual page for wget for detailed instructions and usage. These were tested using Mac OS-X Lion 10.7.2 and Ubuntu 11.10.

  1. Using wget for a Single File for the year 2011

  2. wget http://unb-vmf1.gge.unb.ca/pub/unbvmfG/2011/filename

    Results:

    In this case, a single file is downloaded to the present working directory named filename


  3. Using wget for Multiple Files for a single year and a single month (November) at hour=00

  4. wget -nd -c -np -r --level=1 --accept='UNBVMFG_201111*.H00' http://unb-vmf1.gge.unb.ca/pub/unbvmfG/2011/

    Results:

    In this case, all files are downloaded for the month of November at epoch 00h.


  5. Using wget for Multiple Files for a single year and a single month (November) and multiple days (days 23 and 24 in November) for a single epoch.

  6. wget -nd -nc -np -r --accept='UNBVMFG_201111[2][3-4].H00' http://unb-vmf1.gge.unb.ca/pub/unbvmfG/2011/

    Results:

    The use of --accept allows the usage of wildcards. In this case, we need to deal with a two digit day number. The first term [2] is ther first digit of the day and the second term [3-4] is a range. Together, this will download days 23 to 24. This technique can be applied to the month and year as well.


    Files Downloaded:

    UNBVMFG_20111123.H00

    UNBVMFG_20111124.H00


  7. Using wget for Multiple Files for a single year, single month, multiple days and multiple epochs.

  8. wget -nd -nc -np -r --level=1 --accept='UNBVMFG_201111[2][3-4].H[01][028]' http://unb-vmf1.gge.unb.ca/pub/unbvmfG/2011/

    Results:

    In this case all files were downloaded for the dates November 23-24 with epochs 00,12 and 18. In this case, since we know the only epochs are 00,06,12 and 18 we created a list of wildcards in the square brackets. wget will create the combinations of the contents in the square brackets to build the files.


    Files Downloaded:

    UNBVMFG_20111123.H00

    UNBVMFG_20111123.H12

    UNBVMFG_20111123.H18

    UNBVMFG_20111124.H00

    UNBVMFG_20111124.H12

    UNBVMFG_20111124.H18

Back to Top