- Timestamp:
- Nov 30, 2018, 6:24:41 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 97f4f4c
- Parents:
- de4dc27
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/mods/get_mars_data.py
r45c6337 r1d15e27 149 149 # if data are to be retrieved, clean up any old grib files 150 150 if c.request == 0 or c.request == 2: 151 remove_old('*grb' )151 remove_old('*grb', c.inputdir) 152 152 153 153 # -------------- flux data ------------------------------------------------ … … 265 265 return start, end, chunk 266 266 267 def remove_old(pattern ):267 def remove_old(pattern, inputdir): 268 268 '''Deletes old retrieval files matching the pattern. 269 269 … … 273 273 The sub string pattern which identifies the files to be deleted. 274 274 275 Return 276 ------ 277 278 ''' 279 print('... removing old content of ' + c.inputdir) 280 281 tobecleaned = UioFiles(c.inputdir, pattern) 275 inputdir : :obj:`string`, optional 276 Path to the directory where the retrieved data is stored. 277 278 Return 279 ------ 280 281 ''' 282 print('... removing old content of ' + inputdir) 283 284 tobecleaned = UioFiles(inputdir, pattern) 282 285 tobecleaned.delete_files() 283 286
Note: See TracChangeset
for help on using the changeset viewer.