Skip to content

Commit

Permalink
add line to remove trailing information after data (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbales-usgs authored Aug 15, 2024
1 parent 2d562a5 commit b3a5bed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions stglib/eofe.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def cdf_to_nc(cdf_filename):


def read_ea_instmet(basefile):
with open(basefile, "r") as f:
with open(basefile) as f:
instmeta = {}
row = ""
while "##DataStart" not in row:
Expand Down Expand Up @@ -237,7 +237,7 @@ def read_ea_instmet(basefile):


def load_ea_point(basefile, metadata):
with open(basefile, "r") as f:
with open(basefile) as f:
data = f.read().splitlines()

point = {}
Expand Down Expand Up @@ -741,7 +741,7 @@ def average_burst(ds):


def read_aa_instmet(basefile):
with open(basefile, "r") as f:
with open(basefile) as f:
instmeta = {}
row = ""
while " Date Time" not in row:
Expand Down Expand Up @@ -777,7 +777,7 @@ def read_aa_instmet(basefile):


def load_aa_point(basefile, metadata):
with open(basefile, "r") as f:
with open(basefile) as f:
if "skiprows" in metadata:
for k in np.arange(0, metadata["skiprows"]):
line = f.readline()
Expand All @@ -789,6 +789,7 @@ def load_aa_point(basefile, metadata):
line = f.readline()

data = f.read().splitlines()
data = data[0 : metadata["instmeta"]["NRecords"]]

point = {}

Expand Down

0 comments on commit b3a5bed

Please sign in to comment.