Skip to content

Commit

Permalink
Make noaa psl wind profiler more generic (#517)
Browse files Browse the repository at this point in the history
* make noaa psl wind profiler more generic

* fix extra space
  • Loading branch information
mgrover1 authored Aug 23, 2022
1 parent df5aa59 commit 6bf5721
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion act/io/noaapsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ def read_psl_wind_profiler(filename, transpose=True):
# read file with pandas for preparation.
df = pd.read_csv(filename, header=None)

# The first entry should be the station identifier (ex. CTD)
potential_site = df[0][0]

# Get location of where each table begins
index_list = df[0] == ' CTD'
index_list = df[0] == potential_site
idx = np.where(index_list)

# Get header of each column of data.
Expand Down

0 comments on commit 6bf5721

Please sign in to comment.