Skip to content

Commit

Permalink
keep positive longitude for UWN Roof_GEUS and Roof_PROMICE stations
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteVandecrux committed Aug 10, 2023
1 parent c853429 commit 8a6d9ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pypromice/process/L1toL2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ def toL2(L1, T_0=273.15, ews=1013.246, ei0=6.1071, eps_overcast=1.,

# Determiune cloud cover for on-ice stations
if not ds.attrs['bedrock']:
cc = calcCloudCoverage(ds['t_u'], T_0, eps_overcast, eps_clear, # Calculate cloud coverage
cc = calcCloudCoverage(ds['t_u'], T_0, eps_overcast, eps_clear, # Calculate cloud coverage
ds['dlr'], ds.attrs['station_id'])
ds['cc'] = (('time'), cc.data)
else:
# Default cloud cover for bedrock station for which tilt should be 0 anyway.
cc = 0.8

# Determine surface temperature
Expand Down
3 changes: 2 additions & 1 deletion src/pypromice/process/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def getL3(self):
# 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
self.L3['gps_lon'] = self.L3['gps_lon'] * -1
if self.attrs['station_id'] not in ['UWN', 'Roof_GEUS', 'Roof_PROMICE']:
self.L3['gps_lon'] = self.L3['gps_lon'] * -1

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

0 comments on commit 8a6d9ea

Please sign in to comment.