# How to solve it OS error

**URL:** <https://openradar.discourse.group/t/how-to-solve-it-os-error/402>\
**Category:** General\
**Created:** [February 16, 2024, 5:24pm UTC](https://openradar.discourse.group/t/how-to-solve-it-os-error/402 "2024-02-16T17:24:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aswin](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@aswin](https://openradar.discourse.group/u/aswin)\
**Post date:** [February 16, 2024, 5:24pm UTC](https://openradar.discourse.group/t/how-to-solve-it-os-error/402/1 "2024-02-16T17:24:42Z")

</div>

```python
OSError Traceback (most recent call last)
Cell In[54], line 2
      1 # read the data (sample file in WRADLIB_DATA)
----> 2 raw_dt1 = wrl.util.get_wradlib_data_file("CFRADIAL\RCTLS_04DEC2023_001214_L2B_STD.nc")

File ~\AppData\Roaming\Python\Python311\site-packages\wradlib\util.py:599, in get_wradlib_data_file(relfile)
    598 def get_wradlib_data_file(relfile):
--> 599 data_file = os.path.abspath(os.path.join(get_wradlib_data_path(), relfile))
    600 if not os.path.exists(data_file):
    601 try:

File ~\AppData\Roaming\Python\Python311\site-packages\wradlib\util.py:589, in get_wradlib_data_path()
    587 wrl_data_path = os.environ.get("WRADLIB_DATA", None)
    588 if wrl_data_path is None:
--> 589 raise OSError(
    590 "`WRADLIB_DATA` environment variable not set. Please set `WRADLIB_DATA` "
    591 "pointing to the location of `wradlib_data` repository on the filesystem."
    592 )
    593 if not os.path.isdir(wrl_data_path):
    594 raise OSError(f"`WRADLIB_DATA` path {wrl_data_path!r} does not exist.")

OSError: `WRADLIB_DATA` environment variable not set. Please set `WRADLIB_DATA` pointing to the location of `wradlib_data` repository on the filesystem.

```

---

<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:** [February 16, 2024, 8:34pm UTC](https://openradar.discourse.group/t/how-to-solve-it-os-error/402/2 "2024-02-16T20:34:22Z")

</div>

@aswin

Please provide a bit more context here. We might be able to see what’s going on only from looking at the traceback. Nevertheless the code which creates that traceback would really help in getting to the point.

One question, why are you using `get_wradlib_data_file`? You could just give your filepath to the wanted reading function.

HTH,  
Kai

---

<div class="post-metadata">

**Author:** ![aswin](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@aswin](https://openradar.discourse.group/u/aswin)\
**Post date:** [February 17, 2024, 7:12pm UTC](https://openradar.discourse.group/t/how-to-solve-it-os-error/402/3 "2024-02-17T19:12:41Z")

</div>

@kmuehlbauer  
Actually my goal is want to convert raw data into volumetric gridded.[file link](https://drive.google.com/file/d/1RCv_0ZZyW1elsM_Tw7O6s1976Sa4b-Dz/view?usp=drive_link). i am attaching nc file . Thank you for your responce

---

<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:** [February 18, 2024, 4:57pm UTC](https://openradar.discourse.group/t/how-to-solve-it-os-error/402/4 "2024-02-18T16:57:44Z")

</div>

@aswin

Please first try to ingest your file. The following will need [xradar](https://docs.openradarscience.org/projects/xradar/en/stable/index.html) package to be installed (assuming your file is CfRadial1, other files can be read by xradar too, like ODIM, GAMIC, FURUNO, SIGMET/IRIS, and more to come):

```python
import xradar as xd
dtree = xd.io.open_cfradial1_datatree(filename)
print(dtree)

```

You might also try Py-ART here:

```pythont
import pyart
radar = pyart.io.read(filename)
print(radar)

```

After ingesting your data you can do anything what you want with the ingested data. For conversion of raw data into gridded cartesian data there are several examples out there. I’ll add some links here:

Py-ART: [Mapping Data to a Cartesian Grid — Py-ART 1.17.0.post3 documentation](https://arm-doe.github.io/pyart/notebooks/mapping_data_to_a_cartesian_grid.html)  
WRADLIB: [Recipe #2: Reading and visualizing an ODIM\_H5 polar volume — wradlib](https://docs.wradlib.org/en/latest/notebooks/workflow/recipe2.html)

Those examples might not exactly look like what you expect, but you should get an insight how to tackle the problem. Maybe others can chime in, as I do not have the cycles to check on your file soonish.

HTH,  
Kai

---

<div class="post-metadata">

**Author:** ![aswin](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@aswin](https://openradar.discourse.group/u/aswin)\
**Post date:** [February 18, 2024, 6:53pm UTC](https://openradar.discourse.group/t/how-to-solve-it-os-error/402/5 "2024-02-18T18:53:08Z")

</div>

@kmuehlbauer Thank you for your guidence i will look into this and i will try it .
