# Decoding error reading CfRadial1 file

**URL:** <https://openradar.discourse.group/t/decoding-error-reading-cfradial1-file/80>\
**Category:** Data\
**Tags:** wradlib, py-art, data\
**Created:** [November 2, 2022, 8:50am UTC](https://openradar.discourse.group/t/decoding-error-reading-cfradial1-file/80 "2022-11-02T08:50:34Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![kmuehlbauer](https://yyz2.discourse-cdn.com/free1/user_avatar/openradar.discourse.group/kmuehlbauer/32/439_2.png) [@kmuehlbauer](https://openradar.discourse.group/u/kmuehlbauer)\
**Post date:** [November 3, 2022, 10:13am UTC](https://openradar.discourse.group/t/decoding-error-reading-cfradial1-file/80/21 "2022-11-03T10:13:09Z")

</div>

> [@adithiyrnair](#):
>
> I couldn’t replay to you yesterday because of chat limit shown by the site 😆

If that happens again, would you mind opening another discussion below “General” with the exact message? We might have to adapt the user settings. We are still in the process of finding out the correct settings. 😇

---

<div class="post-metadata">

**Author:** ![adithiyrnair](https://yyz2.discourse-cdn.com/free1/user_avatar/openradar.discourse.group/adithiyrnair/32/84_2.png) [@adithiyrnair](https://openradar.discourse.group/u/adithiyrnair)\
**Post date:** [November 3, 2022, 10:19am UTC](https://openradar.discourse.group/t/decoding-error-reading-cfradial1-file/80/22 "2022-11-03T10:19:28Z")

</div>

@kmuehlbauer  
Sure, Thank you … Have a nice day 😇 😇

---

<div class="post-metadata">

**Author:** ![Jagdish\_jena](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@Jagdish\_jena](https://openradar.discourse.group/u/Jagdish_jena)\
**Post date:** [September 9, 2023, 4:38pm UTC](https://openradar.discourse.group/t/decoding-error-reading-cfradial1-file/80/23 "2023-09-09T16:38:11Z")

</div>

i was correcting the same radar file using ur code and got following error  
Cell In[5], line 44  
39 vol[“sweep\_end\_ray\_index”].values = sweep\_end\_ray\_index  
41 # assign data to wradlib RadarVolume()  
42 # now we have everything in place and can extract individual sweeps  
43 # this is done via private functions of wradlib, so take with care  
—\> 44 sweeps = [wrl.io.xarray._assign\_data\_radial(vol, sweep=f"sweep_{i+1}")[0] for i in range(vol.dims[“sweep”])]  
45 new\_vol = wrl.io.RadarVolume(engine=“cfradial1”)  
46 new\_vol.extend(sweeps)

Cell In[5], line 44, in (.0)  
39 vol[“sweep\_end\_ray\_index”].values = sweep\_end\_ray\_index  
41 # assign data to wradlib RadarVolume()  
42 # now we have everything in place and can extract individual sweeps  
43 # this is done via private functions of wradlib, so take with care  
—\> 44 sweeps = [wrl.io.xarray._assign\_data\_radial(vol, sweep=f"sweep_{i+1}")[0] for i in range(vol.dims[“sweep”])]  
45 new\_vol = wrl.io.RadarVolume(engine=“cfradial1”)  
46 new\_vol.extend(sweeps)

AttributeError: module ‘wradlib.io.xarray’ has no attribute ‘\_assign\_data\_radial’

---

<div class="post-metadata">

**Author:** ![kmuehlbauer](https://yyz2.discourse-cdn.com/free1/user_avatar/openradar.discourse.group/kmuehlbauer/32/439_2.png) [@kmuehlbauer](https://openradar.discourse.group/u/kmuehlbauer)\
**Post date:** [September 10, 2023, 7:22am UTC](https://openradar.discourse.group/t/decoding-error-reading-cfradial1-file/80/24 "2023-09-10T07:22:43Z")

</div>

Hi @Jagdish_jena,

the example you are following is for an older wradlib version. The example would have to be adapted to work with recent wradlib.

Best,  
Kai

[Previous page](https://openradar.discourse.group/t/decoding-error-reading-cfradial1-file/80.md?page=1)
