Giter VIP home page Giter VIP logo

nexrad-radar-data's Introduction

nexrad-radar-data

v0.2.0

A javascript implementation for decoding Nexrad Level II radar archive files. It currently does not support decoding bzip compressed radar data, or non-highres radar data.

You can find more information on how radar data is encoded at NOAA

Contents

  1. Install
  2. Usage
  3. Examples
  4. API
  5. Known Issues
  6. ToDo
  7. License

Install

$ git clone https://github.com/bartholomew91/nexrad-radar-data.git

Usage

const { Level2Radar } = require('./index')
const file_to_load = "KTLX20130420_205120_V06" // The radar archive file to load

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

Examples

You can find an example of using the library HERE

API

setElevation(Number elevation)

Sets the elevation you want to grab the data from

setScan(Number scan)

Sets the current scan you want to grab the data from

setSweep(Number sweep)

Alias for setScan

getHighresReflectivity()

Returns an Object of radar reflectivity data for the current elevation and scan 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()

Returns an Object of radar velocity data for the current elevation and scan 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()

Returns an Object of radar spectrum data for the current elevation and scan 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()

Returns an Object of radar diff reflectivity data for the current elevation and scan 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()

Returns an Object of radar diff phase data for the current elevation and scan 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()

Returns an Object of radar correlation coefficient data for the current elevation and scan 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
}

Known Issues

  1. RHO moment data parsing is not working

ToDo

  • Add bZip data decompression for newer archives
  • Allow loading from tar files and web
  • Add non-highres reflection and velocity data

License

This work is based on the project of Unidata

MIT © Matt Johnston

nexrad-radar-data's People

Contributors

bartholomew91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nexrad-radar-data's Issues

Opportunity

Hey Matt, I was looking for a way to get in touch with you, but couldn't find one. Our team is interested in talking to you about your experience with radar parsing. Any chance we could get in touch?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.