2021-08-02 09:26:53 -05:00
2021-02-12 07:53:05 -06:00
2021-02-12 10:20:59 -06:00
2021-04-22 10:34:13 -05:00
2021-07-07 14:52:19 -05:00
2021-04-22 10:34:13 -05:00
2018-04-14 16:10:44 -05:00
2021-07-29 16:33:22 -05:00
2021-07-29 16:33:22 -05:00
2021-07-29 22:55:52 -05:00
2021-06-29 00:19:11 -05:00
2021-06-29 00:19:11 -05:00
2021-08-02 08:16:24 -05:00

nexrad-level-2-data

A javascript implementation for decoding Nexrad Level II radar archive files.

You can find more information on how radar data is encoded at NOAA mainly in the document ICD FOR RDA/RPG - Build RDA 19.0/RPG 19.0 (PDF)

Contents

  1. Changes in v2.0.0
  2. Install
  3. Usage
  4. API
  5. Supported Messages
  6. Acknowledgements

Changes in v2.0.0

v2.0.0 is a major overhaul of the parsing engine and has several breaking changes. See UPGRADE.md for detailed breaking changes.

  • Allow for processing of "chunks" in addition to entire volume scan archives.
    • Chunks (real time data) is provided by Unidata in the s3 bucket s3://unidata-nexrad-level2-chunks/
    • Full archives are provided by Unidata in the s3 bucket noaa-nexrad-level2
  • Improve error reporting by throwing when data is not present or invalid elevations or scans are accessed.
  • Unify the data accessor functions (breaking change)
  • Follow NOAA convention of the lowest elevation being 1, and properly sort elevations above 1 into a sparse array (breaking change)

Install

$ npm i nexrad-level-2-data

Usage

const { Level2Radar } = require('nexrad-level-2-data')
const file_to_load = "./data/KTLX20130420_205120_V06" // The radar archive file to load

new Level2Radar(file_to_load).then(radar => {
    console.log(radar.getHighresReflectivity())
})

API

setElevation(Number elevation)

Sets the elevation you want to grab the data from

getHighresReflectivity([scan])

Returns an Object of radar reflectivity data for the current elevation and scan (or all scans if not provided) in the following format

{ 
  gate_count: Number,
	first_gate: Number,
	gate_size: Number,
	rf_threshold: Number,
	snr_threshold: Number,
	scale: Number,
	offset: Number,
	data_offset: Number,
	moment_data: Array
}

getHighresVelocity([scan])

Returns an Object of radar velocity data for the current elevation and scan (or all scans if not provided) in the following format

{ 
  gate_count: Number,
	first_gate: Number,
	gate_size: Number,
	rf_threshold: Number,
	snr_threshold: Number,
	scale: Number,
	offset: Number,
	data_offset: Number,
	moment_data: Array
}

getHighresSpectrum([scan])

Returns an Object of radar spectrum data for the current elevation and scan (or all scans if not provided) in the following format

{ 
  gate_count: Number,
	first_gate: Number,
	gate_size: Number,
	rf_threshold: Number,
	snr_threshold: Number,
	scale: Number,
	offset: Number,
	data_offset: Number,
	moment_data: Array
}

getHighresDiffReflectivity(scan)

Returns an Object of radar diff reflectivity data for the current elevation and scan (or all scans if not provided) in the following format

{ 
  gate_count: Number,
	first_gate: Number,
	gate_size: Number,
	rf_threshold: Number,
	snr_threshold: Number,
	scale: Number,
	offset: Number,
	data_offset: Number,
	moment_data: Array
}

getHighresDiffPhase(scan)

Returns an Object of radar diff phase data for the current elevation and scan (or all scans if not provided) in the following format

{ 
  gate_count: Number,
	first_gate: Number,
	gate_size: Number,
	rf_threshold: Number,
	snr_threshold: Number,
	scale: Number,
	offset: Number,
	data_offset: Number,
	moment_data: Array
}

getHighresCorrelationCoefficient(scan)

Returns an Object of radar correlation coefficient data for the current elevation and scan (or all scans if not provided) in the following format

{ 
  gate_count: Number,
	first_gate: Number,
	gate_size: Number,
	rf_threshold: Number,
	snr_threshold: Number,
	scale: Number,
	offset: Number,
	data_offset: Number,
	moment_data: Array
}

Supported Messages

Nexrad data is stored as message types. This package currently processes the following messages.

Message Title Description
1 Digital Radar Data Reflectivity and velocity data. Replace. by message 31 in 2008 which supports a higher resolution.
5 Volume Coverage Pattern Overview of the scanning paramaters
7 Volume Coverage Pattern Overview of the scanning paramaters
31 Digital Radar Data Generic Format Reflectivity and velocity data

Acknowledgements

This work is based on the project of Unidata and nexrad-radar-data

Languages
JavaScript 100%