NCAR / CESM_postprocessing

Project repository for the CESM python based post-processing code, documentation and issues tracking.
77 stars 45 forks source link

extra data error #184

Closed lvankampenhout closed 6 years ago

lvankampenhout commented 6 years ago

I ran timeseriestwice in a row. This generated a ts_status.log with two lines in it, see attachment.

The next time that I run timeseries I get this error:

ValueError: Extra data: line 2 column 1 - line 2 column 401121 (char 385576 - 786696)
Traceback (most recent call last):
  File "/nfs/home1/kampe004/github/CESM_postprocessing/timeseries/timeseries/cesm_tseries_generator.py", line 411, in <module>
(...)
  File "/nfs/home1/kampe004/github/CESM_postprocessing/timeseries/timeseries/chunking.py", line 362, in read_log
    d = json.load(f)

ts_status.log

bertinia commented 6 years ago

I'm not sure what you're data input files looked like but there's an issue with the cam.h2 history stream in that it's entered twice in the ts_status.log. (open the ts_status.log file and search for "index" to see all the streams that were converted to single variable timeseries). I would try deleting the existing single variable timeseries files and the ts_status.log file and resubmit.

lvankampenhout commented 6 years ago

I deleted one of the (identical) double entries and then it worked again. Thanks.