mirror of
https://github.com/netbymatt/nexrad-level-3-plot.git
synced 2026-11-28 18:48:04 -08:00
22 lines
732 B
JavaScript
22 lines
732 B
JavaScript
const fs = require('fs');
|
|
const { plot } = require('../src');
|
|
|
|
// read file
|
|
|
|
// 56 N0S Storm relative velocity
|
|
// const file = fs.readFileSync('./data/LOT_N0S_2021_01_31_11_06_30');
|
|
// 78 One-hour precipitation
|
|
const file = fs.readFileSync('./data/LOT_N1P_2021_01_31_11_06_30');
|
|
// 80 NTP Storm total accumulation
|
|
// const file = fs.readFileSync('./data/LOT_NTP_2021_01_31_11_06_30');
|
|
// 165 N0H Hydrometeor classification
|
|
// const file = fs.readFileSync('./data/LOT_N0H_2021_01_31_11_06_30');
|
|
// 177 HHC Hybrid Hydrometeor classification
|
|
// const file = fs.readFileSync('./data/LOT_HHC_2021_01_31_11_06_30');
|
|
|
|
// pass to plotting engine as a string or buffer
|
|
const level3Plot = plot(file);
|
|
|
|
console.log(level3Plot);
|
|
console.log();
|