Skip to content

Metar decoder written in awk, outputs to WeatherSTAR format or json

Notifications You must be signed in to change notification settings

DCH3416/awk-metar-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

awk-metar-decoder

Metar decoder written in awk, outputs to WeatherSTAR format or json

Usage:

awk -f ./metar.awk ./METAR.file

JSON output:

awk -f ./metar.awk -v json=1 ./METAR.file

Short output (LO, RC):

awk -f ./metar.awk -v outmode=2 ./METAR.file

awk -f ./metar.awk -v outmode=3 ./METAR.file

Set units:

awk -f ./metar.awk -v setunits=2 ./METAR.file

Where setunits=1 for US. setunits=2 for international. setunits=0 to passthrough.

Display Location:

awk -f ./metar.awk -v disploc='City Name' ./METAR.file

Releases

No releases published

Packages

No packages published

Languages