mirror of
https://github.com/netbymatt/nexrad-level-2-data.git
synced 2026-11-28 18:58:05 -08:00
15 lines
443 B
JavaScript
15 lines
443 B
JavaScript
const { Level2Radar } = require('./index')
|
|
const file_to_load = "KTLX20130420_205120_V06" // The radar archive file to load
|
|
|
|
Math.radians = function(degrees) {
|
|
return degrees * Math.PI / 180
|
|
}
|
|
|
|
new Level2Radar(file_to_load).then(radar => {
|
|
//console.log(radar.getHighresReflectivity())
|
|
let reflectivity = radar.getHighresReflectivity()
|
|
let azimuth = radar.getAzimuth()
|
|
|
|
console.log(reflectivity)
|
|
console.log(azimuth)
|
|
}) |