def FetchRidgeImage(url, type, station):
    """
    Fetches RIDGE radar image (.gif) and world file (.gfw) of given image type
    for station at url
    ------------------------------------------------------------------------------
    Inputs:
    url:        Remote URL of directory where images live
    type:       Image type:
                N0R: Base Reflectivity
                N0S: Storm Relative Motion
                N0V: Base Velocity
                N1P: One-Hour Precipitation
                NCR: Composite Reflectivity
                NTP: Storm Total Precipitation
                See http://www.srh.noaa.gov/jetstream/remote/ridge_download.htm for more info
    station:    Radar station ID. See 
                http://www.srh.noaa.gov/jetstream/remote/ridge_download.htm#radar for more info
    ------------------------------------------------------------------------------
    """
    # URL of image(s) we want
    url = [url + type + '/' + station + '_' + type + '_0' + '.gif']
    for base in url:
        # Get the base url
        urlbase = base[:-13]
        for file in url:
            # Get only the file name without extention
            fileonly = file[-13:-4]
            # Set list of extentions for filetypes we want
            list = ['gif', 'gfw']
            # Get all files with extension in list
            for ext in list:
                fullname = fileonly + '.' + ext
                urllib.urlretrieve(urlbase + fullname, ldir + fullname)

    Fetches RIDGE radar image (.gif) and world file (.gfw) of given image type
    for station at url
    ------------------------------------------------------------------------------
    Inputs:
    url:        Remote URL of directory where images live
    type:       Image type:
                N0R: Base Reflectivity
                N0S: Storm Relative Motion
                N0V: Base Velocity
                N1P: One-Hour Precipitation
                NCR: Composite Reflectivity
                NTP: Storm Total Precipitation
                See http://www.srh.noaa.gov/jetstream/remote/ridge_download.htm for more info
    station:    Radar station ID. See 
                http://www.srh.noaa.gov/jetstream/remote/ridge_download.htm#radar for more info
    ------------------------------------------------------------------------------
    
recipes/Python/499352_Download_rename_RIDGE_radar/recipe-499352.py