Skip to content

Xarray Error while implementing bpch_to_nc script of xbpch: conflicting sizes for dimension  #13

@mulgamulgi33

Description

@mulgamulgi33

Hello everyone,

I am facing an error of " conflicting sizes for dimension time " when I am implementing bpch_to_nc script of xbpch. If anyone knows the solution for this error please let me know.

In the terminal after executing the command I get:

Reading in file(s)...
/usr/local/lib/python2.7/dist-packages/pandas/io/parsers.py:710: UserWarning: Duplicate names specified. This will raise an error in the future.
return _read(filepath_or_buffer, kwds)
Traceback (most recent call last):
File "/usr/local/bin/bpch_to_nc", line 4, in
import('pkg_resources').run_script('xbpch==0.3.3', 'bpch_to_nc')
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 657, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 1437, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/xbpch-0.3.3.dist-info/scripts/bpch_to_nc", line 77, in
ds = open_bpchdataset(args.bpch_files[0], **open_kws)
File "/usr/local/lib/python2.7/dist-packages/xbpch/core.py", line 82, in open_bpchdataset
ds = xr.Dataset.load_store(store)
File "/usr/local/lib/python2.7/dist-packages/xarray/core/dataset.py", line 397, in load_store
obj = cls(variables, attrs=attributes)
File "/usr/local/lib/python2.7/dist-packages/xarray/core/dataset.py", line 365, in init
self._set_init_vars_and_dims(data_vars, coords, compat)
File "/usr/local/lib/python2.7/dist-packages/xarray/core/dataset.py", line 383, in _set_init_vars_and_dims
data_vars, coords, compat=compat)
File "/usr/local/lib/python2.7/dist-packages/xarray/core/merge.py", line 365, in merge_data_and_coords
indexes=indexes)
File "/usr/local/lib/python2.7/dist-packages/xarray/core/merge.py", line 443, in merge_core
dims = calculate_dimensions(variables)
File "/usr/local/lib/python2.7/dist-packages/xarray/core/dataset.py", line 109, in calculate_dimensions
(dim, size, k, dims[dim], last_used[dim]))
ValueError: conflicting sizes for dimension 'time': length 38 on 'IJ-SOA-$_POA' and length 19 on 'PL-SUL=$_SO2dms'

Thank you

-Pritanjali Shende

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions