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