Radarx IO#

IMD Reader#

This sub-module provides functionality to read and process single radar files from the Indian Meteorological Department (IMD), returning a quasi-CF-Radial xarray Dataset.

Example:

import radarx as rx
dtree = rx.io.read_sweep(filename)
dtree = rx.io.read_volume(filename)

read_sweep

Read and process a single radar file from the Indian Meteorological Department (IMD).

read_volume

Read and process multiple radar files to create a volume scan dataset.

to_cfradial2

Convert a CfRadial1 Dataset to a CfRadial2 hierarchical structure using xarray's native DataTree.

to_cfradial2_volumes

Convert multiple CfRadial1 volumes to a DataTree containing CfRadial2 structures.

AWS Radar Data Utilities#

This module provides utilities to interact with AWS S3 buckets containing radar data. It supports listing available files in specific paths and downloading them locally.

Supported Buckets#

  • NEXRAD Level II Archive: noaa-nexrad-level2

  • NEXRAD Level II Real-Time: unidata-nexrad-level2-chunks

  • NEXRAD Level III Real-Time: unidata-nexrad-level3

  • MRMS Data: noaa-mrms-pds

Usage Examples#

  1. List available files:

    from radarx.io.aws_data import list_available_files
    files = list_available_files('noaa-nexrad-level2', '2016/10/06/KAMX/')
    print(files)
    
  2. Download a file:

    from radarx.io.aws_data import download_file
    file_path = download_file('noaa-nexrad-level2',
        '2016/10/06/KAMX/KAMX20161006_170414_V06', './downloads')
    print('File downloaded to', file_path)
    

This sub-module contains functions necessary to grid the radar data.

get_s3_client

Create an S3 client.

list_available_files

List files in an S3 bucket with the given prefix.

download_file

Download a file from S3.