{"id":21642,"library":"open-radar-data","title":"Open Radar Data","description":"Provides utility functions for accessing the open radar data repository for examples and notebooks. Current version 0.7.0, requires Python >=3.9.","status":"active","version":"0.7.0","language":"python","source_language":"en","source_url":"https://github.com/OpenRadar/open-radar-data","tags":["radar","meteorology","data-access"],"install":[{"cmd":"pip install open-radar-data","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Direct import of the package gives access to internal modules; use datasets to fetch data.","wrong":"import open_radar_data","symbol":"open_radar_data","correct":"from open_radar_data import datasets"}],"quickstart":{"code":"from open_radar_data import datasets\n\n# List available datasets\ndatasets.list_datasets()\n\n# Download a dataset (returns path to downloaded file)\nfile_path = datasets.fetch('nexrad_level2_example')\nprint(file_path)","lang":"python","description":"Fetch a public radar dataset by name. The function downloads it if not cached."},"warnings":[{"fix":"Update callers to expect a single string: file_path = datasets.fetch('dataset_name')","message":"In version 0.7.0 the fetch() function changed from returning a tuple (path, filename) to returning a string path. Code using unpacking will break.","severity":"breaking","affected_versions":"<0.7.0"},{"fix":"Replace datasets.get_path('name') with datasets.fetch('name')","message":"The function 'get_path()' is deprecated in favor of 'fetch()' and may be removed in a future release.","severity":"deprecated","affected_versions":">=0.6.0"},{"fix":"Manually cache the returned path or set environment variable OPEN_RADAR_DATA_CACHE_DIR to a persistent directory.","message":"Some datasets require internet access to download. The library does not cache aggressively; repeated calls may re-download.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'from open_radar_data import datasets'","cause":"Importing the package without submodule fails because datasets is a submodule.","error":"AttributeError: module 'open_radar_data' has no attribute 'datasets'"},{"fix":"Change code from 'path, filename = datasets.fetch(...)' to 'path = datasets.fetch(...)'","cause":"The fetch() function used to return two values (< v0.7.0) but now returns a single string.","error":"TypeError: cannot unpack non-iterable str object"},{"fix":"Run datasets.list_datasets() to see available dataset names and use an exact match.","cause":"Dataset name is case-sensitive or not a valid key. Check list_datasets() for exact names.","error":"ValueError: Dataset 'nexrad_level2_example' not found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}