From e2a4d7646cb9fc1884955e99e60ba1440a0285cd Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Tue, 20 Apr 2021 09:52:31 -0600 Subject: [PATCH] Per #1620, correct bug in read_ascii_mpr.py script. The MPR line type has 37 columns in it, not 36! --- met/scripts/python/read_ascii_mpr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/met/scripts/python/read_ascii_mpr.py b/met/scripts/python/read_ascii_mpr.py index 9a4a84f890..781485c58c 100755 --- a/met/scripts/python/read_ascii_mpr.py +++ b/met/scripts/python/read_ascii_mpr.py @@ -22,7 +22,7 @@ # Read MPR lines, skipping the header row and first column. mpr_data = pd.read_csv(input_file, header=None, delim_whitespace=True, keep_default_na=False, - skiprows=1, usecols=range(1,36), + skiprows=1, usecols=range(1,37), dtype=str).values.tolist() print("Data Length:\t" + repr(len(mpr_data))) print("Data Type:\t" + repr(type(mpr_data)))