🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

gfsscraper

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gfsscraper

![npm](https://img.shields.io/npm/v/gfsscraper.svg) [![Build Status](https://travis-ci.org/ISNIT0/gfs-scraper.svg?branch=master)](https://travis-ci.org/ISNIT0/gfs-scraper) [![codecov](https://codecov.io/gh/ISNIT0/gfs-scraper/branch/master/graph/badge.svg)

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
2
-88.24%
Maintainers
1
Weekly downloads
 
Created
Source

GFS Scraper

npm Build Status codecov CodeFactor NPM License

Installation

> npm i -g gfsscraper

Requirements

  • *nix based OS
  • NodeJS
  • NPM

Usage

Command Line

> gfsscraper --help

> gfsscraper downloadStep --run "2018082712" --step "000" --outFile ./out.grib2 --parameterHeightGroups TMP:2maboveground LAND:surface

NodeJS

import * as gfsScraper from 'gfsscraper';

gfsScraper.downloadStep('./out.grib2', '2018082712', '000', 'all'); // Downloads all parameters and heights for selected step

gfsScraper.downloadStep('./out.grib2', '2018082712', '000', [{
    height: '2maboveground',
    parameter: 'TMP'
}, {
    height: 'surface',
    parameter: 'LAND'
}]);

See example/example.ts

Justification

The industry standard for GFS GRIB file downloading is get_gfs.pl. There's nothing particularly wrong with this, but it's a shame to have yet another language/tool to learn for new weather developers. It also doesn't scale particularly well or provide an API to other systems.

Also, making new things is fun!

TODO

  • Remove coupling to GFS (make more generic)
  • Prettier Logging
  • UI For selecting parameters (FUTURE)

Building

> ./build.sh

License

MIT

FAQs

Package last updated on 07 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts