xbpch
xbpch copied to clipboard
Xarray Error while implementing bpch_to_nc script of xbpch: conflicting sizes for dimension
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
Thank you
-Pritanjali Shende
Hi @mulgamulgi33, can you please post a link to a sample bpch file and your tracerinfo.dat/diaginfo.dat files?
Hi, I've also had an identical issue however this only occurs for runs longer than 1 month. Version 12.1.1 of GEOS-Chem with no modifications to the code. I'm on version 0.3.4 of xbpch.
This isn't a big issue as the netcdf diagnostics are working fine in 12.1.1 and as far as I can tell I'm unable to replicate the error with older versions of GEOS-Chem bpch output. It looks like the time dimensions for IJ-SOA-$_POA are always doubled so it might be an issue with the actual bpch file that is being output?
Hi @r-pound... also a very peculiar edge case. If y'all can get me those sample outputs I can try to debug it myself but without them, there's not a lot that I can do.
Hi @darothen I have spotted the issue here, in V11 in the tracerinfo.dat file ND42 has two duplicated names "POA" and "OPOA", these get concatenated on the time dimension. This has been fixed in V12. I spotted this as a similar things happens when tracer names exceed 8 characters and then truncate to identical names.
Thanks, Peter
Thanks @peterivatt, that's helpful - it's the same issue as #17. I think I'm going to implement the "brute force" option and force users to specify if their tracerinfo.dat is from before GC v12.2.0 and just deal with it that way. Hopefully will be able to cut a patch this weekend.