SalishSeaCast / SalishSeaNowcast

Python package associated with running the SalishSeaCast NEMO and other ocean models in near-real-time to produce daily nowcasts/forecasts
https://salishsea.eos.ubc.ca/nemo/
Apache License 2.0
4 stars 3 forks source link

Handle conflicting time values error in get_onc_ferry #46

Open douglatornell opened 7 years ago

douglatornell commented 7 years ago

Original report by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


Should not preclude having data from other sensors for the date.

Traceback:

#!

2017-10-13 16:16:56,059 DEBUG [get_onc_ferry] ONC TWDP CO2SENSOR data for 2017-03-02 received and parsed
2017-10-13 16:16:56,071 DEBUG [get_onc_ferry] filtering ONC TWDP CO2SENSOR partial_pressure data for 2017-03-02 to exlude qaqcFlag!=1
2017-10-13 16:16:56,073 DEBUG [get_onc_ferry] filtering ONC TWDP CO2SENSOR co2 data for 2017-03-02 to exlude qaqcFlag!=1
2017-10-13 16:16:58,371 CRITICAL [get_onc_ferry] unhandled exception:
Traceback (most recent call last):
  File "/results/nowcast-sys/NEMO_Nowcast/nemo_nowcast/worker.py", line 381, in _do_work
    self._parsed_args, self.config, self.tell_manager)
  File "/results/nowcast-sys/SalishSeaNowcast/nowcast/workers/get_onc_ferry.py", line 120, in get_onc_ferry
    data_arrays, ferry_platform, ferry_config, location_config, ymd
  File "/results/nowcast-sys/SalishSeaNowcast/nowcast/workers/get_onc_ferry.py", line 481, in _create_dataset
    ferry_config['ONC station description'],
  File "/results/nowcast-sys/nowcast-env/lib/python3.6/site-packages/xarray/core/dataset.py", line 353, in __init__
    self._set_init_vars_and_dims(data_vars, coords, compat)
  File "/results/nowcast-sys/nowcast-env/lib/python3.6/site-packages/xarray/core/dataset.py", line 368, in _set_init_vars_and_dims
    data_vars, coords, compat=compat)
  File "/results/nowcast-sys/nowcast-env/lib/python3.6/site-packages/xarray/core/merge.py", line 365, in merge_data_and_coords
    return merge_core(objs, compat, join, explicit_coords=explicit_coords)
  File "/results/nowcast-sys/nowcast-env/lib/python3.6/site-packages/xarray/core/merge.py", line 421, in merge_core
    variables = merge_variables(expanded, priority_vars, compat=compat)
  File "/results/nowcast-sys/nowcast-env/lib/python3.6/site-packages/xarray/core/merge.py", line 163, in merge_variables
    merged[name] = unique_variable(name, dim_variables, dim_compat)
  File "/results/nowcast-sys/nowcast-env/lib/python3.6/site-packages/xarray/core/merge.py", line 85, in unique_variable
    % (name, out, var))
xarray.core.merge.MergeError: conflicting values for variable 'time' on objects to be combined:
first value: <xarray.IndexVariable 'time' (time: 1440)>
array(['2017-03-02T00:00:00.000000000', '2017-03-02T00:01:00.000000000',
       '2017-03-02T00:02:00.000000000', ..., '2017-03-02T23:57:00.000000000',
       '2017-03-02T23:58:00.000000000', '2017-03-02T23:59:00.000000000'], dtype='datetime64[ns]')
second value: <xarray.IndexVariable 'time' (time: 1413)>
array(['2017-03-02T00:27:00.000000000', '2017-03-02T00:28:00.000000000',
       '2017-03-02T00:29:00.000000000', ..., '2017-03-02T23:57:00.000000000',
       '2017-03-02T23:58:00.000000000', '2017-03-02T23:59:00.000000000'], dtype='datetime64[ns]')
douglatornell commented 7 years ago

Original changes by Doug Latornell (Bitbucket: douglatornell, GitHub: douglatornell).


changed state from "new" to "open"