@@ -1035,7 +1035,7 class JRODataReader(JRODataIO): | |||
|
1035 | 1035 | |
|
1036 | 1036 | except IOError: |
|
1037 | 1037 | traceback.print_exc() |
|
1038 | sys.exit(0) | |
|
1038 | # sys.exit(0) | |
|
1039 | 1039 | |
|
1040 | 1040 | if msgFlag: |
|
1041 | 1041 | print "[Reading] The file %s is empty or it hasn't enough data" % filename |
@@ -1170,7 +1170,7 class JRODataReader(JRODataIO): | |||
|
1170 | 1170 | |
|
1171 | 1171 | if not(fullpath): |
|
1172 | 1172 | print "[Reading] There 'isn't any valid file in %s" % path |
|
1173 |
return |
|
|
1173 | return | |
|
1174 | 1174 | |
|
1175 | 1175 | self.year = year |
|
1176 | 1176 | self.doy = doy |
@@ -1187,12 +1187,16 class JRODataReader(JRODataIO): | |||
|
1187 | 1187 | walk=walk) |
|
1188 | 1188 | |
|
1189 | 1189 | if not(pathList): |
|
1190 |
|
|
|
1191 |
|
|
|
1192 |
|
|
|
1193 |
|
|
|
1194 | sys.exit(-1) | |
|
1190 | print "[Reading] No *%s files in %s (%s - %s)"%(ext, path, | |
|
1191 | datetime.datetime.combine(startDate,startTime).ctime(), | |
|
1192 | datetime.datetime.combine(endDate,endTime).ctime()) | |
|
1193 | ||
|
1194 | # sys.exit(-1) | |
|
1195 | 1195 | |
|
1196 | self.fileIndex = -1 | |
|
1197 | self.pathList = [] | |
|
1198 | self.filenameList = [] | |
|
1199 | return | |
|
1196 | 1200 | |
|
1197 | 1201 | self.fileIndex = -1 |
|
1198 | 1202 | self.pathList = pathList |
@@ -1216,8 +1220,11 class JRODataReader(JRODataIO): | |||
|
1216 | 1220 | print "[Reading] No files in range: %s" %(datetime.datetime.combine(startDate,startTime).ctime()) |
|
1217 | 1221 | else: |
|
1218 | 1222 | print "[Reading] No files" |
|
1219 | ||
|
1220 |
|
|
|
1223 | ||
|
1224 | self.fileIndex = -1 | |
|
1225 | self.pathList = [] | |
|
1226 | self.filenameList = [] | |
|
1227 | return | |
|
1221 | 1228 | |
|
1222 | 1229 | # self.getBasicHeader() |
|
1223 | 1230 |
General Comments 0
You need to be logged in to leave comments.
Login now