Ignore:
Timestamp:
29/05/10 23:30:17 (10 years ago)
Author:
astephen
Message:

fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/process_modules/extract_uk_station_data.py

    r6873 r6910  
    7979            fout.close() 
    8080 
     81        # Now check limit on number of station IDs 
     82        n_src_ids = len(StationsIDs) 
     83        if n_src_ids > 100 and chunk_size == "decadal": 
     84            raise Exception("The number of selected station IDs has been calculated to be greater than 100. Please select a chunk size other than 'decadal' for such as large volume of data.") 
     85 
     86        N_YEARS = ? 
     87        if n_years > 1 and n_src_ids > 100: 
     88            raise Exception("The number of selected station IDs has been calculated to be greater than 100. Please select a time window no longer than 1 year.") 
     89 
    8190        self._addFileToFileSet(sf_path, "Station IDs file used for extraction of station data.", FLAG.DATA) 
    8291 
Note: See TracChangeset for help on using the changeset viewer.