Skip to content

Error in timeSeriesOHCAnomaly: plotDepthIntegratedTimeSeriesGlobal #324

@xylar

Description

@xylar

I'm seeing the following error on develop with both python2 and python3:

Traceback (most recent call last):
  File "/home/xylar/code/mpas-work/analysis/mpas_analysis_repo/mpas_analysis/shared/analysis_task.py", line 324, in run
    self.run_task()
  File "/home/xylar/code/mpas-work/analysis/mpas_analysis_repo/mpas_analysis/ocean/plot_depth_integrated_time_series_subtask.py", line 377, in run_task
    field = compute_moving_avg(field, movingAveragePoints)
  File "/home/xylar/code/mpas-work/analysis/mpas_analysis_repo/mpas_analysis/shared/time_series/moving_average.py", line 40, in compute_moving_avg
    center=True).mean().dropna('Time')
  File "/home/xylar/miniconda2/envs/mpas_analysis_py3/lib/python3.6/site-packages/xarray/core/rolling.py", line 322, in wrapped_func
    result = DataArray(values, self.obj.coords)
  File "/home/xylar/miniconda2/envs/mpas_analysis_py3/lib/python3.6/site-packages/xarray/core/dataarray.py", line 226, in __init__
    coords, dims = _infer_coords_and_dims(data.shape, coords, dims)
  File "/home/xylar/miniconda2/envs/mpas_analysis_py3/lib/python3.6/site-packages/xarray/core/dataarray.py", line 81, in _infer_coords_and_dims
    'coordinate %r' % (d, sizes[d], s, k))
ValueError: conflicting sizes for dimension 'Time': length 55 on the data but length 60 on coordinate 'Time'

I'm seeing this after updating to the latest version of xarray, dask, etc. (conda update --all), so that might explain why we haven't seen this before. I'll look into it...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions