open-radar-data-0.8.0


توضیحات

Provides utility functions for accessing data repository for openradar examples/notebooks
ویژگی مقدار
سیستم عامل OS Independent
نام فایل open-radar-data-0.8.0
نام open-radar-data
نسخه کتابخانه 0.8.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Open Radar Team
ایمیل نویسنده -
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/open-radar-data/
مجوز MIT License Copyright (c) 2022-2023 openradar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Open-Radar-Data [![CI](https://github.com/openradar/open-radar-data/actions/workflows/ci.yaml/badge.svg)](https://github.com/openradar/open-radar-data/actions/workflows/ci.yaml) [![PyPI Version](https://img.shields.io/pypi/v/open-radar-data.svg)](https://pypi.python.org/pypi/open-radar-data) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/open-radar-data.svg)](https://anaconda.org/conda-forge/open-radar-data) A place to share radar data with the community, shared between the open radar packages ## Sample data sets The files contained in this repository are used as sample data in openradar examples/notebooks and are downloaded by `open-radar-data` package. It includes single sweep PPI and RHI as well as complete volume files of weather radar (and lidar) in many different source formats. You can explore the contents in the [open_radar_data/registry.txt](open_radar_data/registry.txt). ## Adding new datasets To add a new dataset file, please follow these steps: 1. Add the dataset file to the `data/` directory 2. From the command line, run `python make_registry.py` script to update the registry file residing in `open_radar_data/registry.txt` 3. Commit and push your changes to GitHub ## Using datasets in notebooks and/or scripts - Ensure the `open_radar_data` package is installed in your environment ```bash python -m pip install open-radar-data # or python -m pip install git+https://github.com/openradar/open-radar-data # or conda install -c conda-forge open-radar-data ``` - Import `DATASETS` and inspect the registry to find out which datasets are available ```python In [1]: from open_radar_data import DATASETS In [2]: DATASETS.registry_files Out[2]: ['sample_sgp_data.nc`] ``` - 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 ```python In [4]: filepath = DATASETS.fetch('sample_sgp_data.nc') In [5]: filepath Out[5]: '/Users/mgrover/Library/Caches/open-radar-data/sample_sgp_data.nc' ``` - Once you have access to the local filepath, you can then use it to load your dataset into pandas or xarray or your package of choice: ```python In [6]: radar = pyart.io.read(filepath) ``` ## Changing the default data cache location The default cache location (where the data are saved on your local system) is dependent on the operating system. You can use the `locate()` method to identify it: ```python from open_radar_data import locate locate() ``` The location can be overwritten by the `OPEN_RADAR_DATA_DIR` environment variable to the desired destination.


نیازمندی

مقدار نام
- pooch


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl open-radar-data-0.8.0:

    pip install open-radar-data-0.8.0.whl


نصب پکیج tar.gz open-radar-data-0.8.0:

    pip install open-radar-data-0.8.0.tar.gz