Skip to content

Commit

Permalink
#2285 generated met_point_data by calling convert_point_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Nov 9, 2022
1 parent ddfbbd2 commit 038e97b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/python/read_ascii_point.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pandas as pd
import os
import sys
from met_point_obs import convert_point_data

########################################################################

Expand Down Expand Up @@ -36,8 +37,10 @@
point_data = pd.read_csv(input_file, header=None, delim_whitespace=True, keep_default_na=False,
names=['typ', 'sid', 'vld', 'lat', 'lon', 'elv', 'var', 'lvl', 'hgt', 'qc', 'obs'],
dtype={'typ':'str', 'sid':'str', 'vld':'str', 'var':'str', 'qc':'str'}).values.tolist()
print("Data Length:\t" + repr(len(point_data)))
print("Data Type:\t" + repr(type(point_data)))
print(" point_data: Data Length:\t" + repr(len(point_data)))
print(" point_data: Data Type:\t" + repr(type(point_data)))
met_point_data = convert_point_data(point_data)
print(" met_point_data: Data Type:\t" + repr(type(met_point_data)))
except NameError:
print("Can't find the input file")
sys.exit(1)
Expand Down

0 comments on commit 038e97b

Please sign in to comment.