gsl-parser
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

gsl-parser

Parse GSL format ascii reports from https://rucsoundings.noaa.gov

pnpm install --save gsl-parser

then parse away! 🎉

import parse from 'gsl-parser'

// fetch the ascii report from
// https://rucsoundings.noaa.gov/get_soundings.cgi
//
// documentation on parameters here:
// https://rucsoundings.noaa.gov/text_sounding_query_parameters.pdf

const data = parse(asciiReport)

console.log(data)

Example output

This project is 100% Typescript, which helps a lot! However, you can also check out the test fixtures.

Note: Units of measurement are a little non-trivial. (For example, temperature is measured in tenths of a degree celsius.) Check out the format docs for more.

Limitations

This parser is just tested with Op40 and GFS analyses at the moment. Other reports are untested. PRs welcome!

/gsl-parser/

    Package Sidebar

    Install

    npm i gsl-parser

    Weekly Downloads

    23

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    10.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • aeharding