Skip to content

Commit

Permalink
aws.py Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ladsmund committed Sep 22, 2023
1 parent cf88d10 commit 140a9c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pypromice/process/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#------------------------------------------------------------------------------


class AWS(object):
'''AWS object to load and process PROMICE AWS data'''

Expand Down Expand Up @@ -110,7 +111,7 @@ def getL3(self):
and attribute population'''
logger.info('Level 3 processing...')
self.L3 = toL3(self.L2)

# Resample L3 product
f = [l.attrs['format'] for l in self.L0]
if 'raw' in f or 'STM' in f:
Expand All @@ -123,7 +124,7 @@ def getL3(self):
# Re-format time
t = self.L3['time'].values
self.L3['time'] = list(t)

# Switch gps_lon to negative (degrees_east)
# Do this here, and NOT in addMeta, otherwise we switch back to positive
# when calling getMeta in joinL3! PJW
Expand All @@ -132,9 +133,9 @@ def getL3(self):

# Add variable attributes and metadata
self.L3 = self.addAttributes(self.L3)

# Round all values to specified decimals places
self.L3 = roundValues(self.L3, self.vars)
self.L3 = roundValues(self.L3, self.vars)

def addAttributes(self, L3):
'''Add variable and attribute metadata
Expand Down

0 comments on commit 140a9c1

Please sign in to comment.