Skip to main content

Provides utility functions for accessing data repository for wradlib examples/notebooks

Project description

wradlib-data

wradlib example data

This repository contains example data used by notebooks/examples from wradlib/wradlib.

Installing

We've moved the repository to use pooch for downloading and caching wradlib-data files locally. Please adapt your workflows.

  • Ensure the wradlib_data package is installed in your environment

    $ python -m pip install wradlib-data
    
    # or
    
    $ python -m pip install git+https://github.com/wradlib/wradlib-data@pooch
    
  • Import DATASETS and inspect the registry to find out which datasets are available

    In [1]: from wradlib_data import DATASETS
    
    In [2]: DATASETS.registry_files
    Out[2]: 
    ['dx/raa00-dx_10908-0806021655-fbg---bin.gz',
    ...
    'trmm/2A-RW-BRS.TRMM.PR.2A25.20100206-S111422-E111519.069662.7.HDF']  
    
  • To fetch a data file of interest, use the .fetch method and provide the filename of the data file. This will

    • download and cache the file if it doesn't exist already.
    • retrieve and return the local path.
      In [1]: from wradlib_data import DATASETS
      
      In [2]: filepath = DATASETS.fetch("furuno/0080_20210730_160000_01_02.scn.gz")
      Out[2]: 
      Downloading file 'dx/raa00-dx_10908-0806021655-fbg---bin.gz' from 'https://github.com/wradlib/wradlib-data/raw/main/data/dx/raa00-dx_10908-0806021655-fbg---bin.gz' to '/user/kmuehlbauer/.cache/wradlib-data'.
      
  • The datasets will be retrieved to your standard system cache-folder. To specify the location please set WRADLIB_DATA environment variable to the wanted path.

    • Linux:
      $ export WRADLIB_DATA=/path/to/wradlib-data
      
    • Windows:
      set WRADLIB_DATA C:\path\to\wradlib-data
      
      # or
      
      setx WRADLIB_DATA C:\path\to\wradlib-data
      

Usage

The provided data is used in wradlib notebooks and examples.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wradlib_data-0.11.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wradlib_data-0.11.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file wradlib_data-0.11.0.tar.gz.

File metadata

  • Download URL: wradlib_data-0.11.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for wradlib_data-0.11.0.tar.gz
Algorithm Hash digest
SHA256 a335adb596328a79a51cca756d97d5e89bd012a9f7e7f2627cc8a220667b341b
MD5 cc5703fc149755a45e94eb2aff94275b
BLAKE2b-256 f33e47a03a3907cde1f22cd40a4f4a212121e7b516f10ecf67f30060dc55902a

See more details on using hashes here.

File details

Details for the file wradlib_data-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: wradlib_data-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for wradlib_data-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b6e2f5555e86a72fb5e86c3a9b14b66c34b0f0f60cb84e3d1dd804783423ba4
MD5 05362d4256fd2a3d28cf409684d47455
BLAKE2b-256 ada244407b1ffd22e581c3ac8b94c4d606996228fc77862fbc6d4f4886ebb4f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page