You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying any operation on a datatree using map_over_sweeps, and then try to export it to cfradial1, it produces an error, although they look identical when compared to each other.
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
Cell In[43], line 1
----> 1 xr.testing.assert_identical(dtree['sweep_0'], dtree3['sweep_0'])
[... skipping hidden 1 frame]
File ~/micromamba/envs/xradar_latest/lib/python3.12/site-packages/xarray/testing/assertions.py:181, in assert_identical(a, b)
179 assert a.identical(b), formatting.diff_coords_repr(a, b, "identical")
180 elif isinstance(a, DataTree):
--> 181 assert a.identical(b), diff_datatree_repr(a, b, "identical")
182 else:
183 raise TypeError(f"{type(a)} not supported by assertion comparison")
AssertionError: Left and right DataTree objects are not identical
Data at root node does not match:
Differing data variables:
L diff_reflectivity (azimuth, range) float32 1MB 0.0 ... 0.0
R diff_reflectivity (azimuth, range) float32 1MB 0.0 ... nan
L recalculated_diff_phase (azimuth, range) float32 1MB -0.0 ... ...
R recalculated_diff_phase (azimuth, range) float32 1MB -0.0 ... nan
L diff_phase (azimuth, range) float32 1MB 0.0 ... nan
R diff_phase (azimuth, range) float32 1MB 0.0 ... nan
L proc_dp_phase_shift (azimuth, range) float32 1MB 18.09 ......
R proc_dp_phase_shift (azimuth, range) float32 1MB 18.09 ......
L corrected_reflectivity_horizontal (azimuth, range) float32 1MB -5.617 .....
R corrected_reflectivity_horizontal (azimuth, range) float32 1MB -5.617 .....
L specific_attenuation (azimuth, range) float32 1MB 0.0004272...
R specific_attenuation (azimuth, range) float32 1MB 0.0004272...
L mean_doppler_velocity (azimuth, range) float32 1MB 0.0 ... -...
R mean_doppler_velocity (azimuth, range) float32 1MB 0.0 ... nan
L rain_rate_A (azimuth, range) float32 1MB 0.0625 .....
R rain_rate_A (azimuth, range) float32 1MB 0.0625 .....
L norm_coherent_power (azimuth, range) float32 1MB 1.0 ... 0.17
R norm_coherent_power (azimuth, range) float32 1MB 1.0 ... nan
L copol_coeff (azimuth, range) float32 1MB 1.0 ... nan
R copol_coeff (azimuth, range) float32 1MB 1.0 ... nan
L sweep_mode <U20 80B 'azimuth_surveillance'
R sweep_mode (azimuth, range) object 2MB 'azimuth_s...
L sweep_fixed_angle float64 8B 0.5
R sweep_fixed_angle (azimuth, range) float64 2MB 0.5 ... nan
L sweep_number int32 4B 0
R sweep_number (azimuth, range) float64 2MB 0.0 ... nan
L unf_dp_phase_shift (azimuth, range) float32 1MB 0.0 ... 28.4
R unf_dp_phase_shift (azimuth, range) float32 1MB 0.0 ... nan
L dp_phase_shift (azimuth, range) float32 1MB 90.0 ... nan
R dp_phase_shift (azimuth, range) float32 1MB 90.0 ... nan
L reflectivity_horizontal (azimuth, range) float32 1MB -6.203 .....
R reflectivity_horizontal (azimuth, range) float32 1MB -6.203 .....
Data variables only on the right object:
velocity_texture (azimuth, range) float32 1MB 4.744 ......
I tried it on another dataset, and even though they look identical, they still can’t be exported or transformed to cfradial1 after applying any operation using map_over_sweeps
The text was updated successfully, but these errors were encountered:
Description
When applying any operation on a datatree using
map_over_sweeps
, and then try to export it to cfradial1, it produces an error, although they look identical when compared to each other.What I Did
I tried it on another dataset, and even though they look identical, they still can’t be exported or transformed to
cfradial1
after applying any operation usingmap_over_sweeps
The text was updated successfully, but these errors were encountered: