get_bathy.py.html CLAWPACK  
 Source file:   get_bathy.py
 Directory:   /Users/rjl/git/clawpack/geoclaw/examples/storm-surge/ike
 Converted:   Wed Dec 28 2016 at 23:12:20   using clawcode2html
 This documentation file will not reflect any later changes in the source file.

 
#!/usr/bin/env python

"""Simple implementation of a file fetcher"""

from __future__ import absolute_import
import sys
import os
import clawpack.clawutil.data

if __name__ == "__main__":
    # Default URLs
    base_url = "http://www.columbia.edu/~ktm2132/bathy/"

    # Override base_url
    if len(sys.argv) > 1:
        base_url = sys.argv[1]

    urls = [os.path.join(base_url, 'gulf_caribbean.tt3.tar.bz2')]

    for url in urls:
        clawpack.clawutil.data.get_remote_file(url)