Ignore:
Timestamp:
10/06/10 22:05:28 (10 years ago)
Author:
astephen
Message:

fixes to chain processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/process_modules/lib_extract_uk_station_data/utils.py

    r6873 r6976  
    88 
    99import os, stat, time, sys 
     10import urllib 
    1011 
    1112from cows_wps.utils.duration_splitter import * 
     
    5758         
    5859    return output_file_paths 
     60 
     61 
     62def downloadFileAndExtractStations(url): 
     63    """ 
     64    Downloads file and extracts stations to a list. 
     65    """ 
     66    f = urllib.urlopen(url) 
     67    data = f.read() 
     68    f.close() 
     69 
     70    station_ids = data.split()  
     71    return station_ids 
Note: See TracChangeset for help on using the changeset viewer.