Radar Data
Project description
Radar Data
This is a collection of radar data readers
These formats are currently supported
- WDSS-II
- CF-Radial 1.3 / CF-1.6
- CF-Radial 1.4 / CF-1.6
- CF-Radial 1.4 / CF-1.7
- CF-Radial 2.0 (draft)
- NEXRAD Level II
Installation
pip install radar-data
Examples
import radar
# Get the absolute path of the .nc file, reader automatically gets -V, -W, etc.
file = os.path.expanduser("~/Downloads/data/PX-20240529-150246-E4.0-Z.nc")
sweep = radar.read(file)
# It also works with providing the original .tar.xz or .txz archive
file = os.path.expanduser("~/Downloads/data/PX-20240529-150246-E4.0.txz")
sweep = radar.read(file)
# NEXRAD LDM data feed, simply supply any of the files, the reader reads sweep_index=0 by default
file = os.path.expanduser("~/Downloads/data/KTLX/861/KTLX-20250503-122438-861-1-S")
sweep = radar.read(file)
# The reader finds others in ~/Downloads/data/KTLX/861/ to get to sweep_index=1
file = os.path.expanduser("~/Downloads/data/KTLX/861/KTLX-20250503-122438-861-7-I")
sweep = radar.read(file, sweep_index=1)
# NEXRAD complete volume
file = os.path.expanduser("~/Downloads/data/KTLX/20250503/KTLX20250503_122438_V06")
sweep = radar.read(file, sweep_index=1)
DataShop
A data server for multi-threaded reading. An example use case would be to abstract the file reading backend to this service so that multiple requests can be pipelined.
usage: datashop [-h] [-c COUNT] [-d DIR] [-H HOST] [-p PORT] [-t TEST] [-v] [--delay] [--version] [source ...]
Datashop
Examples:
datashop -v settings.yaml
datashop -v -H 10.197.14.52 -p 50001 -c 4 -t /mnt/data/PX1000/2024/20241219/_original
positional arguments:
source configuration
options:
-h, --help show this help message and exit
-c COUNT, --count COUNT
count
-d DIR, --dir DIR directory
-H HOST, --host HOST host
-p PORT, --port PORT port
-t TEST, --test TEST test using directory
-v increases verbosity
--delay simulate request delays
--version show program's version number and exit
Unit Tests
To run a set of reading tests through pytest:
pytest -s
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
radar_data-1.4.1.tar.gz
(3.5 MB
view details)
File details
Details for the file radar_data-1.4.1.tar.gz.
File metadata
- Download URL: radar_data-1.4.1.tar.gz
- Upload date:
- Size: 3.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f73d4bd39f5649c6eaf506cc4b39633daa6c4b176197c6d6357962edc97f1fe7
|
|
| MD5 |
0340cc094c60b4b5791968f0418cc463
|
|
| BLAKE2b-256 |
04c8ea00334162da2a03be29afb63fad3501cc10f50052e51479e00bf678db86
|