Skip to content

Commit

Permalink
Merge pull request #178 from ytangnoaa/patch-1
Browse files Browse the repository at this point in the history
Update icartt.py
  • Loading branch information
zmoon authored Jul 12, 2024
2 parents 6ddda42 + 2637a5e commit 80f2903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monetio/profile/icartt.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def read_header(self):
# value is set to 0. The Mid-point time is required when it is not at the
# average of Start and Stop times. For additional information see Section
# 2.5 below.).
self.dataInterval = int(self.__readline()[0])
self.dataInterval = float(self.__readline()[0])

# line 9 - Description or name of independent variable (This is the name
# chosen for the start time. It always refers to the number of seconds UTC
Expand Down Expand Up @@ -436,7 +436,7 @@ def __nan_miss_float(self, raw):
v = x.replace(self.VAR[i].miss, "NaN")
if "NaN" in v:
v = "NaN"
vals.append(float(v.strip()))
vals.append(float(v.strip()) * self.VAR[i].scale) # multiply with scaling factor
return vals

def read_data(self):
Expand Down

0 comments on commit 80f2903

Please sign in to comment.