pyiem.ncei.ghcnh module
Process GHCNh data from NCEI.
-
pyiem.ncei.ghcnh.build_dialect(line)[source]
Figure out how to map colnames to token indices we need.
- Parameters:
line (str)
- Return type:
dict[str, int]
-
pyiem.ncei.ghcnh.parse_packet(tokens, startpos)[source]
Process the packet, attempting to not consume memory.
- Parameters:
-
- Return type:
float | None
-
pyiem.ncei.ghcnh.clean_metar(raw)[source]
Clean up the METAR string.
- Parameters:
raw (str)
- Return type:
str
-
pyiem.ncei.ghcnh.process_line(line, dialect)[source]
Process a line of the file.
- Parameters:
-
- Return type:
dict
-
pyiem.ncei.ghcnh.process_file(filename)[source]
Process the provided file.
- Parameters:
filename (str)
- Return type:
Generator[dict]