Skip to content

Instantly share code, notes, and snippets.

View Nullpo1nt's full-sized avatar
😑

Bryant Martin Nullpo1nt

😑
View GitHub Profile
@Nullpo1nt
Nullpo1nt / taf-parser.py
Created June 24, 2020 23:14
Parses NOAA TAF reports into basic structure.
import re
import ftplib
import sys
cloudType = {"CB": "Cumulonimbus"}
skyCondition = {"SKC": "Sky clear", "FEW": "Few", "SCT": "Scattered", "BKN": "Broken", "OVC": "Overcast"}
intensity = {"-": "Light", " ": "Moderate", "+": "Heavy", "VC": "Vicinity"}
qualifier = {"MI": "Shallow", "BC": "Patches", "DR": "Low Drifting", "BL": "Blowing", "SH": "Showers", "TS": "Thunderstorm", "FZ": "Freezing", "PR": "Partial"}
precipitation = {"DZ": "Drizzle", "RA": "Rain", "SN": "Snow", "SG": "Snow Grains", "IC": "Ice Crystals", "PL": "Ice Pellets", "GR": "Hail",
"GS": "Small Hail or Snow Pellets", # (less than 1/4 inch in diameter)",

Keybase proof

I hereby claim:

  • I am nullpo1nt on github.
  • I am nullpoint (https://keybase.io/nullpoint) on keybase.
  • I have a public key whose fingerprint is 2B75 24A9 AAAD 0E90 6858 86CE BEA7 322D 0006 308B

To claim this, I am signing this object: