@@ -214,18 +214,16 def checkForRealPath(path, year, doy, set, ext): | |||||
214 | return fullfilename, filename |
|
214 | return fullfilename, filename | |
215 |
|
215 | |||
216 | def isDoyFolder(folder): |
|
216 | def isDoyFolder(folder): | |
217 | print folder |
|
|||
218 | try: |
|
217 | try: | |
219 | year = int(folder[1:5]) |
|
218 | year = int(folder[1:5]) | |
220 | print year |
|
|||
221 | except: |
|
219 | except: | |
222 | return 0 |
|
220 | return 0 | |
223 |
|
221 | |||
224 | try: |
|
222 | try: | |
225 | doy = int(folder[5:8]) |
|
223 | doy = int(folder[5:8]) | |
226 | print doy |
|
|||
227 | except: |
|
224 | except: | |
228 | return 0 |
|
225 | return 0 | |
|
226 | ||||
229 | return 1 |
|
227 | return 1 | |
230 |
|
228 | |||
231 | class JRODataIO: |
|
229 | class JRODataIO: | |
@@ -441,6 +439,8 class JRODataReader(JRODataIO, ProcessingUnit): | |||||
441 | continue |
|
439 | continue | |
442 | if not isDoyFolder(thisPath): |
|
440 | if not isDoyFolder(thisPath): | |
443 | continue |
|
441 | continue | |
|
442 | ||||
|
443 | dirList.append(thisPath) | |||
444 |
|
444 | |||
445 | if not(dirList): |
|
445 | if not(dirList): | |
446 | return None, None, None, None, None |
|
446 | return None, None, None, None, None |
General Comments 0
You need to be logged in to leave comments.
Login now